# StockX Sales Data & Market Scraper 📈 (`malek_oweis/stockx-search-price-scraper`) Actor

Search or browse StockX, past its Cloudflare block, and get one row per product with real sales data: last sale, 90-day and annual average price, sales volume, volatility, resale-vs-retail premium and ask-inventory depth. No login, no private API.

- **URL**: https://apify.com/malek\_oweis/stockx-search-price-scraper.md
- **Developed by:** [Malek Oweis](https://apify.com/malek_oweis) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## StockX Sales Data & Market Scraper

**StockX blocks scrapers** — it sits behind Cloudflare and returns a 403 to any normal request, which is why almost every StockX Actor on the store is small or broken.

This one gets through. Every request is routed through a managed unblocker with full page rendering, and the data is read straight out of StockX's own embedded page data — **no private API, no login, no captcha setup from you.**

Search or browse StockX and get **one row per product** with real sales data:

### What you get per product

| Field | Meaning |
|---|---|
| `title`, `brand`, `model`, `gender`, `category` | Product identity |
| `productUrl`, `urlKey` | Direct StockX link and slug |
| `lastSale` | The last sale price |
| `avgPrice90d` / `avgPriceYear` | Average sale price over the last 90 days / year |
| `salesCount90d` / `salesCountYear` / `salesCount72h` | Sales volume — how fast it moves |
| `volatility` | Annual price volatility (0–1; higher = riskier) |
| `pricePremium` / `pricePremiumPct` | Resale price vs retail. `-0.47` = trades **47% below** retail |
| `retailPrice` | Original retail price (when StockX exposes it) |
| `asksAvailable` / `expressAsksAvailable` | How many asks are listed — market depth / saturation |
| `sizeCount` | Number of size variants |
| `releaseDate`, `colorway`, `styleId` | From the product's traits, when available |
| `imageUrl` | Product image |

> **Why no live "lowest ask / highest bid"?** StockX serves a *scrambled* live
> order book to non-browser sessions (it will show an ask below the bid). This
> Actor deliberately does **not** report those. Everything above is verified
> field-by-field against a real browser and is accurate — and for sourcing
> decisions, the 90-day average and sales volume matter more than a live snapshot
> that moves every minute anyway.

### Input

```json
{
  "queries": ["jordan 4 black cat", "nike dunk panda"],
  "urls": ["https://stockx.com/brands/jordan"],
  "maxProductsPerInput": 120
}
```

- `queries` — keywords to search. Each is searched and paginated (40 products per page).
- `urls` — any `stockx.com` search, brand or category URL. Non-StockX URLs are ignored.
- `maxProductsPerInput` — stop after this many products per query/URL. `0` = no limit.
- `proxyConfiguration` — defaults to Apify Unblocker, which is **required**. Don't change it unless you know what you're doing.

### Output

One dataset row per product, plus a `SEARCH_SUMMARY` key-value record per query/URL with
`productsScraped`, `avgOf90dAvgPrice`, `totalSalesPerYear`, `avgPricePremiumPct`,
and the most-liquid product.

#### Example row

```json
{
  "source": "nike dunk panda",
  "title": "Nike Dunk Low Retro White Black Panda",
  "brand": "Nike",
  "model": "Nike Dunk Low Retro",
  "category": "sneakers",
  "urlKey": "nike-dunk-low-retro-white-black-2021",
  "productUrl": "https://stockx.com/nike-dunk-low-retro-white-black-2021",
  "releaseDate": "2021-03-10",
  "retailPrice": 110,
  "styleId": "DD1391-100",
  "lastSale": 61,
  "avgPrice90d": 70,
  "salesCount90d": 2541,
  "avgPriceYear": 68,
  "salesCountYear": 12878,
  "salesCount72h": 70,
  "volatility": 0.2979,
  "pricePremium": -0.47,
  "pricePremiumPct": -47.0,
  "asksAvailable": 1234,
  "expressAsksAvailable": 605,
  "sizeCount": 26
}
```

### Use cases

- **Sourcing research** — pull a search/category and rank by 90-day average, sales volume and retail premium to find what's worth buying
- **Spot mispriced inventory** — high sales volume + low `asksAvailable` = a tight, liquid market
- **Trend tracking** — schedule weekly, diff `avgPrice90d` and `salesCount72h` to catch a shoe heating up or cooling off
- **Retail-arbitrage screening** — filter `pricePremiumPct` > 0 to find items reselling above retail
- **Market datasets** — export a whole brand's catalog with pricing history for analysis

### FAQ

**Why do other StockX scrapers break?**
StockX is behind Cloudflare and rotates its protection. A normal request gets a 403.
This Actor routes through a managed unblocker that renders the page, so it reads the
same data the site itself renders.

**Do I need a proxy or captcha solver?**
No. The unblocker is the default and handles everything.

**Where does the data come from — a private API?**
No. It's parsed from the Next.js data StockX embeds in every search/browse page.
Only public pages, no login.

**Can I get per-size prices?**
Not in this version — it returns product-level sales data. Per-size asks would need
the product detail page and are a possible future addition.

**Is this allowed?**
It reads only public StockX search and browse pages — the same pages any visitor
sees. It never logs in and never touches account, order or buyer data. Respect
StockX's terms and your local laws.

### Use it from an AI agent

This Actor is available as a tool over Apify's MCP server, so an AI agent (Claude,
ChatGPT, or any MCP client) can call it directly to pull StockX sales data and
market depth into a conversation or workflow.

### Notes

Reads only **public** StockX search and browse pages. No login, no private data.

# Actor input Schema

## `queries` (type: `array`):

Keywords to search on StockX, e.g. "jordan 4", "nike dunk panda", "supreme box logo". Each is searched and paginated.

## `urls` (type: `array`):

Any stockx.com search, brand or category URL (e.g. https://stockx.com/search?s=jordan+1 or https://stockx.com/brands/jordan). Non-StockX URLs are ignored.

## `maxProductsPerInput` (type: `integer`):

Stop after this many products for each query or URL (40 per page). Set 0 for no limit.

## `proxyConfiguration` (type: `object`):

StockX is behind Cloudflare and blocks normal requests. The default - Apify Unblocker - is required. Only change this if you know what you are doing.

## Actor input object example

```json
{
  "queries": [
    "jordan 4 black cat",
    "travis scott"
  ],
  "urls": [
    "https://stockx.com/brands/jordan"
  ],
  "maxProductsPerInput": 120,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "UNBLOCKER"
    ]
  }
}
```

# Actor output Schema

## `products` (type: `string`):

One row per product: last sale, 90-day and annual average price, sales volume, volatility, retail premium, ask depth, plus brand, model, image, release date and colorway.

## `searchSummary` (type: `string`):

productsScraped, avgOf90dAvgPrice, totalSalesPerYear, avgPricePremiumPct, most-liquid product per query/URL.

## `overview` (type: `string`):

No description

# 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 = {
    "queries": [
        "nike dunk panda"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("malek_oweis/stockx-search-price-scraper").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 = { "queries": ["nike dunk panda"] }

# Run the Actor and wait for it to finish
run = client.actor("malek_oweis/stockx-search-price-scraper").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 '{
  "queries": [
    "nike dunk panda"
  ]
}' |
apify call malek_oweis/stockx-search-price-scraper --silent --output-dataset

```

## MCP server setup

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

```

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/oql97Wk6DSwnQpFn8/builds/No21c7NTqwH3eEE7v/openapi.json
