# StockX Product Scraper (`xtracto/stockx-product-scraper`) Actor

Extract complete product data from StockX product pages: market prices, last sale, bid/ask, retail price, release date, traits, images.

- **URL**: https://apify.com/xtracto/stockx-product-scraper.md
- **Developed by:** [Farhan Febrian Nauval](https://apify.com/xtracto) (community)
- **Categories:** Automation, E-commerce, Lead generation
- **Stats:** 8 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

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

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#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 Product Scraper

Fetch a complete market snapshot for any StockX product URL — lowest ask, highest bid, last sale, annual statistics, traits, and media — delivered as clean JSON with no account required.

### Why use this actor

- **No account required** — reads public product pages; no login or API key needed.
- **Stable JSON output** — consistent field names across every run, ready for databases and price-tracking pipelines.
- **Slug-rename tolerant** — automatically follows StockX URL redirects and reports a `matchScore` so you know when a slug has changed.
- **Rich per-product data** — market state, annual and 90-day statistics, full traits (release date, colorway, style ID, retail price), and media in one record.
- **Batch-friendly** — supply dozens of URLs in a single run; results land in the dataset as they complete.
- **Localized pricing** — configure ship-to country and display currency per run.

### How it works

1. You provide a list of StockX product URLs in the `productUrls` field.
2. The actor resolves each URL, following any slug renames, and fetches the live product page.
3. Market state (lowest ask, highest bid, last sale, express ask count) and statistics (annual average price, volatility, 72-hour sales) are extracted and normalized.
4. A `matchScore` between 0 and 1 is attached — score 1.0 means the slug matched exactly; a `matchWarning` is added when confidence is below 0.5.
5. Each product is saved as a single JSON record in Apify's default dataset, exportable as JSON, CSV, or Excel.

You don't need to manage any browsers or scrapers.

### Input

```json
{
    "productUrls": [
        { "url": "https://stockx.com/jordan-1-retro-high-og-chicago-lost-and-found" },
        { "url": "https://stockx.com/air-jordan-1-retro-high-bred-toe" }
    ],
    "country": "US",
    "currency": "USD",
    "maxConcurrency": 3,
    "maxRequestRetries": 6,
    "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
```

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `productUrls` | URL\[] | — | **Required.** StockX product URLs (`https://stockx.com/<slug>`). |
| `country` | string | `"US"` | Two-letter ISO country code for pricing locale. |
| `currency` | string | `"USD"` | ISO currency code (e.g. `USD`, `EUR`, `GBP`). |
| `maxConcurrency` | integer | `3` | Number of parallel workers. |
| `maxRequestRetries` | integer | `6` | Retry budget per request before skipping. |
| `proxyConfiguration` | object | RESIDENTIAL | Apify Proxy or custom proxy list. RESIDENTIAL group recommended. |

### Output

```json
{
    "productId": "9a4d44f9-4b16-4abc-ba58-c0db340ee791",
    "urlKey": "air-jordan-1-retro-high-og-chicago-reimagined-lost-and-found",
    "title": "Jordan 1 Retro High OG Chicago Lost and Found",
    "sources": ["graphql", "search"],
    "matchScore": 1.0,
    "url": "https://stockx.com/air-jordan-1-retro-high-og-chicago-reimagined-lost-and-found",
    "market": {
        "lowestAsk": 145,
        "highestBid": 215,
        "numberOfAsks": 2438,
        "numberOfBids": 1549,
        "lastSale": 287,
        "salesLast72Hours": 24,
        "lastSaleChangePercentage": 0.0181,
        "lastSaleChangeValue": 10
    },
    "graphql": {
        "productId": "9a4d44f9-4b16-4abc-ba58-c0db340ee791",
        "title": "Jordan 1 Retro High OG Chicago Lost and Found",
        "brand": "Jordan",
        "market": {
            "state": {
                "lowestAsk": { "amount": 145, "lastUpdatedAt": "2026-05-08T03:57:14Z" },
                "highestBid": { "amount": 215, "lastUpdatedAt": "2026-04-29T14:47:46Z" },
                "lastSale": { "amount": 287 },
                "expressAskCount": 192,
                "expressLowestAsk": { "amount": 196 }
            },
            "statistics": {
                "annualAveragePrice": 293,
                "annualVolatility": 0.093861,
                "annualSalesCount": 5814,
                "salesLast72Hours": 24
            }
        },
        "traits": [
            { "name": "Release Date", "value": "2022-11-19" },
            { "name": "Colorway", "value": "WHITE/BLACK-VARSITY RED" },
            { "name": "Style", "value": "DZ5485-612" },
            { "name": "Retail Price", "value": "$180" }
        ]
    },
    "searchEdge": { "... search edge node ..." }
}
```

| Field | Type | Description |
| --- | --- | --- |
| `productId` | string | StockX UUID for the product. |
| `urlKey` | string | Resolved StockX slug (may differ from input if slug was renamed). |
| `title` | string | Product display title. |
| `sources` | string\[] | Data sources used, e.g. `["graphql", "search"]`. |
| `matchScore` | number | Confidence that the resolved product matches the input URL (1.0 = exact). |
| `url` | string | Canonical StockX product URL. |
| `market` | object | Product-level headline numbers surfaced flat for quick use: `lowestAsk`, `highestBid`, `numberOfAsks`, `numberOfBids`, `lastSale`, `salesLast72Hours`, and the last-sale change. (No product-level spread — at the product level the lowest ask and highest bid come from different sizes; use the Orderbook Scraper for per-size spread.) |
| `graphql` | object | Full market data: state (ask/bid/last sale), statistics, traits, media. |
| `searchEdge` | object | Raw search edge node when available, for additional market signals. |

### Other StockX Scrapers

| Actor | What it does |
| --- | --- |
| [StockX Search Scraper](https://apify.com/stockx-search-scraper) | Search keywords or categories; get every result tile with live market data. |
| [StockX Product Scraper](https://apify.com/stockx-product-scraper) | Full product detail — market snapshot, traits, stats — from a list of product URLs. |
| [StockX Orderbook Scraper](https://apify.com/stockx-orderbook-scraper) | Live per-size bid/ask orderbook with spread and 72-hour velocity for any product. |
| [StockX Sales History Scraper](https://apify.com/stockx-sales-history-scraper) | Multi-bucket sales statistics (annual, 90-day, 72-hour) plus per-size breakdowns. |
| [StockX Release Calendar Scraper](https://apify.com/stockx-release-calendar-scraper) | Upcoming and recent drops with release dates and pre-release bid/ask signals. |

# Actor input Schema

## `productUrls` (type: `array`):

List of product URLs to scrape.

## `country` (type: `string`):

Two-letter ISO country code.

## `currency` (type: `string`):

ISO currency code (e.g. USD, EUR, GBP).

## `maxConcurrency` (type: `integer`):

Maximum number of parallel requests.

## `maxRequestRetries` (type: `integer`):

How many times a request will be retried before giving up.

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

Apify Proxy or your own proxy list. RESIDENTIAL group is recommended.

## Actor input object example

```json
{
  "productUrls": [
    {
      "url": "https://stockx.com/jordan-1-retro-high-og-chicago-lost-and-found"
    }
  ],
  "country": "US",
  "currency": "USD",
  "maxConcurrency": 3,
  "maxRequestRetries": 6,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "productUrls": [
        {
            "url": "https://stockx.com/jordan-1-retro-high-og-chicago-lost-and-found"
        }
    ],
    "country": "US",
    "currency": "USD",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/stockx-product-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 = {
    "productUrls": [{ "url": "https://stockx.com/jordan-1-retro-high-og-chicago-lost-and-found" }],
    "country": "US",
    "currency": "USD",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

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

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

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

```

## CLI example

```bash
echo '{
  "productUrls": [
    {
      "url": "https://stockx.com/jordan-1-retro-high-og-chicago-lost-and-found"
    }
  ],
  "country": "US",
  "currency": "USD",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call xtracto/stockx-product-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=xtracto/stockx-product-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/SDfgsj27JThExqylJ/builds/8GR88TFUr1byYLlq7/openapi.json
