Skip to main content
POST/v1/pricing/sale-samples/batchPRO+

Batch Sampled Sale Prices

Sampled Youpin sale prices for up to 100 CS2 items in one call, over one range. items maps each known name to the full sampled sale prices shape, notFound[] lists names that are not CS2 items, and ambiguous[] lists items that map to more than one Youpin template. The same caveats apply: independent samples, not sales volume, and USD at historical rates only. Returns 200. Pro and Enterprise plans. CS2 only.

Read up to 100 items in one POST. The body takes market (youpin), marketHashNames and an optional start and end, with the same formats, defaults and 180-day limit as the single-item route; one range applies to every item. A repeated name is read once. Returns 200 (not 201).

items maps each known name to a full SaleSamplesResponse. A known item without points in the range is in items with empty series, not in notFound, which lists only names that are not CS2 items. ambiguous lists known items that map to more than one Youpin template; their series are not merged or served. Every series carries the single-item caveats: independent samples, not sales volume, and USD at historical rates only.

Parameters

marketHashNamesstring[]required
Body. Exact market hash names, 1 to 100, each up to 512 characters. A repeated name is read once.
marketstringrequired
Body. youpin, the only source. Any other value is a 400.
startstringoptional
Body. Inclusive start of the sale-time range: a date or a timestamp with seconds and an explicit zone. Defaults to 180 days before end.
endstringoptional
Body. Exclusive end of the range. 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

SaleSamplesBatchResponseSampled Youpin sale prices for many CS2 items over one range.
itemsobject
Map of market hash name to SaleSamplesResponse, one per known item. A known item without points in the range has empty series.
notFoundstring[]
Requested names that are not CS2 items.
ambiguousstring[]
Known items that map to more than one Youpin template. Their series are not merged or served.

Errors

400No marketHashNames, more than 100, or an invalid name; market missing or not youpin; an invalid start or end; a range that is empty, longer than 180 days or ends in the future; or an unknown body field.
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.
409A requested name matches more than one CS2 item. Items with more than one Youpin template are listed in ambiguous instead.
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.
export SKINPRICER_API_KEY="sp_live_•••"

curl -X POST "https://pricing.skinpricer.com/v1/pricing/sale-samples/batch" \
  -H "Authorization: ApiKey $SKINPRICER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"market":"youpin","marketHashNames":["AK-47 | Redline (Field-Tested)","AWP | Asiimov (Field-Tested)"],"start":"2026-10-25T00:00:00Z","end":"2026-10-25T04:00:00Z"}'
// No SDK helper for this endpoint yet, so call it directly.
const url = new URL("https://pricing.skinpricer.com/v1/pricing/sale-samples/batch");

const res = await fetch(url, {
  method: "POST",
  headers: { Authorization: `ApiKey ${process.env.SKINPRICER_API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({"market":"youpin","marketHashNames":["AK-47 | Redline (Field-Tested)","AWP | Asiimov (Field-Tested)"],"start":"2026-10-25T00:00:00Z","end":"2026-10-25T04:00:00Z"}),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
console.log(await res.json());
import os
import requests

res = requests.post(
    "https://pricing.skinpricer.com/v1/pricing/sale-samples/batch",
    json={"market":"youpin","marketHashNames":["AK-47 | Redline (Field-Tested)","AWP | Asiimov (Field-Tested)"],"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
{
  "items": {
    "AK-47 | Redline (Field-Tested)": {
      "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
        }
      }
    },
    "AWP | Asiimov (Field-Tested)": {
      "marketHashName": "AWP | Asiimov (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": 2,
          "data": [
            {
              "bucket": "2026-10-25T00:00:00.000Z",
              "soldAt": "2026-10-25T00:27:39.000Z",
              "priceUsdCents": 10001,
              "priceCny": 71250,
              "fxDate": "2026-10-23"
            },
            {
              "bucket": "2026-10-25T02:00:00.000Z",
              "soldAt": "2026-10-25T02:44:10.000Z",
              "priceUsdCents": 9963,
              "priceCny": 70980,
              "fxDate": "2026-10-23"
            }
          ],
          "lastCollectedAt": "2026-10-25T04:06:15.000Z"
        },
        "4h": {
          "pointCount": 1,
          "data": [
            {
              "bucket": "2026-10-25T00:00:00.000Z",
              "soldAt": "2026-10-25T02:44:10.000Z",
              "priceUsdCents": 9963,
              "priceCny": 70980,
              "fxDate": "2026-10-23"
            }
          ],
          "lastCollectedAt": "2026-10-25T04:06:15.000Z"
        },
        "12h": {
          "pointCount": 1,
          "data": [
            {
              "bucket": "2026-10-24T16:00:00.000Z",
              "soldAt": "2026-10-25T00:27:39.000Z",
              "priceUsdCents": 10001,
              "priceCny": 71250,
              "fxDate": "2026-10-23"
            }
          ],
          "lastCollectedAt": "2026-10-25T04:06:15.000Z"
        }
      }
    }
  },
  "notFound": [],
  "ambiguous": []
}
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.