StockX API
Search StockX products, read the market for every size (lowest ask, highest bid, last sale) and get individual StockX sales with price, size and date, by product or style code, using one CompSniper API key.
Three endpoints cover StockX sneakers, streetwear, collectibles and trading cards:
GET /v1/stockx/searchfinds products by keyword, or by style code withstyleId. Each product comes with its lowest ask, highest bid, last sale, sales in the last 72 hours and the 90 day and 12 month average price and sales count.GET /v1/stockx/productreturns one product in full: style code, colorway, retail price, release date, images, and the market for every size (lowest ask, highest bid, last sale, number of asks and bids, recent sales, UPC, and the size in US, UK, EU and CM).GET /v1/stockx/salesreturns the latest individual sales of a product, or of one size, with the price, the size, the time of the sale and the order type, plus a summary for every size and an optional 12 month price history.
Look products up by their StockX slug (the last part of the product URL), the product URL, or the
style code printed on the box (DZ5485-612, DZ5485 612 and dz5485612 all work). Sizes can be
given the way you read them: 10, US M 10, EU 44, UK 9, 7W, or M and XL for apparel.
Prices can be read for 10 regions with market: us (USD, default), ca (CAD), uk (GBP), de,
fr, it, es, nl (EUR), au (AUD) and jp (JPY). They are the prices StockX shows buyers in
that region, so the same sale reads $260 in the US and a higher number in Europe.
It uses the same API key, per-minute limit, monthly allowance and purchased credits as the eBay endpoints. No StockX account is needed.
Search products
curl --fail-with-body \
-H "Authorization: Bearer cs_live_REPLACEWITHYOURKEY" \
"https://api.compsniper.com/v1/stockx/search?keyword=jordan+4+black+cat"import requests
response = requests.get(
"https://api.compsniper.com/v1/stockx/search",
headers={"Authorization": "Bearer cs_live_REPLACEWITHYOURKEY"},
params={"styleId": "DZ5485-612"},
timeout=45,
)
response.raise_for_status()
for product in response.json()["items"]:
print(product["title"], product["styleId"], product["lowestAsk"], product["lastSale"])| Parameter | Values | Default |
|---|---|---|
keyword | What to search for, up to 200 characters | Required unless styleId is sent |
styleId | A style code; returns only the products with exactly that code | None |
market | us, ca, uk, de, fr, it, es, nl, au, jp | us |
page | 1 to 25 (40 products per page) | 1 |
count | 1 to 40: how many products of the page to return | 40 |
fresh | true = search live instead of reusing a saved copy from the last 15 minutes | false |
{
"keyword": "jordan 1 chicago",
"marketplace": "stockx",
"market": "us",
"currency": "USD",
"styleId": null,
"page": 1,
"totalResults": 1000,
"totalPages": 25,
"hasNextPage": true,
"totalItems": 40,
"items": [
{
"productId": "air-jordan-1-retro-high-og-chicago-reimagined-lost-and-found",
"url": "https://stockx.com/air-jordan-1-retro-high-og-chicago-reimagined-lost-and-found",
"title": "Jordan 1 Retro High OG Chicago Lost and Found",
"name": "Chicago Lost and Found",
"brand": "Jordan",
"model": "Jordan 1 Retro High OG",
"styleId": null,
"category": "sneakers",
"gender": "men",
"releaseDate": "2022-11-19",
"imageUrl": "https://images.stockx.com/images/Air-Jordan-1-Retro-High-OG-Chicago-Reimagined-Product.jpg",
"lowestAsk": 152,
"highestBid": 182,
"lastSale": 260,
"salesLast72Hours": 60,
"averagePrice90Days": 255,
"salesCount90Days": 1181,
"averagePriceYear": 270,
"salesCountYear": 5151,
"volatility": 0.096,
"pricePremium": 0.444
}
],
"summary": { "count": 40, "currency": "USD", "median": 70, "mean": 178.23, "min": 33, "max": 2797, "p25": 49.75, "p75": 114.75, "avgShipping": null },
"scrapedAt": "2026-11-28T08:00:00.000Z"
}lowestAskis the cheapest price a seller asks now (before StockX fees and shipping);highestBidis the best offer a buyer has placed.pricePremiumis the average premium over retail (0.444= 44.4%);volatilityis StockX's own price volatility.- Search rows carry
styleIdonly on astyleIdsearch;/v1/stockx/productreturns it for any product. summarydescribes the lowest asks on the page.
Product and market by size
curl --fail-with-body \
-H "Authorization: Bearer cs_live_REPLACEWITHYOURKEY" \
"https://api.compsniper.com/v1/stockx/product?styleId=DZ5485-612"| Parameter | Values | Default |
|---|---|---|
productId | The StockX product slug, the product URL or its id | Send productId or styleId |
styleId | The style code from the box | Send productId or styleId |
size | One size: 10, 10.5, US M 10, EU 44, UK 9, CM 28, 7W, M, XL | All sizes |
market | Same values as search | us |
fresh | true = read live instead of a saved copy from the last 15 minutes | false |
{
"keyword": "DZ5485-612",
"marketplace": "stockx",
"market": "us",
"currency": "USD",
"product": {
"productId": "air-jordan-1-retro-high-og-chicago-reimagined-lost-and-found",
"url": "https://stockx.com/air-jordan-1-retro-high-og-chicago-reimagined-lost-and-found",
"title": "Jordan 1 Retro High OG Chicago Lost and Found",
"name": "Chicago Lost and Found",
"brand": "Jordan",
"model": "Jordan 1 Retro High OG",
"styleId": "DZ5485-612",
"colorway": "Varsity Red/Black-Sail-Muslin",
"retailPrice": 180,
"releaseDate": "2022-11-19",
"category": "sneakers",
"gender": "men",
"condition": "New",
"imageUrl": "https://images.stockx.com/images/Air-Jordan-1-Retro-High-OG-Chicago-Reimagined-Product.jpg",
"images": ["https://images.stockx.com/images/Air-Jordan-1-Retro-High-OG-Chicago-Reimagined-Product.jpg"],
"sizeType": "us m"
},
"marketData": { "lowestAsk": 201, "highestBid": 295, "lastSale": 260, "numberOfAsks": 1011, "numberOfBids": 432, "salesLast72Hours": 60, "averagePrice90Days": 255, "salesCount90Days": 1181 },
"size": null,
"totalItems": 26,
"items": [
{
"size": "10",
"variantId": "c63bef6c-d1cb-4b26-967e-cb2c5bf31e28",
"sizes": { "us": "US M 10", "uk": "UK 9", "cm": "CM 28", "kr": "KR 280", "eu": "EU 44", "us_w": "US W 11.5" },
"upc": "196154478656",
"lowestAsk": 284,
"highestBid": 245,
"lastSale": 282,
"lastSaleChangePercent": 0.35,
"numberOfAsks": 57,
"numberOfBids": 30,
"salesLast72Hours": 4,
"averagePrice90Days": 261,
"salesCount90Days": 139
}
],
"scrapedAt": "2026-11-28T08:00:00.000Z"
}itemshas one row per size, in StockX's order;size=returns just that size.lastSaleChangePercentcompares the last sale with the one before, in percent.sizeslists the size in every system StockX shows (US men, US women, UK, EU, CM, KR) andupcis the barcode of that size.retailPriceis the US retail price.
Sales
curl --fail-with-body \
-H "Authorization: Bearer cs_live_REPLACEWITHYOURKEY" \
"https://api.compsniper.com/v1/stockx/sales?styleId=DZ5485-612&size=10&priceHistory=true"const url = new URL("https://api.compsniper.com/v1/stockx/sales");
url.search = new URLSearchParams({ productId: "air-jordan-4-retro-black-cat-2025" });
const res = await fetch(url, { headers: { Authorization: "Bearer cs_live_REPLACEWITHYOURKEY" } });
const data = await res.json();
console.table(data.bySize);| Parameter | Values | Default |
|---|---|---|
productId or styleId | As above | Required (one of them) |
size | One size, as above. With a size you get that size's own latest sales | All sizes |
count | 1 to 50 sales, newest first | 50 |
soldAfter, soldBefore | Dates like 2026-11-01 (UTC) | None |
priceHistory | true = add the average price over the last 12 months (52 points) | false |
market | Same values as search | us |
fresh | true = read live instead of a saved copy from the last 15 minutes | false |
{
"keyword": "DZ5485-612",
"marketplace": "stockx",
"market": "us",
"currency": "USD",
"product": { "productId": "air-jordan-1-retro-high-og-chicago-reimagined-lost-and-found", "title": "Jordan 1 Retro High OG Chicago Lost and Found", "styleId": "DZ5485-612", "retailPrice": 180 },
"size": "10",
"totalItems": 50,
"items": [
{ "price": 282, "currency": "USD", "size": "10", "soldAt": "2026-11-27T23:21:24.552Z", "orderType": "express" },
{ "price": 271, "currency": "USD", "size": "10", "soldAt": "2026-11-27T04:10:12.020Z", "orderType": "standard" }
],
"summary": { "count": 50, "currency": "USD", "median": 270.5, "mean": 286.58, "min": 217, "max": 455, "p25": 260, "p75": 279, "avgShipping": null },
"bySize": [
{ "size": "10", "count": 50, "median": 270.5, "min": 217, "max": 455, "mean": 286.58, "lastSale": 282, "lastSoldAt": "2026-11-27T23:21:24.552Z" }
],
"priceHistory": [
{ "date": "2025-11-28", "averagePrice": 281 },
{ "date": "2025-12-05", "averagePrice": 313 }
],
"scrapedAt": "2026-11-28T08:00:00.000Z"
}- Without
sizeyou get the product's latest 50 sales across all sizes; withsizeyou get the latest 50 sales of that size, which reach further back for one size. priceis the sale price before StockX fees.orderTypeisstandardorexpress(shipped fast from StockX's own stock, usually at a higher price).bySizesummarizes the returned sales for every size (count, median, min, max, mean, the last sale and when it sold), sorted by size.priceHistoryis the average sale price over the last 12 months, for the product or for the size.
Billing
- One successful call is one request, for search, product and sales.
- Failed requests and an unknown product or size (404) are free.
- Repeat calls within 15 minutes can return instantly from a saved copy and count as one request. Add
fresh=truefor a live answer.
Errors
The StockX endpoints use the shared error format (code, error, requestId):
| Status | Code | Meaning | What to do |
|---|---|---|---|
| 400 | invalid_params | Missing keyword, productId or styleId, an unknown market, a bad size or date, or a page past 25 | Fix the request |
| 404 | not_found | No product with that id or style code, or the product has no such size (not charged) | Check the id, style code or size |
| 429 | rate_limited / quota_exceeded | Per-minute limit or monthly allowance reached | See Rate limits |
| 502, 503 | upstream_blocked / server_busy | StockX did not answer this time, or too many StockX calls at once | Retry after a few seconds, with a bound |
See Errors for the full list.
Vinted Listings API
Search Vinted in the US, UK and Europe by keyword for active listings with price, buyer protection fee, brand, size, condition, photos and favourites, and read any listing's full details, using one CompSniper API key.
GOAT API
Search GOAT products and read the lowest ask, instant ship price, last sold price and highest offer for every size and condition, by product or style code, using one CompSniper API key.