Legacy V1/V2Price History
GET /v1/prices/{market}/history
Legacy V1/V2 reference. These routes stay supported for existing integrations. V3 returns every price in USD or 29 other currencies, with the marketplace's own value alongside — see /v3/prices/{market}/history.
Returns historical listing prices for exactly one
market_hash_name on a given marketplace.
resolution | Source | Density | Typical retention |
|---|---|---|---|
hourly | price_history_* | up to 24 points/day (slot) | last ~100 days |
daily (default) | price_daily_* | 1 point/day | full history |
Requesting hourly for a from/to window longer than 100 days
returns 400 — use daily for longer ranges.
youpin, buff163, c5game, skinport, skinbaron, market-csgo,
csfloat, dmarket, ecosteam, lisskins, skinland, shadowpay,
waxpeer, tradeit (history starts 2026-11-14),
skinplace (history starts 2026-12-04).
Prices are decimal strings in the marketplace's native currency
(currency in the response): CNY / EUR / USD. CSFloat history is stored
in USD cents and converted to USD for the response.
Access
Available on Enterprise.
Path parameters
| Parameter | Description |
|---|---|
marketrequired | Marketplace slug (same as live price routes). |
Query parameters
| Parameter | Description |
|---|---|
market_hash_namerequired | Steam market_hash_name. Only one name per request
(no comma-separated lists, no repeated params). |
resolution | Point density. Defaults to daily. |
from | Inclusive start date (YYYY-MM-DD). Defaults to 30 days before to
for hourly, or 365 days before to for daily. |
to | Inclusive end date (YYYY-MM-DD). Defaults to today (UTC). |
Request
GET https://api.cspriceapi.com/v1/prices/{market}/history
curl -s --compressed "https://api.cspriceapi.com/v1/prices/youpin/history?market_hash_name=AK-47%20%7C%20Redline%20(Field-Tested)&resolution=daily" \
-H "x-api-key: YOUR_API_KEY"import requests
response = requests.get(
"https://api.cspriceapi.com/v1/prices/youpin/history",
params={"market_hash_name": "AK-47 | Redline (Field-Tested)", "resolution": "daily"},
headers={"x-api-key": "YOUR_API_KEY"},
timeout=60,
)
response.raise_for_status()
data = response.json()const response = await fetch(`https://api.cspriceapi.com/v1/prices/youpin/history?${new URLSearchParams({"market_hash_name":"AK-47 | Redline (Field-Tested)","resolution":"daily"})}`, {
headers: {
"x-api-key": "YOUR_API_KEY",
},
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const data = await response.json();package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
q := url.Values{}
q.Set("market_hash_name", "AK-47 | Redline (Field-Tested)")
q.Set("resolution", "daily")
req, err := http.NewRequest("GET", "https://api.cspriceapi.com/v1/prices/youpin/history?"+q.Encode(), nil)
if err != nil {
panic(err)
}
req.Header.Set("x-api-key", "YOUR_API_KEY")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(resp.Status, len(body), "bytes")
}library(httr2)
response <- request("https://api.cspriceapi.com/v1/prices/youpin/history") |>
req_url_query(market_hash_name = "AK-47 | Redline (Field-Tested)", resolution = "daily") |>
req_headers(`x-api-key` = "YOUR_API_KEY") |>
req_perform()
data <- resp_body_json(response)Response
{
"market": "youpin",
"market_hash_name": "AK-47 | Redline (Field-Tested)",
"resolution": "daily",
"currency": "CNY",
"from": "2025-08-21",
"to": "2026-08-21",
"count": 2,
"data": [
{
"day": "2025-08-21",
"price": "210.5000",
"count": 8421
},
{
"day": "2026-08-21",
"price": "185.5000",
"count": 11507
}
],
"source": "YouPin History",
"requestor": "customer@example.com",
"plan": "enterprise",
"timestamp": "2026-08-21T06:00:00.000Z"
}Response fields
| Field | Type | Required | Description |
|---|---|---|---|
source | string | Yes | – |
requestor | string (email) | No | Email address associated with the API key making the call. |
plan | string | No | Plan of the API key (e.g. free, pro, enterprise). |
timestamp | string (date-time) | Yes | Server time when this response was produced. |
market | string | Yes | – |
market_hash_name | string | Yes | – |
resolution | string | Yes | – |
currency | string | Yes | – |
from | string (date) | Yes | – |
to | string (date) | Yes | – |
count | integer | Yes | – |
data | any[] | Yes | – |
Errors
400Invalid parameters or hourly range too long.401Missing, invalid, disabled or expired API key.403The API key is valid but is not allowed to call this endpoint (endpoint ACL).404Unknown marketplace slug.429Rate limit exceeded (10 requests per second per key). Retry after 1 second.500Internal server error – temporary upstream failure, etc.