# StockX API by APISH (`apish/stockx-api`) Actor

StockX lowest asks, highest bids, last sales, price history and order-book depth by size as JSON, via APISH. Pay per credit; failed calls are free.

- **URL**: https://apify.com/apish/stockx-api.md
- **Developed by:** [APISH](https://apify.com/apish) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.00 / 1,000 credits

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## StockX API by APISH

Get public StockX data as clean, consistent JSON: stockX brand or category listing, stockX bids and asks depth, stockX price history and recent sales, stockX related products, stockX search. 5 endpoints, one response shape, numbers parsed, absolute URLs.

### How to use

1. Pick an **Endpoint**. Each option shows what it returns and its price in credits.
2. Enter its **Parameters** as JSON, for example `{"brand":"nike","category":"sneakers"}`. All parameters are listed below.
3. Run. Each call becomes one row in the dataset. Use **Batch** to run the same endpoint for many inputs and **Pages per input** to follow pagination.

### Pricing

Pay per event: you pay per APISH credit the call used. The price of each endpoint is in the table below. Calls that fail on our side (server errors, timeouts, blocks) are free.

### Endpoints

| Endpoint | Returns | Required parameters | Credits |
|---|---|---|---|
| `/stockx/v1/browse` | StockX brand or category listing | — | 1 |
| `/stockx/v1/product/bids` | StockX bids and asks depth | — | 1 |
| `/stockx/v1/product/history` | StockX price history and recent sales | — | 1 |
| `/stockx/v1/product/related` | StockX related products | — | 1 |
| `/stockx/v1/search` | StockX search | `q` | 1 |

### Output

Each dataset row has `endpoint`, `params`, `status`, `credits_used` and the endpoint's data. Add `"raw": 1` to the parameters to also get the site's original record, or `"fields": "a,b.c"` to return only the fields you need.

### Endpoint details

#### StockX brand or category listing

Endpoint `/stockx/v1/browse` · 1 credit per successful call.

A StockX brand page or category page: its products (name, brand, style id, lowest ask, highest bid, last sale, number of asks and bids, sales in the last 72 hours, release date, retail price, image), the totals and the filters the page offers. Takes the same filters and sorts as `/stockx/v1/search`.

Parameters:

- `brand`: StockX brand id (as in stockx.com/brands/<brand>), e.g. nike, jordan, adidas, new-balance. Brand or category is required.
- `category`: StockX category id, e.g. sneakers, apparel, accessories, collectibles, trading-cards, electronics. With a brand it narrows the brand page.
- `url`: A stockx.com/brands/<brand> or stockx.com/category/<category> link, instead of brand or category.
- `gender`: Gender filter (men, women, child, preschool, toddler, infant, unisex).
- `condition`: Condition filter id as StockX uses it.
- `color`: Colour filter.
- `size`: Size filter id as StockX uses it.
- `size_type`: Size type filter id.
- `activity`: Activity filter id.
- `below_retail`: Only products selling below retail.
- `available_now`: Only products available now.
- `xpress_ship`: Only products with Xpress shipping.
- `sort` — one of `featured`, `most-active`, `lowest_ask`, `highest_bid`, `last_sale`, `recent_asks`, `recent_bids`, `release_date`, `price_premium`, `deadstock_sold`, `average_deadstock_price`, `volatility`: Sort order.
- `order` — one of `asc`, `desc`: Sort direction with sort.
- `page`: Results page (1-25).

Example parameters: `{"brand":"nike","category":"sneakers"}`

#### StockX bids and asks depth

Endpoint `/stockx/v1/product/bids` · 1 credit per successful call.

A StockX product's order book: each price level with the number of open bids or asks at that price and the size it is for. Pass a `variant` id (from `/stockx/v1/product/history` recent sales) for one size only.

Parameters:

- `url`: StockX product link. url or id is required.
- `id`: Product url key or product uuid, instead of url.
- `type` — one of `bids`, `asks`, `both`: Which side of the book.
- `variant`: Variant (size) uuid for one size only.
- `limit`: Price levels per side (1-100).
- `page`: Page of price levels.
- `currency`: Currency code (USD, EUR, GBP, CAD, AUD, JPY, ...).
- `country`: Market country code.

Example parameters: `{"id":"air-jordan-1-retro-high-og-chicago-reimagined-lost-and-found","type":"both","limit":50,"page":1,"currency":"USD","country":"US"}`

#### StockX price history and recent sales

Endpoint `/stockx/v1/product/history` · 1 credit per successful call.

A StockX product's sale price history (average sale price per interval over the chosen range), its most recent sales (price, size, time, order type) and sale statistics (12-month low and high, 90-day low, high, average and number of sales, volatility, price premium). Pass a `variant` id from `recent_sales` for one size only.

Parameters:

- `url`: Product URL (https://stockx.com/<url-key>).
- `id`: Product URL key or product id instead of url.
- `variant`: A size's variant id (from recent_sales\[].variant_id) for that size's history.
- `range` — one of `1m`, `3m`, `6m`, `ytd`, `1y`, `all`: History range (default all).
- `intervals`: Points in the price history (1-400; default by range).
- `sales`: How many recent sales (1-100, default 20).
- `currency`: Currency (default USD): USD, EUR, GBP, CAD, AUD, JPY, CHF, SGD, HKD, KRW, NZD, MXN, CNY, SEK, DKK, NOK, PLN.
- `country`: Market country, two letters (default US).

Example parameters: `{"url":"https://stockx.com/air-jordan-4-retro-black-cat-2025"}`

#### StockX related products

Endpoint `/stockx/v1/product/related` · 1 credit per successful call.

Products related to a StockX product: the other colorways of the same design (family=design) or other products in the same colour family (family=color), each with its lowest ask, brand, category and image.

Parameters:

- `url`: StockX product link. url or id is required.
- `id`: Product url key or product uuid, instead of url.
- `family` — one of `design`, `color`: Which family.
- `currency`: Currency code.
- `country`: Market country code.

Example parameters: `{"id":"air-jordan-1-retro-high-og-chicago-reimagined-lost-and-found","family":"color","currency":"USD","country":"US"}`

#### StockX search

Endpoint `/stockx/v1/search` · 1 credit per successful call.

Pass `next_page` from the previous response; `next_page` is null on the last page.

Parameters:

- `q` (required)
- `page`: Page number. Pass `next_page` from the previous response; `next_page` is null on the last page.
- `category`: sneakers, apparel, shoes, accessories, collectibles, trading-cards, electronics, or a sub-category (lifestyle, performance, tops, bags…).
- `gender`: men, women, kids, unisex (comma list).
- `brand`: Brand slug(s), comma separated (e.g. jordan, nike, adidas).
- `condition`: new-and-verified, new-other, used (comma list).
- `color`: Color slug(s), e.g. black, white.
- `activity`: running, basketball, skateboarding, soccer… (comma list).
- `size`: Size value(s) as StockX lists them.
- `size_type`: StockX size type(s), e.g. men, women, gs.
- `min_price`: Lowest ask from, USD.
- `max_price`: Lowest ask up to, USD.
- `below_retail`
- `available_now`
- `xpress_ship`
- `sort` — one of `featured`, `most-active`, `lowest_ask`, `highest_bid`, `last_sale`, `recent_asks`, `recent_bids`, `release_date`, `price_premium`, `deadstock_sold`, `average_deadstock_price`, `volatility`
- `order` — one of `asc`, `desc`: With sort; default desc.

Example parameters: `{"q":"Air Jordan 1"}`

### Support

Questions, bugs or a missing field? Open an issue in this Actor's Issues tab and we will reply there.

Public data only: nothing behind a login. You are responsible for how you use the data you collect.

# Actor input Schema

## `endpoint` (type: `string`):

Which StockX endpoint to call. Each option shows what it returns and its price in credits.

## `params` (type: `object`):

Query parameters for the endpoint, as JSON. See the README for every endpoint's parameters. Example: {"brand":"nike","category":"sneakers"}

## `batch` (type: `array`):

Run the same endpoint for many inputs: a list of parameter objects. Each item is one call. Leave empty to use Parameters.

## `maxPages` (type: `integer`):

For paginated endpoints: follow next_cursor up to this many pages per input. 1 = first page only.

## Actor input object example

```json
{
  "endpoint": "/stockx/v1/browse",
  "params": {
    "brand": "nike",
    "category": "sneakers"
  },
  "batch": [],
  "maxPages": 1
}
```

# Actor output Schema

## `results` (type: `string`):

One row per call: endpoint, params, status, credits_used and the data.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "endpoint": "/stockx/v1/browse",
    "params": {
        "brand": "nike",
        "category": "sneakers"
    },
    "batch": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("apish/stockx-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "endpoint": "/stockx/v1/browse",
    "params": {
        "brand": "nike",
        "category": "sneakers",
    },
    "batch": [],
}

# Run the Actor and wait for it to finish
run = client.actor("apish/stockx-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "endpoint": "/stockx/v1/browse",
  "params": {
    "brand": "nike",
    "category": "sneakers"
  },
  "batch": []
}' |
apify call apish/stockx-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apish/stockx-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ID3Ze0ZJBH7Iunvki/builds/V7K9aufYAGxJwBRI6/openapi.json
