# The RealReal Scraper (`barking_kelp/trr`) Actor

Scrape luxury resale listings from The RealReal (therealreal.com): product details, designers, prices and categories. Export results to JSON, CSV or Excel, or use via API.

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

## Pricing

from $9.00 / 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

## TheRealReal Scraper

Scrapes the [TheRealReal](https://www.therealreal.com) catalog — the largest
marketplace for authenticated pre-owned luxury — into structured, analysis-ready
records: products with full pricing and condition data, plus the site's own
category tree, designer directory and filter vocabulary.

Useful for secondary-market price analytics, designer assortment tracking,
discount monitoring, residual-value analysis (current price against estimated
retail) and demand signals.

### What you get

#### Products

Every product record carries all of this:

| Field | Description |
|---|---|
| `sku` | TheRealReal item number (e.g. `GUC2197058`) — the stable key |
| `productId`, `variantId` | Internal identifiers |
| `url` | Product page URL |
| `name` | Model name |
| `designer`, `designerId` | Brand and its filter ID |
| `priceFinal`, `priceFinalFormatted` | Current price (USD cents + formatted) |
| `priceOriginal`, `priceOriginalFormatted` | Price before the current markdown |
| `priceMsrp`, `priceMsrpFormatted` | Estimated retail of the item when new |
| `discountText` | The site's own wording, e.g. `Now 5% off - $318.25` |
| `discountPercent` | How far below the pre-markdown price |
| `discountVsRetailPercent` | How far below estimated retail |
| `images` | All image URLs (usually 1–6) |
| `attributes` | Every attribute the site lists, keyed by its label |
| `condition` | `Pristine`, `Excellent`, `Very Good`, `Good`, `Fair`, `As Is` |
| `color`, `gender`, `primaryMaterial`, `size` | Flattened convenience fields |
| `availability`, `isSold` | Whether the item is still live |
| `quantity` | Quantity available |
| `badgeText` | Merchandising badge, e.g. `Smart Investment` |
| `obsessionCount` | How many shoppers saved the item — a demand signal |
| `promotion`, `artist`, `waitlisted` | As the site reports them |
| `taxonPath`, `rootCategory`, `category`, `subcategory` | Category, whole and split |
| `sourceUrl`, `sourceType`, `scrapedAt` | Provenance |

With **product-page enrichment** on, each product also gets:

| Field | Description |
|---|---|
| `description`, `descriptionNotes` | Description bullets (material, hardware, lining, closure, what's included) and notes |
| `measurements` | Estimated measurements: `Height`, `Width`, `Depth`, `Handle Drop`, `Shoulder Strap Drop`, … |
| `conditionGrade`, `conditionDetails` | The grade plus its wear description |
| `aesthetic`, `occasion`, `trend`, `vibe` | TheRealReal's own style tags, e.g. `minimalist`, `Quiet Luxury` |
| `sustainability` | Water and carbon savings the site attributes to buying pre-owned |
| `returnable`, `returnPolicyText`, `isFinalSale`, `disclaimers` | Return terms |
| `taxons`, `breadcrumbs` | Full category chain with IDs |
| `imagesDetailed` | Images with width, height and size label |
| `editorsPick`, `buyNowEligible`, `isAffirm` | Flags |
| `authenticationText`, `valuationReportUrl`, `sizeGuide` | Supporting content |

#### Reference data

Each kind of reference record gets its **own dataset**, so every column in it is
filled and you are never charged for rows you did not ask for. The run's default
dataset holds products only. Every run writes its own copies, so a dataset never
mixes two runs.

| Dataset | Contents |
|---|---|
| `categories` | The whole taxonomy: name, path, ID, item count, parent, depth |
| `designers` | Designer directory: name, ID, item count |
| `facets` | Every filter with its values — conditions with descriptions, colours with swatches, handbag styles, stores, the price range |
| `stores` | Physical stores |
| `sales` | Active sale and flash-sale campaigns with their item counts |
| `categoryStats` | A per-category inventory snapshot — handy for tracking assortment over time |

Each one is linked from the run's **Output** tab, and also lives under the run's
**Storage** tab, with its own columns. The `facets` and `designers` datasets are where the filter IDs that the
**Filters** option takes come from.

### Examples

A quick sample from one category:

```json
{ "categories": ["women/handbags"], "maxItems": 500 }
```

The category tree, designer directory and every filter value — no products:

```json
{ "crawlMode": "discoverOnly" }
```

Discounted Chanel and Gucci bags with full product-page detail:

```json
{
  "categories": ["women/handbags"],
  "designers": ["chanel", "gucci"],
  "filters": { "onSale": true, "priceFrom": 1000 },
  "enrichFromPdp": true,
  "maxItems": 0
}
```

### Large categories

The site only paginates 2,000 products deep, while a single category can hold
hundreds of thousands — `women/handbags` alone is over 200,000. With
**Auto-slice filters** on (the default), a category bigger than that is split by
its own filters — subcategory, then designer, then price band — and each slice
is checked and split again until it fits. Products are deduplicated by SKU, so
overlapping slices never produce duplicate rows.

If a category cannot be narrowed any further, the run logs how many of its items
it was able to reach rather than quietly stopping short.

### Cost and speed

Listing pages are the inexpensive mode: one request returns 120 products.

**Product-page enrichment is much more expensive and much slower**, because it
takes one request per product, and those pages take noticeably longer to come
back. On a full category the difference is substantial. The listing record
already includes SKU, designer, all three price levels, images, condition,
colour, material and demand signal — enrichment adds description, measurements,
style tags and sustainability figures. Use it where those specific fields matter.

### Notes and limits

- Image URLs are returned, not the image files themselves.
- Prices are returned in USD cents (`priceFinal`) alongside the site's own
  formatted strings. Currency is set server-side by the site.
- Sold items are included by default, which is what you want for price history;
  turn **Include sold items** off for live inventory only.
- Logged-in areas — cart, account, consignment — are out of scope.
- **Follow robots.txt** is off by default. The site disallows the cursor
  parameter that listing pagination relies on, so turning it on stops each
  listing after its first 120 products. The choice is yours to make explicitly.
- Review the site's terms and your own legal position before running at scale.

# Actor input Schema

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

Any TheRealReal listing or product URL to start from — a category, a designer, a sale, or a single product page. The page type is detected automatically.

## `categories` (type: `array`):

Category paths to scrape, e.g. 'women/handbags' or 'jewelry/rings'. Run once in 'Discover reference data only' mode to get the full list.

## `designers` (type: `array`):

Designer slugs to scrape, e.g. 'chanel' or 'louis-vuitton'. Combined with the categories above when both are given.

## `crawlMode` (type: `string`):

What to collect. 'Listings only' is the fast, inexpensive mode and already returns rich product records. 'Listings + product pages' additionally opens every product page for description, measurements and style tags. 'Discover reference data only' returns the category tree, designer directory and filter values without any products.

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

Stop after this many unique products. Set 0 for no limit.

## `maxPagesPerListing` (type: `integer`):

Cap the number of pages fetched per listing (120 products each). 0 means no cap.

## `enrichFromPdp` (type: `boolean`):

Open each product page to add the description, estimated measurements, condition details, style tags, sustainability figures and return policy.

This is much slower and considerably more expensive per product, because a listing page returns 120 products while a product page returns one. Prefer it on a selection — new arrivals, a price band, particular designers — rather than on an entire category.

## `autoSliceFacets` (type: `boolean`):

The site only paginates 2,000 products deep, while a single category can hold hundreds of thousands. With this on, a category larger than that is split by its own filters so the whole of it can still be covered.

## `sliceBy` (type: `array`):

Which filters to split a large category by, tried in this order.

## `sortBy` (type: `string`):

Listing order. 'Sold items first' is useful for price history; 'Most obsessed' orders by how many shoppers saved the item.

## `filters` (type: `object`):

Filters applied to every listing. Keys: taxons\[], designer\[], condition\[], color\[], gender\[], handbagStyle\[], store\[], caseDiameter\[], kidsClothingSize\[] (filter value IDs from the reference data), priceFrom, priceTo (whole USD), and the switches onSale, editorsPicks, withTags, vintage, hideSold. Unknown keys are rejected rather than ignored, so a typo cannot quietly return unfiltered data.

## `includeSoldItems` (type: `boolean`):

Keep products that are no longer available. Sold items are useful for price history; turn this off for live inventory only.

## `scrapeCategories` (type: `boolean`):

Also output the full category tree: name, path, ID, item count, parent and depth.

## `scrapeDesigners` (type: `boolean`):

Also output the designer directory: name, ID and item count.

## `scrapeFacets` (type: `boolean`):

Also output every filter the site offers with its values — conditions and their descriptions, colours with swatches, handbag styles, stores and the price range. These IDs are what the 'filters' option takes.

## `scrapeSales` (type: `boolean`):

Also output the currently active sale and flash-sale campaigns with their item counts.

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

Proxy used for listing pages. The default is the configuration this scraper is tuned for; change it only if you have a specific reason to.

## `pdpProxyConfiguration` (type: `object`):

Proxy used for product pages, which the site serves differently from listings. Leave the default unless you have a specific reason to change it; clear the field to use the listing proxy for both.

## `pdpMaxConcurrency` (type: `integer`):

How many product-page requests run at once. Product pages are slower than listings, so this is what decides how long an enrichment run takes.

## `pdpTimeoutSeconds` (type: `integer`):

How long to wait for a product page before giving up on it.

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

How many listing requests run at once. Product pages are limited separately below.

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

How many times to retry a request that does not come back usable.

## `requestDelaySeconds` (type: `integer`):

Pause between requests. Leave at 0 with the default proxy; raise it if you switch to a plain proxy and want a gentler pace.

## `respectRobotsTxt` (type: `boolean`):

Follow the site's robots.txt. The site disallows the cursor parameter that listing pagination uses, so turning this on stops each listing after its first page of 120 products.

## `outputFormat` (type: `string`):

'Flat' gives tidy, analysis-ready fields. 'Raw' returns the site's original record untouched. 'Both' gives the flat fields plus a 'raw' key.

## `debugStoreRawHtml` (type: `boolean`):

Save each fetched page to the run's key-value store. For troubleshooting a run that returned less than you expected.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.therealreal.com/shop/women/handbags"
    }
  ],
  "categories": [
    "women/handbags"
  ],
  "designers": [],
  "crawlMode": "listings",
  "maxItems": 1000,
  "maxPagesPerListing": 0,
  "enrichFromPdp": false,
  "autoSliceFacets": true,
  "sliceBy": [
    "subcategory",
    "designer",
    "price"
  ],
  "sortBy": "NEWEST",
  "filters": {},
  "includeSoldItems": true,
  "scrapeCategories": true,
  "scrapeDesigners": true,
  "scrapeFacets": true,
  "scrapeSales": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "UNBLOCKER"
    ]
  },
  "pdpProxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "UNBLOCKER"
    ]
  },
  "pdpMaxConcurrency": 10,
  "pdpTimeoutSeconds": 120,
  "maxConcurrency": 16,
  "maxRequestRetries": 5,
  "requestDelaySeconds": 0,
  "respectRobotsTxt": false,
  "outputFormat": "flat",
  "debugStoreRawHtml": false
}
```

# Actor output Schema

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

Scraped products with pricing, condition, images, attributes and category path.

## `categories` (type: `string`):

The whole taxonomy: name, path, ID, item count, parent and depth.

## `designers` (type: `string`):

Designer directory: name, ID and item count.

## `facets` (type: `string`):

Every filter the site offers with its values. These IDs are what the Filters option takes.

## `stores` (type: `string`):

Physical stores items can be found in.

## `sales` (type: `string`):

Active sale and flash-sale campaigns with their item counts.

## `categoryStats` (type: `string`):

Per-category item counts at the time of the run, for tracking assortment over time.

# 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 = {
    "startUrls": [
        {
            "url": "https://www.therealreal.com/shop/women/handbags"
        }
    ],
    "categories": [
        "women/handbags"
    ],
    "filters": {}
};

// Run the Actor and wait for it to finish
const run = await client.actor("barking_kelp/trr").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 = {
    "startUrls": [{ "url": "https://www.therealreal.com/shop/women/handbags" }],
    "categories": ["women/handbags"],
    "filters": {},
}

# Run the Actor and wait for it to finish
run = client.actor("barking_kelp/trr").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 '{
  "startUrls": [
    {
      "url": "https://www.therealreal.com/shop/women/handbags"
    }
  ],
  "categories": [
    "women/handbags"
  ],
  "filters": {}
}' |
apify call barking_kelp/trr --silent --output-dataset

```

## MCP server setup

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

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/tKntT1TeceAONG75i/builds/0qkWZW52j6DD54nhR/openapi.json
