/v1/market-sales/export

GET

Sales export (last 24h)

GET/v1/market-sales/export

ZIP export of the last 24 hours (Enterprise)

Returns a ZIP archive (market-sales-export.zip) with three CSV files

for subscription customers who replicate the dataset locally once per day.

File in ZIPContentsTypical row count
sales.csvSale events~100k / 24h
stickers.csvStickers attached to sales~60k / 24h
keychains.csvKeychains attached to sales~1k / 24h

Always exports all rows from the last 24 hours

in a single request (~6 MB compressed ZIP). No pagination.

Join the CSVs locally on (marketplace, sale_id, sold_at).

Requires x-api-key. The key must include /v1/market-sales/export in its

allowed_endpoints (or *).

curl -H "x-api-key: YOUR_KEY" \
  "https://api.cspriceapi.com/v1/market-sales/export" \
  -o market-sales-export.zip
unzip market-sales-export.zip

See component schemas MarketSalesCsvSalesRow, MarketSalesCsvStickersRow

and MarketSalesCsvKeychainsRow for the exact column layout.

Notes

  • price and reference_price are in cents (integer).
  • sale_id, sticker_id, keychain_id are large integers serialized as

strings in CSV to avoid JavaScript precision loss.

  • marketplace values: csfloat, youpin, skinport.

Example request

curl -s "https://api.cspriceapi.com/v1/market-sales/export" \
  -H "x-api-key: YOUR_API_KEY"

Responses

  • 200ZIP archive containing `sales.csv`, `stickers.csv` and `keychains.csv` (each with a header row). Row counts are also exposed via response headers.
  • 401Missing, invalid, disabled or expired API key.
  • 403The API key is valid but is not allowed to call this endpoint (endpoint ACL).
  • 429Rate limit exceeded (10 requests per second per key). Retry after 1 second.
  • 500Internal server error – temporary upstream failure, etc.

Interactive explorer

Try requests with your API key and browse the full request/response schemas.

Loading endpoint…

This endpoint as Markdown (.md)