cspriceapi-com · Schema

PriceHistoryResponse

CompanyGamingPrice DataMarketplace

Properties

Name Type Description
source string
requestor string Email address associated with the API key making the call.
plan string Plan of the API key (e.g. `free`, `pro`, `enterprise`).
timestamp object Server time when this response was produced.
market string
market_hash_name string
resolution string
currency string
from string
to string
count integer
data array
View JSON Schema on GitHub

JSON Schema

cspriceapi-com-price-history-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cspriceapi-com/json-schema/cspriceapi-com-price-history-response-schema.json",
  "title": "PriceHistoryResponse",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cspriceapi-com-price-history-api-openapi.yml#/components/schemas/PriceHistoryResponse",
  "allOf": [
    {
      "$ref": "#/$defs/BaseWrapper"
    },
    {
      "type": "object",
      "properties": {
        "market": {
          "type": "string"
        },
        "market_hash_name": {
          "type": "string"
        },
        "resolution": {
          "type": "string",
          "enum": [
            "hourly",
            "daily"
          ]
        },
        "currency": {
          "type": "string",
          "enum": [
            "CNY",
            "EUR",
            "USD"
          ]
        },
        "from": {
          "type": "string",
          "format": "date"
        },
        "to": {
          "type": "string",
          "format": "date"
        },
        "count": {
          "type": "integer"
        },
        "data": {
          "type": "array",
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/PriceHistoryPointDaily"
              },
              {
                "$ref": "#/$defs/PriceHistoryPointHourly"
              }
            ]
          }
        },
        "source": {
          "type": "string"
        }
      },
      "required": [
        "market",
        "market_hash_name",
        "resolution",
        "currency",
        "from",
        "to",
        "count",
        "data"
      ]
    }
  ],
  "$defs": {
    "BaseWrapper": {
      "type": "object",
      "description": "Envelope fields returned by every `GET /v1/prices/*` response.",
      "properties": {
        "source": {
          "type": "string",
          "description": "Human-readable marketplace identifier."
        },
        "requestor": {
          "type": "string",
          "format": "email",
          "description": "Email address associated with the API key making the call."
        },
        "plan": {
          "type": "string",
          "description": "Plan of the API key (e.g. `free`, `pro`, `enterprise`)."
        },
        "timestamp": {
          "allOf": [
            {
              "$ref": "#/$defs/UpdatedAt"
            }
          ],
          "description": "Server time when this response was produced."
        }
      },
      "required": [
        "source",
        "timestamp"
      ]
    },
    "DecimalString": {
      "type": "string",
      "description": "Fixed-point decimal value serialized as a string (preserves precision\nacross languages). Parse with an arbitrary-precision decimal library;\ndo **not** parse as a native float.\n",
      "pattern": "^-?\\d+(\\.\\d+)?$"
    },
    "PriceHistoryPointDaily": {
      "type": "object",
      "properties": {
        "day": {
          "type": "string",
          "format": "date"
        },
        "price": {
          "allOf": [
            {
              "$ref": "#/$defs/DecimalString"
            }
          ],
          "nullable": true
        },
        "count": {
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "day"
      ]
    },
    "PriceHistoryPointHourly": {
      "type": "object",
      "properties": {
        "day": {
          "type": "string",
          "format": "date"
        },
        "slot": {
          "type": "integer",
          "description": "Hourly bucket index within the day (0–23)."
        },
        "last_ts": {
          "type": "string"
        },
        "price": {
          "allOf": [
            {
              "$ref": "#/$defs/DecimalString"
            }
          ],
          "nullable": true
        },
        "count": {
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "day",
        "slot"
      ]
    },
    "UpdatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "ISO-8601 UTC timestamp (millisecond precision)."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/cspriceapi-com-price-history-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.