CompSniper Docs

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/search finds products by keyword, or by style code with styleId. 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/product returns 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/sales returns 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"
Python
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"])
ParameterValuesDefault
keywordWhat to search for, up to 200 charactersRequired unless styleId is sent
styleIdA style code; returns only the products with exactly that codeNone
marketus, ca, uk, de, fr, it, es, nl, au, jpus
page1 to 25 (40 products per page)1
count1 to 40: how many products of the page to return40
freshtrue = search live instead of reusing a saved copy from the last 15 minutesfalse
Example response (shortened)
{
  "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"
}
  • lowestAsk is the cheapest price a seller asks now (before StockX fees and shipping); highestBid is the best offer a buyer has placed.
  • pricePremium is the average premium over retail (0.444 = 44.4%); volatility is StockX's own price volatility.
  • Search rows carry styleId only on a styleId search; /v1/stockx/product returns it for any product.
  • summary describes 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"
ParameterValuesDefault
productIdThe StockX product slug, the product URL or its idSend productId or styleId
styleIdThe style code from the boxSend productId or styleId
sizeOne size: 10, 10.5, US M 10, EU 44, UK 9, CM 28, 7W, M, XLAll sizes
marketSame values as searchus
freshtrue = read live instead of a saved copy from the last 15 minutesfalse
Example response (shortened)
{
  "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"
}
  • items has one row per size, in StockX's order; size= returns just that size.
  • lastSaleChangePercent compares the last sale with the one before, in percent.
  • sizes lists the size in every system StockX shows (US men, US women, UK, EU, CM, KR) and upc is the barcode of that size.
  • retailPrice is 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"
JavaScript
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);
ParameterValuesDefault
productId or styleIdAs aboveRequired (one of them)
sizeOne size, as above. With a size you get that size's own latest salesAll sizes
count1 to 50 sales, newest first50
soldAfter, soldBeforeDates like 2026-11-01 (UTC)None
priceHistorytrue = add the average price over the last 12 months (52 points)false
marketSame values as searchus
freshtrue = read live instead of a saved copy from the last 15 minutesfalse
Example response (shortened)
{
  "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 size you get the product's latest 50 sales across all sizes; with size you get the latest 50 sales of that size, which reach further back for one size.
  • price is the sale price before StockX fees. orderType is standard or express (shipped fast from StockX's own stock, usually at a higher price).
  • bySize summarizes the returned sales for every size (count, median, min, max, mean, the last sale and when it sold), sorted by size.
  • priceHistory is 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=true for a live answer.

Errors

The StockX endpoints use the shared error format (code, error, requestId):

StatusCodeMeaningWhat to do
400invalid_paramsMissing keyword, productId or styleId, an unknown market, a bad size or date, or a page past 25Fix the request
404not_foundNo product with that id or style code, or the product has no such size (not charged)Check the id, style code or size
429rate_limited / quota_exceededPer-minute limit or monthly allowance reachedSee Rate limits
502, 503upstream_blocked / server_busyStockX did not answer this time, or too many StockX calls at onceRetry after a few seconds, with a bound

See Errors for the full list.

On this page