# StockX Products API

Full StockX product detail with live market data — every size, its ask, bid and last sale — one row per product, from a brand page, a search or a product URL.

**Pricing:** $1 / 1k products

**Endpoint:** `POST /v1/data/stockx/products/run`

**Auth:** `Authorization: Bearer mk_live_...`

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `listing_url` | string | No | A StockX listing page URL — a brand page (https://stockx.com/brands/adidas) or a search results page (https://stockx.com/search?s=jordan%201). Brand pages also carry the 12-month market statistics; search pages do not. |
| `query` | string | No | A keyword to search StockX for, e.g. 'jordan 1 chicago'. We build the search URL for you — no need to paste one. Relevance-ranked, so it drops roughly 30-40% of a brand; use a brand page as the Listing URL for a full catalog. |
| `urls` | array | No | One or more StockX product URLs, e.g. https://stockx.com/air-jordan-1-retro-high-og-chicago-reimagined-lost-and-found. One per line. |
| `maxResults` | integer | No | Number of products to return from a brand page or a search. Use 0 for all. Ignored when you pass product URLs. |
| `country_code` | string | No | Shopping region. Scopes the StockX market the asks and bids come from. Prices are quoted in USD regardless. |

## Example

```bash
curl -X POST https://api.mindcase.co/v1/data/stockx/products/run \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"params":{}}'
```

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/v1/data/stockx/products/run",
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {}},
)
data = resp.json()
```

## Get the results

`run` is async and returns a `job_id`. Poll until `status` is `completed`, then read the rows:

```bash
# 1) check status
curl https://api.mindcase.co/v1/jobs/JOB_ID \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"

# 2) when status == completed, fetch the rows
curl https://api.mindcase.co/v1/jobs/JOB_ID/results \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"
```

Full API reference (auth, jobs, balance, endpoints): https://mindcase.co/skills.md

## Response columns

| Field | Display name | Type |
|-------|--------------|------|
| `productId` | Product ID | text |
| `productUrl` | Product URL | url |
| `primaryTitle` | Primary Title | text |
| `secondaryTitle` | Secondary Title | text |
| `brand` | Brand | text |
| `model` | Model | text |
| `colorway` | Colorway | text |
| `styleId` | Style ID | text |
| `category` | Category | text |
| `subCategory` | Sub Category | text |
| `categoryPath` | Category Path | text |
| `contentGroup` | Content Group | text |
| `gender` | Gender | text |
| `condition` | Condition | text |
| `sizeConvention` | Size Convention | text |
| `retailPrice` | Retail Price | number |
| `releaseDate` | Release Date | date |
| `description` | Description | text |
| `tags` | Tags | array |
| `lastSale` | Last Sale | number |
| `sales72Hours` | Sales (72 Hours) | number |
| `averagePrice90Days` | Average Price (90 Days) | number |
| `sales90Days` | Sales (90 Days) | number |
| `priceVolatility` | Price Volatility | number |
| `sales12Months` | Sales (12 Months) | number |
| `averagePrice12Months` | Average Price (12 Months) | number |
| `bids` | Bids | number |
| `askInventoryType` | Ask Inventory Type | text |
| `expressAskCount` | Express Ask Count | number |
| `expressShipLowestAsk` | Express Ship Lowest Ask | number |
| `expressDeliveryDate` | Express Delivery Date | text |
| `expressLatestDeliveryDate` | Express Latest Delivery Date | text |
| `images` | Images | array |
| `sizes` | Sizes | object_array |
| `attributes` | Attributes | object_array |
