Data & APIStockX scraper
StockX Batch Prices API
LiveStockX prices per size and condition, as JSON.
GET
/v2/sites/stockx/batch_prices- Auth
- x-api-key header
- Parameters
- ids, country, fresh, max_age
- Returns
- JSON · 2 fields
What does the StockX Batch Prices API return?
Send several product IDs and get back StockX prices for each as JSON in one GET call: the lowest ask and the last sale per size and condition.
- You send
- ids
- Plus country, fresh, max_age
- You get back
- Prices
- Same shape on every shop
- Cached answer
- 1 credit
- Read from our cache, with its age
- Live answer
- 1 credit
- fresh=live reads the page now
Parameters
| Name | Type | Description |
|---|---|---|
| ids | string | Required. Several product IDs, separated by commas. |
| country | string | ISO country code of the shop to read, such as FR or US. |
| fresh | string | live skips the cache and reads the page now (2 credits, 3 on the hardest shops). |
| max_age | integer | Oldest cached answer you accept, in seconds. |
Send your key in the x-api-key header. Every answer ends with source (shop, fetchedAt, ageS, cached, stale, credits); money is { amountMinor, currency }. The example response shows the shape, not a read of the shop.
What you get back
- offers
- source
Field names as the API returns them. The full example response is in the code panel.
StockX API vs scraping
| Topic | Your own scraper | Retailed API |
|---|---|---|
| Setup | Write and host the scraper, buy proxies, handle block pages | One GET call with an API key |
| Page changes | Your parser breaks until you fix it | We fix the parser; field names stay the same |
| Output | Whatever the page shows, in its own format | The same JSON shape on every shop |
| Freshness | Every call is a live fetch | Cached (1 credit) or fresh=live (2 credits, 3 on the hardest shops), with the age of every answer |
| Failed calls | You pay for proxy traffic either way | Errors, block pages, empty results and 404s are not billed |
Scraping it yourself makes sense for a one-off pull of a few pages. For regular calls, or the same data from several shops, the API saves the upkeep.
Same source
Next
Product data from the sites resellers use
Prices, products and sizes from StockX, GOAT, Chrono24 and more, through one API.