New: live data for Youpin, CSFloat, and Steam

POST /v1/archive/steam

Returns Steam Community Market median sale price and purchase volume in Steam's own history buckets.

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 ~1-4x per day. 1d history starts April 26, 2013, and 1h history May 9, 2026. Intervals are 1h and 1d, with no range limit per request. Variants aren't supported.

This is the same data shown in the price graph on a Steam Community Market item page.

Supported intervals#

IntervalMax range
1hUnlimited
1dUnlimited

Request#

POSTapi.cs2.sh/v1/archive/steam
curl -X POST https://api.cs2.sh/v1/archive/steam \
  -H "Authorization: Bearer <<YOUR_API_KEY>>" \
  -H "Accept-Encoding: gzip" --compressed \
  -H "Content-Type: application/json" \
  -d '{
  "items": [
    "USP-S | Printstream (Factory New)"
  ],
  "start": "2025-01-01",
  "end": "2025-02-01",
  "interval": "1d",
  "currency": "USD"
}'

Parameters#

FieldTypeRequiredDescription
itemsstring[]YesList of regular market_hash_name values (max 100). Variants are not supported.
startstringNoStart date/time as YYYY-MM-DD or RFC3339, inclusive. Without it, the request covers 365 days back from end on 1h, or all history on 1d.
endstringNoEnd date/time as YYYY-MM-DD or RFC3339, exclusive. Defaults to now.
intervalstringYesAllowed: 1h, 1d. Native Steam bucket interval. Both intervals are unlimited in range.
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:28.01316111Z",
  "currency": "USD",
  "start": "2025-01-01T00:00:00Z",
  "end": "2025-02-01T00:00:00Z",
  "interval": "1d",
  "items": {
    "USP-S | Printstream (Factory New)": {
      "market_hash_name": "USP-S | Printstream (Factory New)",
      "count": 31,
      "data": [
        {
          "bucket": "2025-01-01T00:00:00Z",
          "price": 150.23,
          "raw_price": 150.225,
          "volume": 7
        }
      ]
    }
  }
}

Response fields#

ArchiveSteamResponse 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: 1h, 1d. Requested bucket interval.
itemsRecord<string, ArchiveSteamItem>YesMap of market_hash_name to native Steam sale-history buckets.
errorsItemError[]NoPer-item failures alongside successful results (partial success).

Buckets#

FieldDescription
items.<name>.countNumber of buckets with data.
items.<name>.data[]Steam's own sale-history buckets.
data[].bucketBucket boundary.
data[].priceSteam's median sale price, USD.
data[].volumeNumber of purchases in the bucket.
  • bucket is present on every bucket.
  • price or volume can be null when Steam's bucket omits that value.
  • Variant items are not supported.
  • Valid requested items with no Steam history return not_in_archive; if every valid item has none, the endpoint returns 404 not_found.

Full schemas: ArchiveSteamItem, ArchiveSteamBucket.

Errors#

404 not_found means none of the requested valid regular items have Steam sale history. Partial results return 200 with errors[]; variant requests use unsupported_variant. See Partial success and Request errors.