# StockX Listings Scraper (`crawloop/stockx-listings-scraper`) Actor

StockX scraper for sneakers, streetwear, and collectibles. Search or open a product URL to export lowest ask, highest bid, last sale, and 90-day sales as JSON.

- **URL**: https://apify.com/crawloop/stockx-listings-scraper.md
- **Developed by:** [Andrej Kiva](https://apify.com/crawloop) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.49 / 1,000 search products

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/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 Listings Scraper

> **Disclaimer:** Unofficial tool — not affiliated with, sponsored by, or endorsed by StockX. Data is read from publicly accessible search pages only. No login. You are responsible for complying with applicable law and the site’s terms. No warranty on accuracy or availability. Provided for informational and research use.

**StockX Listings Scraper** is a **StockX scraper** and **StockX API alternative** for public catalog cards. A keyword or a product URL returns **lowest ask**, **highest bid**, **last sale**, and **90-day sales**. Export **JSON** from **Python**, **Node.js**, or an **MCP** assistant. Schedule a monitor to keep only new products.

**Best for:** resellers who already price comps on eBay or Poshmark and want the same ask/bid snapshot from StockX.

| StockX Listings | eBay sold | Poshmark sold | Depop |
| :--- | :--- | :--- | :--- |
| StockX Listings Scraper ◄── you are here | [eBay Sold Listings Scraper](https://apify.com/crawloop/ebay-sold-listings-scraper) | [Poshmark Sold Listings Scraper](https://apify.com/crawloop/poshmark-sold-listings-scraper) | [Depop Monitor](https://apify.com/crawloop/depop-monitor) |

### When to use this Actor

- **Ask / bid check** — keyword search with lowest ask, highest bid, and last sale
- **One product** — a product URL or slug matched to that same market card
- **New catalog alerts** — monitor mode saves only url keys that were not in the last run
- **Python / Node.js / MCP pipelines** — structured dataset, JSON or CSV export

### When not to use this Actor

- **Sold comps off this marketplace** — use [eBay Sold Listings Scraper](https://apify.com/crawloop/ebay-sold-listings-scraper) or [Poshmark Sold Listings Scraper](https://apify.com/crawloop/poshmark-sold-listings-scraper)
- **New fashion listings** — use [Depop Monitor](https://apify.com/crawloop/depop-monitor) or [Vinted Monitor](https://apify.com/crawloop/vinted-monitor)
- **Your own seller orders or listings** — this Actor does not log in
- **Private account data** — not collected

### Key features

- **Keyword search** — about 40 products per page, up to 200 per keyword
- **Product URL** — matched to the search card for that slug: ask, bid, and last sale
- **Market fields on search** — lowest ask, highest bid, last sale, 72-hour and 90-day sales
- **Monitor mode** — named Key-Value store of seen url keys; the first run seeds silently
- **Market country** — residential proxy country selects the price market

### Input parameters

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `searchTerms` | Array | nike dunk | Keywords. Paged until Max items |
| `startUrls` | Array | — | Search URLs. One page each |
| `productUrls` | Array | — | Product URLs or slugs |
| `country` | String | US | Residential proxy country. Prices follow that market |
| `maxItems` | Integer | 40 | Search cards per keyword (1–200) |
| `monitorMode` | Boolean | false | Save only new url keys after the first seed |
| `emitExisting` | Boolean | false | Also save cached products on a monitor run |
| `monitorStoreName` | String | — | Named store for the seen-product cache |
| `proxyConfiguration` | Object | Residential | Direct requests are blocked |

```json
{
    "searchTerms": ["nike dunk"],
    "country": "US",
    "maxItems": 40,
    "monitorMode": false,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US"
    }
}
```

### Output

| Field | Description |
| :--- | :--- |
| `title` / `url` / `urlKey` | Product name, page URL, and slug |
| `brand` / `model` / `category` | Catalog labels |
| `lowestAsk` / `highestBid` / `lastSale` | Market prices on a search card |
| `salesLast72Hours` / `salesLast90Days` | Recent sales counts |
| `averagePrice90Days` / `annualSales` | 90-day average and yearly sales count |
| `styleId` / `colorway` / `sizes` | Filled only when the catalog card includes them |
| `currency` / `country` | Market of the proxy country |
| `recordType` | `search` or `product` |
| `scrapedAt` | UTC parse time |

```json
{
    "productId": "prod-1",
    "urlKey": "nike-dunk-low-retro-white-black",
    "title": "Nike Dunk Low Retro White Black",
    "url": "https://stockx.com/nike-dunk-low-retro-white-black",
    "brand": "Nike",
    "lowestAsk": 110,
    "highestBid": 95,
    "lastSale": 108,
    "currency": "USD",
    "country": "US",
    "salesLast90Days": 2400,
    "recordType": "search",
    "scrapedAt": "2026-09-23T12:00:00Z"
}
```

### Use cases

- Snapshot lowest ask and last sale for a sneaker keyword before buying inventory
- Pass one product URL and keep ask, bid, and last sale for that slug
- Schedule a monitor and append only new url keys
- Compare a StockX ask with sold prices from [eBay Sold Listings Scraper](https://apify.com/crawloop/ebay-sold-listings-scraper)

### Integration examples

#### Node.js

```javascript
import { ApifyClient } from "apify-client";

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor("crawloop/stockx-listings-scraper").call({
    searchTerms: ["nike dunk"],
    country: "US",
    maxItems: 40,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient(token="YOUR_TOKEN")
run = client.actor("crawloop/stockx-listings-scraper").call(run_input={
    "searchTerms": ["nike dunk"],
    "country": "US",
    "maxItems": 40,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["title"], item["lowestAsk"], item["lastSale"])
```

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/crawloop~stockx-listings-scraper/runs?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchTerms":["nike dunk"],"country":"US","maxItems":40}'
```

### MCP and AI assistants

Use this Actor from AI tools via [Apify MCP](https://docs.apify.com/platform/integrations/mcp).
Connect your Apify account, then call this Actor by its Store name.

Example prompts:

- "Run StockX Listings Scraper for nike dunk in the US and return the top 20 rows as JSON"
- "Open the Dunk Low White Black product URL and return lowest ask, highest bid, and last sale"
- "Chain StockX Listings Scraper then eBay Sold Listings Scraper for the same sneaker and compare ask versus sold price"

### Suite next step

After you have an ask and a last sale, run [eBay Sold Listings Scraper](https://apify.com/crawloop/ebay-sold-listings-scraper) on the same model for completed-sale comps. For fashion listings outside this catalog, use [Poshmark Sold Listings Scraper](https://apify.com/crawloop/poshmark-sold-listings-scraper) or [Depop Monitor](https://apify.com/crawloop/depop-monitor). For Japan sold prices, use [Mercari Japan Scraper](https://apify.com/crawloop/mercari-japan-scraper).

### FAQ

#### Does this replace the official seller API?

It reads public search pages. A product URL is matched to the search card for that slug. It does not create listings, pull your orders, or use a seller login. Direct product pages stay behind Cloudflare, so per-size asks are not included.

#### Why is a proxy required?

Search pages do not return catalog JSON to a plain HTTP client. The run uses a residential proxy in the country you select, and prices follow that market.

#### What does monitor mode save?

The first run stores url keys and writes no dataset rows. Later runs save products whose url key was not in that cache. Product URLs are always saved.

#### How many products come back per page?

Search pages carry about 40 products. `maxItems` stops the keyword at 200.

# Actor input Schema

## `searchTerms` (type: `array`):

StockX search keywords. Each keyword is paged until Max items.

## `startUrls` (type: `array`):

StockX search URLs. One page per URL.

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

Product URLs or slugs. Each one is matched to a search card with ask, bid, and last sale.

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

Residential proxy country. Prices follow that market.

## `maxItems` (type: `integer`):

Maximum search cards saved per keyword. Pages hold about 40 products.

## `monitorMode` (type: `boolean`):

Remember search results and save only new url keys on later runs. The first run seeds the cache and saves no rows.

## `emitExisting` (type: `boolean`):

When monitor mode is on, also save the products already in the cache.

## `monitorStoreName` (type: `string`):

Named key-value store for the seen-product cache. Leave empty for the default store.

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

Residential proxy. Direct requests are blocked.

## Actor input object example

```json
{
  "searchTerms": [
    "nike dunk"
  ],
  "startUrls": [],
  "country": "US",
  "maxItems": 40,
  "monitorMode": false,
  "emitExisting": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

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

Default dataset items.

# 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 = {
    "searchTerms": [
        "nike dunk"
    ],
    "startUrls": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawloop/stockx-listings-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 = {
    "searchTerms": ["nike dunk"],
    "startUrls": [],
}

# Run the Actor and wait for it to finish
run = client.actor("crawloop/stockx-listings-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 '{
  "searchTerms": [
    "nike dunk"
  ],
  "startUrls": []
}' |
apify call crawloop/stockx-listings-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,crawloop/stockx-listings-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/2nSabyUUqWW3Es2Zz/builds/qvNYhvOmjCoGI16A6/openapi.json
