# Whatnot Scraper (`aurenic/whatnot-scraper`) Actor

Scrape Whatnot live shows, listings, sellers and categories. Keyless GraphQL, HTTP-only, no login required.

- **URL**: https://apify.com/aurenic/whatnot-scraper.md
- **Developed by:** [Aurenic](https://apify.com/aurenic) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 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.

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

## Whatnot Scraper

Scrape Whatnot seller inventory and search listings via the public GraphQL API — keyless, HTTP-only, no login required.

### What does Whatnot Scraper do?

Whatnot is the leading live-shopping marketplace for collectibles. This actor reads Whatnot's public GraphQL endpoint at `www.whatnot.com/services/graphql/`. The endpoint has no persisted-query allowlist and no introspection: it parses and executes whatever query text you send, validated against the live schema. No cookies, no browser, no session.

For seller inventory, the actor extracts the site's own `ProfileShop` operation string from the shop page's embedded Apollo transport events and replays it verbatim with the seller's Relay id. The live schema routes the shop through `getUser(id).searchShop(...)` — that exact operation is captured, not reconstructed. For keyword search the actor uses the PRODUCT vertical. Listings are harvested structurally by walking the response for connection edges, so the site's own field selection is preserved exactly.

### Output fields

**Seller record**

| Field | Type | Description |
|---|---|---|
| record_type | string | `seller` |
| seller_id | string | Numeric seller ID |
| seller_username | string | Handle |
| display_name | string | Display name |
| follower_count | integer | Followers |
| sold_count | integer | Lifetime items sold |
| rating_overall | number | Seller rating (0-5) |
| rating_reviews | integer | Review count |
| is_live | boolean | Currently live |
| is_verified_seller | boolean | Verified flag |
| url | string | Profile URL |
| scraped_at | string | ISO timestamp |

**Listing record**

| Field | Type | Description |
|---|---|---|
| record_type | string | `listing` |
| listing_id | string | Numeric listing ID (decoded from the Relay node id) |
| listing_gid | string | Raw base64 Relay node id |
| title | string | Listing title |
| description | string | Listing description |
| seller_username | string | Seller handle |
| price | number | Price in major currency units |
| price_raw_minor_units | integer | Raw minor units from the API |
| currency | string | ISO currency code |
| quantity | integer | Available quantity |
| status | string | Listing status |
| transaction_type | string | `BUY_IT_NOW` or auction-style |
| image_urls | array | Listing images |
| url | string | Listing URL |
| source | string | Mode that produced the row |
| source_query | string | Seller or keyword |
| scraped_at | string | ISO timestamp |

### Who is it for?

- **Resellers and collectors** tracking competitor inventory and pricing across sellers
- **Marketplace analysts** studying live-shopping supply and seller concentration
- **E-commerce brands** monitoring Whatnot as a sales channel
- **Data teams** building price history and sold-comp feeds for trading cards, sneakers and collectibles
- **AI agents and MCP users** pulling live marketplace data for analysis

### Pricing

**Pay per result: $0.80 per 1,000 records.**

Charged only for records actually written to the dataset.

### How to use it

1. Open the actor in Apify Console.
2. Pick a mode: **seller** for shop inventory, **search** for keyword listings, **diagnose** to print the extracted query.
3. In seller mode, list one or more usernames. In search mode, list one or more keywords.
4. Optionally cap results per source.
5. Leave the proxy at the default and click **Start**.

### Output example

```json
{
  "record_type": "listing",
  "listing_id": "2377525763",
  "listing_gid": "TGlzdGluZ05vZGU6MjM3NzUyNTc2Mw==",
  "title": "Jordan 1 Love Letter UK11.5",
  "description": "Jordan 1 Love Letter UK11.5",
  "seller_username": "city_sole",
  "price": 160.0,
  "price_raw_minor_units": 16000,
  "currency": "GBP",
  "quantity": 1,
  "status": "ACTIVE",
  "transaction_type": "BUY_IT_NOW",
  "url": "https://www.whatnot.com/listing/TGlzdGluZ05vZGU6MjM3NzUyNTc2Mw%3D%3D",
  "source": "seller",
  "source_query": "city_sole",
  "scraped_at": "2026-10-01T14:06:16.558Z"
}
```

### Technical details

- **Stack:** Node.js 24, `apify` SDK, `impit` HTTP client with Chrome TLS impersonation, `tough-cookie`.
- **Endpoint:** `https://www.whatnot.com/services/graphql/`. No cookies, no session, no API key.
- **Seller inventory:** the actor fetches `/user/<handle>/shop`, extracts the site's own `ProfileShop` operation string from the embedded Apollo transport events, reads its variable declarations, and replays it with the seller's Relay id. The live schema routes the shop through `getUser(id).searchShop(...)` with `useBuyerView: true` — that exact path is captured.
- **Search:** pinned `search(query, vertical: PRODUCT)` on the PRODUCT vertical.
- **Response harvesting:** generic walk that collects every connection edge's listing node (either `edge.node.object` for FeedEntity or `edge.node` direct), preserving the site's own field selection and tolerating fragment-only responses that omit `__typename`.
- **Pagination:** cursor-based on the harvested `pageInfo.endCursor`.
- **`objectSize(first)>50` guard:** Whatnot returns HTTP 200 with zero edges for `first` above 50. The actor uses 50 per page.
- **Operation name pinning:** `operationName` travels with the query text. Whatnot keys behaviour off the operation name independently of the query text.
- **Proxy:** defaults to the Apify datacenter pool, confirmed working against this endpoint.

### Known limits

- **The shop query is extracted per run.** If Whatnot changes the shop page's embedded operation, the actor picks up the new one automatically. Diagnose mode prints the extracted text if a run returns zero rows.
- **Schema drift fails loudly.** Pinned search query text is brittle by construction. When Whatnot renames a field, the actor surfaces the server's GraphQL 400 in the run log.
- **Price is returned in minor units.** The raw value is preserved in `price_raw_minor_units`; `price` is divided by 100.
- **No live bid streaming.** Each run is a snapshot.
- **No buyer or order data.** Only public catalogue and seller data.

### FAQ

**Do I need a Whatnot account or API key?**
No. The endpoint accepts the queries with no cookies and no session.

**How does seller inventory work?**
The actor reads the seller's shop page, extracts the exact `ProfileShop` GraphQL operation the site itself sends, and replays it with the seller's Relay id. The live schema routes the shop through `getUser(id).searchShop(...)`. The query is never guessed.

**What does diagnose mode do?**
It resolves a seller, extracts and prints the full `ProfileShop` query text, replays it, and reports the harvested listing count for both shop and search.

**Why cap `first` at 50?**
Whatnot has an `objectSize(first)>50` guard that returns HTTP 200 with zero edges above 50.

**Why does the operation name matter?**
Whatnot keys behaviour off `operationName` as well as the query text. Pinning the name alongside the query prevents the "200 with null collection" failure mode.

**What if the run returns zero rows?**
Switch to diagnose mode. It prints the extracted query and the raw response head, which shows whether the query shape or the arguments changed.

### Support

Open an issue on the Actor's page for bugs or feature requests.

### Changelog

#### 0.1 — 2026-10-01

- Initial build. Keyless extraction from Whatnot's public GraphQL endpoint.
- Pinned, confirmed `GetUser` query for seller profiles.
- Seller inventory: extracts the site's own `ProfileShop` operation string from the shop page's embedded Apollo transport events and replays it verbatim with the seller's Relay id. The live schema routes the shop through `getUser(id).searchShop(...)` with `useBuyerView: true`.
- Search: pinned `search(query, vertical: PRODUCT)`.
- Structural response harvester: collects every connection edge's listing node (`edge.node.object` or `edge.node`) by walking the response, preserving the site's own field selection and tolerating fragment-only responses that omit `__typename`.
- `objectSize(first)>50` guard: pagination uses 50 per page.
- Operation name pinned alongside query text.
- Diagnose mode prints the extracted query text, its variable names, and the harvested listing counts for shop and search.
- Retries on 429 and 503 with backoff.
- No login, no cookies, no API key.

# Actor input Schema

## `mode` (type: `string`):

seller = seller shop inventory. search = keyword search across listings. diagnose = print the site's own ProfileShop query text.

## `sellerUsernames` (type: `array`):

For seller mode: Whatnot usernames or profile URLs.

## `searchKeywords` (type: `array`):

For search mode: keywords. Use popular terms for high volume (pokemon, jordan, psa, nike, card).

## `maxResultsPerSource` (type: `integer`):

Cap records per seller or keyword.

## `proxy` (type: `object`):

Defaults to Apify datacenter proxy.

## Actor input object example

```json
{
  "mode": "seller",
  "sellerUsernames": [
    "city_sole",
    "ayden_snkrs",
    "bamasoles"
  ],
  "searchKeywords": [
    "pokemon",
    "jordan",
    "psa",
    "card"
  ],
  "maxResultsPerSource": 200,
  "proxy": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("aurenic/whatnot-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("aurenic/whatnot-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 '{}' |
apify call aurenic/whatnot-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,aurenic/whatnot-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/4Xp2Abgbbob8yMxXH/builds/nwJv625jHBlfQokcw/openapi.json
