New: live data for Youpin, CSFloat, and Steam

POST /v1/prices/history

Returns high-frequency OHLC (open, high, low, close) price history. It's cs2.sh's main history endpoint.

Available on Scale, at 10 requests per second. Each request takes up to 100 items.

Prices are in USD by default, or in any supported currency. Data updates continuously. History starts December 24, 2025. Intervals are 5m (up to 14 days per request), 30m (90 days), 1h (365 days), and 1d (unlimited). Doppler, Gamma Doppler, and Case Hardened variants are supported.

Its OHLC buckets are built from the same data as latest prices. For earlier prices, use POST /v1/archive/history.

Variant items include a variants object within the response.

Supported intervals#

IntervalMax range
5m14 days
30m90 days
1h365 days
1dUnlimited

Supported sources#

SourceFields
youpinask, bid, ask_volume, bid_volume
buffask, bid, ask_volume, bid_volume
csfloatask, bid, ask_volume
steamask, bid, ask_volume, bid_volume
skinportask, ask_volume
c5gameask, bid, ask_volume, bid_volume

By default, all sources are returned.

bucket is the UTC interval boundary. open_time and close_time are the actual first and last observations inside the bucket; see Using the API.

Request#

POSTapi.cs2.sh/v1/prices/history
curl -X POST https://api.cs2.sh/v1/prices/history \
  -H "Authorization: Bearer <<YOUR_API_KEY>>" \
  -H "Accept-Encoding: gzip" --compressed \
  -H "Content-Type: application/json" \
  -d '{
  "items": [
    "USP-S | Printstream (Factory New)"
  ],
  "start": "2026-11-26",
  "end": "2026-11-29",
  "sources": [
    "buff",
    "csfloat"
  ],
  "interval": "1h",
  "currency": "USD"
}'

Parameters#

FieldTypeRequiredDescription
itemsstring[]YesList of market_hash_name values (max 100).
startstringNoStart date/time as YYYY-MM-DD or RFC3339, inclusive. Without it, the request covers the interval's maximum range back from end, or all history on 1d.
endstringNoEnd date/time as YYYY-MM-DD or RFC3339, exclusive. Defaults to now.
sourcesstring[]NoFilter to specific sources. Defaults to all sources.
intervalstringNoDefault: 5m. Allowed: 5m, 30m, 1h, 1d. Bucket interval. 5m is limited to 14 days, 30m to 90 days, 1h to 365 days; 1d is unlimited.
currencystringNoDefault: USD. Allowed: AUD, CAD, CHF, CNY, EUR, GBP, JPY, NZD, SGD, USD. Currency for every price in the response.

Response#

{
  "response_time": "2026-11-30T05:56:14.28425111Z",
  "currency": "USD",
  "start": "2026-11-26T00:00:00Z",
  "end": "2026-11-29T00:00:00Z",
  "interval": "1h",
  "items": {
    "USP-S | Printstream (Factory New)": {
      "market_hash_name": "USP-S | Printstream (Factory New)",
      "count": 72,
      "data": [
        {
          "bucket": "2026-11-26T00:00:00Z",
          "buff": {
            "open_ask": 72.57,
            "high_ask": 72.58,
            "low_ask": 72.57,
            "close_ask": 72.57,
            "ask_volume": 382,
            "open_bid": 65.69,
            "high_bid": 65.99,
            "low_bid": 65.69,
            "close_bid": 65.99,
            "bid_volume": 46,
            "sample_count": 75,
            "open_time": "2026-11-26T00:00:57Z",
            "close_time": "2026-11-26T00:58:52Z"
          },
          "youpin": {
            "open_ask": 68.68,
            "high_ask": 68.68,
            "low_ask": 68.6,
            "close_ask": 68.6,
            "ask_volume": 470,
            "open_bid": 66.73,
            "high_bid": 66.73,
            "low_bid": 66.73,
            "close_bid": 66.73,
            "bid_volume": 50,
            "sample_count": 8,
            "open_time": "2026-11-26T00:07:27.26Z",
            "close_time": "2026-11-26T00:52:26.359Z"
          },
          "csfloat": {
            "open_ask": 73.28,
            "high_ask": 73.28,
            "low_ask": 73,
            "close_ask": 73,
            "ask_volume": 244,
            "open_bid": 62.2,
            "high_bid": 62.2,
            "low_bid": 62.2,
            "close_bid": 62.2,
            "sample_count": 60,
            "open_time": "2026-11-26T00:00:09.238Z",
            "close_time": "2026-11-26T00:53:07.101Z"
          },
          "skinport": {
            "open_ask": 70.58,
            "high_ask": 70.58,
            "low_ask": 70.58,
            "close_ask": 70.58,
            "ask_volume": 42,
            "sample_count": 60,
            "open_time": "2026-11-26T00:00:12.658Z",
            "close_time": "2026-11-26T00:59:12.649Z"
          },
          "steam": {
            "open_ask": 87.13,
            "high_ask": 87.13,
            "low_ask": 87.13,
            "close_ask": 87.13,
            "ask_volume": 70,
            "open_bid": 79.67,
            "high_bid": 79.67,
            "low_bid": 79.67,
            "close_bid": 79.67,
            "bid_volume": 2200,
            "sample_count": 20,
            "open_time": "2026-11-26T00:02:19.833Z",
            "close_time": "2026-11-26T00:57:54.187Z"
          },
          "c5game": {
            "open_ask": 73.17,
            "high_ask": 73.17,
            "low_ask": 73.17,
            "close_ask": 73.17,
            "ask_volume": 172,
            "open_bid": 66.73,
            "high_bid": 66.73,
            "low_bid": 66.73,
            "close_bid": 66.73,
            "bid_volume": 15,
            "sample_count": 12,
            "open_time": "2026-11-26T00:00:06.381Z",
            "close_time": "2026-11-26T00:16:12.213Z"
          }
        }
      ]
    }
  }
}

Response fields#

HistoryResponse fields:

FieldTypeRequiredDescription
response_timestring (date-time)YesWhen the response was generated.
currencystringYesCurrency code for every price in the response. Matches the requested currency; defaults to USD.
startstring (date-time)YesEffective start of the queried range, floored to the interval boundary. Inclusive.
endstring (date-time)YesEffective end of the queried range, ceiled to the interval boundary. Exclusive.
intervalstringYesAllowed: 5m, 30m, 1h, 1d. Requested bucket interval.
itemsRecord<string, HistoryItem>YesMap of market_hash_name to OHLC time-series.
errorsItemError[]NoPer-item failures alongside successful results (partial success).

Buckets#

FieldDescription
items.<name>.countNumber of buckets with data.
items.<name>.data[]OHLC buckets.
data[].bucketUTC-aligned interval boundary.
data[].<source>OHLC values, plus the real observation window (open_time/close_time) and sample_count.
items.<name>.variantsThe same bucketed shape per variant.
  • bucket is present on every history bucket.
  • A base item's buckets have an object for all six sources. A source with no data in the bucket has null values and a sample_count of 0.
  • In variant buckets, and when sources leaves out any source, a bucket includes only the sources with data in it.
  • csfloat carries ask and bid OHLC without bid_volume; skinport is ask-only.
  • Valid requested items with no buckets in the requested range are omitted from items.

Full schemas: HistoryItem, HistoryBucket, and the per-source types under OHLC Source Data.

Errors#

When only some item names fail, the endpoint returns 200 with the successful series and errors[]. Valid items with no buckets in the requested range are omitted without an item error. See Partial success and Request errors.