New: live data for Youpin, CSFloat, and Steam

POST /v1/archive/history

Returns long-term listing-price history from Youpin, BUFF, C5Game, and an aggregate series. Use it for prices before December 24, 2025, when price history begins.

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-2x per day. History starts in 2023. Intervals are 1h and 1d. Doppler, Gamma Doppler, and Case Hardened variants are supported.

aggregate combines Youpin and BUFF, taking the lower of the two asks and the higher of the two bids. It's the only series with hourly_volume and total_supply.

Within each bucket, prices, listing volumes, and total_supply are the last observed values. hourly_volume is an approximate sale count: the hourly estimate in 1h responses, and the sum of those hourly estimates in each 1d bucket.

Supported intervals#

IntervalBucket
1hHourly buckets
1dDaily buckets

Supported sources#

SourceFields
aggregateask, bid, ask_volume, bid_volume, hourly_volume, total_supply
youpinask, bid, ask_volume, bid_volume
buffask, bid, ask_volume, bid_volume
c5gameask, bid, ask_volume, bid_volume

By default, only aggregate is returned.

Request#

POSTapi.cs2.sh/v1/archive/history
curl -X POST https://api.cs2.sh/v1/archive/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": "2024-01-01",
  "end": "2026-11-30",
  "sources": [
    "aggregate",
    "buff"
  ],
  "interval": "1d",
  "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 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.
sourcesstring[]NoFilter to specific sources. Defaults to aggregate only.
intervalstringNoDefault: 1d. Allowed: 1h, 1d. Bucket interval.
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:16.259098528Z",
  "currency": "USD",
  "start": "2026-09-01T00:00:00Z",
  "end": "2026-11-29T00:00:00Z",
  "interval": "1d",
  "items": {
    "USP-S | Printstream (Factory New)": {
      "market_hash_name": "USP-S | Printstream (Factory New)",
      "count": 89,
      "data": [
        {
          "bucket": "2026-09-01T00:00:00Z",
          "aggregate": {
            "time": "2026-09-01T23:59:08Z",
            "ask": 99.31,
            "ask_volume": 1256,
            "bid": 99.91,
            "bid_volume": 115,
            "hourly_volume": 19,
            "total_supply": 32057,
            "sample_count": 24
          },
          "buff": {
            "time": "2026-09-01T23:53:35Z",
            "ask": 99.31,
            "ask_volume": 381,
            "bid": 96.34,
            "bid_volume": 35,
            "sample_count": 23
          },
          "youpin": {
            "time": "2026-09-01T23:59:08Z",
            "ask": 100.95,
            "ask_volume": 486,
            "bid": 99.91,
            "bid_volume": 60,
            "sample_count": 23
          },
          "c5game": {
            "time": "2026-09-01T23:59:07Z",
            "ask": 101.38,
            "ask_volume": 167,
            "bid": null,
            "bid_volume": null,
            "sample_count": 24
          }
        }
      ]
    }
  }
}

Response fields#

ArchiveHistoryResponse 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, ArchiveHistoryItem>YesMap of market_hash_name to archive time-series.
errorsItemError[]NoPer-item failures alongside successful results (partial success).

Buckets#

FieldDescription
items.<name>.countNumber of buckets with data.
items.<name>.data[]Hourly or daily buckets.
data[].bucketBucket boundary.
data[].<platform>Last-observed ask/bid and ask_volume/bid_volume, with time and sample_count. Platforms: aggregate, buff, youpin, c5game.
data[].aggregate.hourly_volumeApproximate sales for the bucket. Hourly for 1h; summed across the day for 1d.
data[].aggregate.total_supplyApproximate cumulative supply of the item. aggregate only.
  • bucket is present on every bucket.
  • Per-platform objects appear only when that platform has data in the bucket.
  • Valid requested items with no data on this endpoint return not_in_archive.
  • A bid above the same source's ask is returned as null.
  • An aggregate bid can be above its ask when Youpin and BUFF disagree.

Full schemas: ArchiveHistoryItem, ArchiveHistoryBucket, ArchiveHistoryPlatformData.

Errors#

404 not_found means none of the requested valid items have data on this endpoint. Partial results return 200 with errors[]; possible item codes are unknown_item, invalid_format, and not_in_archive. See Partial success and Request errors.