Legacy V1/V2Sales export (last 24h)
GET /v1/market-sales/export
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/market-sales/export.
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 ZIP | Contents | Typical row count |
|---|---|---|
sales.csv | Sale events | ~100k / 24h |
stickers.csv | Stickers attached to sales | ~60k / 24h |
keychains.csv | Keychains 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
priceandreference_priceare in cents (integer).sale_id,sticker_id,keychain_idare large integers serialized as
strings in CSV to avoid JavaScript precision loss.
marketplacevalues:csfloat,youpin,skinport.
Access
Available on Enterprise.
Request
GET https://api.cspriceapi.com/v1/market-sales/export
curl -s --compressed "https://api.cspriceapi.com/v1/market-sales/export" \
-H "x-api-key: YOUR_API_KEY"import requests
response = requests.get(
"https://api.cspriceapi.com/v1/market-sales/export",
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/market-sales/export", {
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"
)
func main() {
req, err := http.NewRequest("GET", "https://api.cspriceapi.com/v1/market-sales/export", 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/market-sales/export") |>
req_headers(`x-api-key` = "YOUR_API_KEY") |>
req_perform()
data <- resp_body_json(response)Errors
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.