Skip to main content
GET/v1/pricing/:marketHashName/sale-samplesPRO+

Sampled Sale Prices

Sampled Youpin sale prices of one CS2 item, as three independent series with at most one sale per 1-hour, 4-hour or 12-hour bucket. Each point carries the native price in fen (CNY minor units) and a USD value at the historical CNY/USD rate of the sale's UTC date. The series are samples, not sales volume: one sale can appear in several series, so never stitch or sum them, and a point count is not a sale count. An empty series means no points were collected, not zero sales. Pro and Enterprise plans. CS2 only.

Three independent samples, not one tape: the route serves archived Youpin sale prices as a 1h, a 4h and a 12h series, each with at most one sale per bucket (sampling.method: one_sale_per_bucket). The series overlap, so one sale can appear in several of them (intervalsIndependent: true). Read each series on its own; never stitch them into one line or add them up.

Not volume: pointCount counts the points returned, not sales, and representsVolume is always false. A busy bucket and a quiet one each hold at most one point. An empty data array, with lastCollectedAt: null, means no points were collected for that series in the range, not that the item did not sell. A known item with no Youpin template or no archived points also returns 200 with empty series.

Prices: priceCny is Youpin's price in fen (CNY minor units; divide by 100 for yuan), as reported. priceUsdCents converts it at the historical CNY/USD rate of the sale's UTC date, rounded half up, and fxDate is the date of the rate used, which can be an earlier published rate for a weekend or holiday sale. Only historical rates are used: when a sale date in the range has no historical rate, the request answers 503 instead of falling back to the current rate.

Range and buckets: start and end filter on soldAt, the sale's own time. Without start the range is the 180 days before end, which defaults to the request time; no range may exceed 180 days. Points are sorted oldest first. bucket is the start of the sampling bucket on Youpin's UTC+8 clock, so it can be earlier than start. An item that maps to more than one Youpin template answers 409: distinct templates are never merged into one series.

Parameters

marketHashNamestringrequired
Path segment. URL-encoded exact market hash name.
marketstringrequired
Query. youpin, the only source. Any other value is a 400.
startstringoptional
Query. Inclusive start of the sale-time range: a date (2026-10-01, read as 00:00 UTC) or a timestamp with seconds and an explicit zone (2026-10-25T00:00:00Z). Defaults to 180 days before end.
endstringoptional
Query. Exclusive end of the range, in the same formats. Defaults to the request time. The range must be positive, at most 180 days long and not end in the future; otherwise 400.

Response fields

SaleSamplesResponseSampled Youpin sale prices of one CS2 item, as three independent series.
marketHashNamestring
The item's market hash name.
marketstring
Always youpin.
startstring (date-time)
Inclusive start of the sale-time range read.
endstring (date-time)
Exclusive end of the range.
samplingSaleSampling
How the series were sampled.
The 1h, 4h and 12h series.

Nested and shared shapes link to the API Objects reference.

Errors

400market missing or not youpin, an invalid item name, a start or end that is neither a real date nor a timestamp with an explicit zone, a range that is empty, longer than 180 days or ends in the future, or an unknown parameter.
401Missing Authorization header, unsupported scheme, or a key that is unknown, inactive, expired, or revoked.
403Valid key, but the plan is not Pro or Enterprise, or the subscription is inactive or expired.
404No CS2 item has this exact market hash name.
409The name matches more than one CS2 item, or the item maps to more than one Youpin template. Distinct templates are never merged into one series.
429Rate limit exceeded; see Retry-After + X-RateLimit-* headers. Pooled per account across all keys.
503The sample archive could not be read within its limits, or a sale date in the range has no historical CNY/USD rate. There is no current-rate fallback. Retry later.

Companion endpoints

POST/v1/pricing/sale-samples/batch

The same series for up to 100 items in one call. POST market, marketHashNames[] and an optional range; returns items keyed by market hash name, plus notFound[] and ambiguous[]. Returns 200.

Full reference →
export SKINPRICER_API_KEY="sp_live_•••"

curl -G "https://pricing.skinpricer.com/v1/pricing/AK-47%20%7C%20Redline%20(Field-Tested)/sale-samples" \
  --data-urlencode "market=youpin" \
  --data-urlencode "start=2026-10-25T00:00:00Z" \
  --data-urlencode "end=2026-10-25T04:00:00Z" \
  -H "Authorization: ApiKey $SKINPRICER_API_KEY"
// No SDK helper for this endpoint yet, so call it directly.
const url = new URL("https://pricing.skinpricer.com/v1/pricing/AK-47%20%7C%20Redline%20(Field-Tested)/sale-samples");
url.searchParams.set("market", "youpin");
url.searchParams.set("start", "2026-10-25T00:00:00Z");
url.searchParams.set("end", "2026-10-25T04:00:00Z");

const res = await fetch(url, {
  headers: { Authorization: `ApiKey ${process.env.SKINPRICER_API_KEY}` },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
console.log(await res.json());
import os
import requests

res = requests.get(
    "https://pricing.skinpricer.com/v1/pricing/AK-47%20%7C%20Redline%20(Field-Tested)/sale-samples",
    params={"market": "youpin", "start": "2026-10-25T00:00:00Z", "end": "2026-10-25T04:00:00Z"},
    headers={"Authorization": f"ApiKey {os.environ['SKINPRICER_API_KEY']}"},
    timeout=10,
)
res.raise_for_status()
print(res.json())

Authenticated endpoint: call it with your API key from your own client (see the code sample).

Response 200
{
  "marketHashName": "AK-47 | Redline (Field-Tested)",
  "market": "youpin",
  "start": "2026-10-25T00:00:00.000Z",
  "end": "2026-10-25T04:00:00.000Z",
  "sampling": {
    "method": "one_sale_per_bucket",
    "intervalsIndependent": true,
    "representsVolume": false
  },
  "intervals": {
    "1h": {
      "pointCount": 3,
      "data": [
        {
          "bucket": "2026-10-25T00:00:00.000Z",
          "soldAt": "2026-10-25T00:41:17.000Z",
          "priceUsdCents": 3249,
          "priceCny": 23150,
          "fxDate": "2026-10-23"
        },
        {
          "bucket": "2026-10-25T01:00:00.000Z",
          "soldAt": "2026-10-25T01:52:03.000Z",
          "priceUsdCents": 3228,
          "priceCny": 23000,
          "fxDate": "2026-10-23"
        },
        {
          "bucket": "2026-10-25T03:00:00.000Z",
          "soldAt": "2026-10-25T03:18:46.000Z",
          "priceUsdCents": 3268,
          "priceCny": 23280,
          "fxDate": "2026-10-23"
        }
      ],
      "lastCollectedAt": "2026-10-25T04:06:12.000Z"
    },
    "4h": {
      "pointCount": 1,
      "data": [
        {
          "bucket": "2026-10-25T00:00:00.000Z",
          "soldAt": "2026-10-25T01:52:03.000Z",
          "priceUsdCents": 3228,
          "priceCny": 23000,
          "fxDate": "2026-10-23"
        }
      ],
      "lastCollectedAt": "2026-10-25T04:06:12.000Z"
    },
    "12h": {
      "pointCount": 0,
      "data": [],
      "lastCollectedAt": null
    }
  }
}
Response headers
X-RateLimit-Limit: <per-minute, set by your plan>
X-RateLimit-Remaining: <remaining this minute>
X-RateLimit-Reset: <seconds to reset>
X-Request-ID: req_xxxxxxxxxxxxxxxx

Usage & licensing

Access to the API and its data is governed by our Terms of Service. You may not resell or redistribute the data, use it to build a competing service, or exceed your plan’s rate limits, and you must attribute SkinPricer as the source wherever the Terms permit you to display it. Abuse may be throttled or suspended.