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
| Interval | Bucket |
|---|---|
1h | Hourly buckets |
1d | Daily buckets |
Supported sources
| Source | Fields |
|---|---|
aggregate | ask, bid, ask_volume, bid_volume, hourly_volume, total_supply |
youpin | ask, bid, ask_volume, bid_volume |
buff | ask, bid, ask_volume, bid_volume |
c5game | ask, bid, ask_volume, bid_volume |
By default, only aggregate is returned.
Request
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
| Field | Type | Required | Description |
|---|---|---|---|
items | string[] | Yes | List of market_hash_name values (max 100). |
start | string | No | Start 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. |
end | string | No | End date/time as YYYY-MM-DD or RFC3339, exclusive. Defaults to now. |
sources | string[] | No | Filter to specific sources. Defaults to aggregate only. |
interval | string | No | Default: 1d. Allowed: 1h, 1d. Bucket interval. |
currency | string | No | Default: 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:
| Field | Type | Required | Description |
|---|---|---|---|
response_time | string (date-time) | Yes | When the response was generated. |
currency | string | Yes | Currency code for every price in the response. Matches the requested currency; defaults to USD. |
start | string (date-time) | Yes | Effective start of the queried range, floored to the interval boundary. Inclusive. |
end | string (date-time) | Yes | Effective end of the queried range, ceiled to the interval boundary. Exclusive. |
interval | string | Yes | Allowed: 1h, 1d. Requested bucket interval. |
items | Record<string, ArchiveHistoryItem> | Yes | Map of market_hash_name to archive time-series. |
errors | ItemError[] | No | Per-item failures alongside successful results (partial success). |
Buckets
| Field | Description |
|---|---|
items.<name>.count | Number of buckets with data. |
items.<name>.data[] | Hourly or daily buckets. |
data[].bucket | Bucket 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_volume | Approximate sales for the bucket. Hourly for 1h; summed across the day for 1d. |
data[].aggregate.total_supply | Approximate cumulative supply of the item. aggregate only. |
bucketis 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
bidabove the same source'saskis returned asnull. - An
aggregatebidcan be above itsaskwhen 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.