{
  "openapi": "3.0.1",
  "info": {
    "title": "The RealReal Scraper",
    "description": "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.",
    "version": "0.0",
    "x-build-id": "0qkWZW52j6DD54nhR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/barking_kelp~trr/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-barking_kelp-trr",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/barking_kelp~trr/runs": {
      "post": {
        "operationId": "runs-sync-barking_kelp-trr",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/barking_kelp~trr/run-sync": {
      "post": {
        "operationId": "run-sync-barking_kelp-trr",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "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.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "categories": {
            "title": "Categories (taxon permalinks)",
            "type": "array",
            "description": "Category paths to scrape, e.g. 'women/handbags' or 'jewelry/rings'. Run once in 'Discover reference data only' mode to get the full list.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "designers": {
            "title": "Designers (slugs)",
            "type": "array",
            "description": "Designer slugs to scrape, e.g. 'chanel' or 'louis-vuitton'. Combined with the categories above when both are given.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "crawlMode": {
            "title": "Crawl mode",
            "enum": [
              "listings",
              "listingsAndPdp",
              "discoverOnly",
              "full"
            ],
            "type": "string",
            "description": "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.",
            "default": "listings"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many unique products. Set 0 for no limit.",
            "default": 1000
          },
          "maxPagesPerListing": {
            "title": "Max pages per listing",
            "minimum": 0,
            "type": "integer",
            "description": "Cap the number of pages fetched per listing (120 products each). 0 means no cap.",
            "default": 0
          },
          "enrichFromPdp": {
            "title": "Enrich from product pages",
            "type": "boolean",
            "description": "Open each product page to add the description, estimated measurements, condition details, style tags, sustainability figures and return policy.\n\nThis 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.",
            "default": false
          },
          "autoSliceFacets": {
            "title": "Auto-slice facets",
            "type": "boolean",
            "description": "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.",
            "default": true
          },
          "sliceBy": {
            "title": "Slice strategies (in order)",
            "uniqueItems": true,
            "type": "array",
            "description": "Which filters to split a large category by, tried in this order.",
            "items": {
              "type": "string",
              "enum": [
                "subcategory",
                "designer",
                "price",
                "condition",
                "color"
              ],
              "enumTitles": [
                "Subcategory",
                "Designer",
                "Price range",
                "Condition",
                "Color"
              ]
            },
            "default": [
              "subcategory",
              "designer",
              "price"
            ]
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "NEWEST",
              "LOWEST_PRICE",
              "HIGHEST_PRICE",
              "SOLD",
              "MOST_OBSESSED"
            ],
            "type": "string",
            "description": "Listing order. 'Sold items first' is useful for price history; 'Most obsessed' orders by how many shoppers saved the item.",
            "default": "NEWEST"
          },
          "filters": {
            "title": "Filters",
            "type": "object",
            "description": "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.",
            "default": {}
          },
          "includeSoldItems": {
            "title": "Include sold items",
            "type": "boolean",
            "description": "Keep products that are no longer available. Sold items are useful for price history; turn this off for live inventory only.",
            "default": true
          },
          "scrapeCategories": {
            "title": "Output category tree",
            "type": "boolean",
            "description": "Also output the full category tree: name, path, ID, item count, parent and depth.",
            "default": true
          },
          "scrapeDesigners": {
            "title": "Output designers",
            "type": "boolean",
            "description": "Also output the designer directory: name, ID and item count.",
            "default": true
          },
          "scrapeFacets": {
            "title": "Output facets",
            "type": "boolean",
            "description": "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.",
            "default": true
          },
          "scrapeSales": {
            "title": "Output sales and flash sales",
            "type": "boolean",
            "description": "Also output the currently active sale and flash-sale campaigns with their item counts.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "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.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "UNBLOCKER"
              ]
            }
          },
          "pdpProxyConfiguration": {
            "title": "Proxy configuration for product pages",
            "type": "object",
            "description": "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.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "UNBLOCKER"
              ]
            }
          },
          "pdpMaxConcurrency": {
            "title": "Max concurrency for product pages",
            "minimum": 1,
            "maximum": 64,
            "type": "integer",
            "description": "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.",
            "default": 10
          },
          "pdpTimeoutSeconds": {
            "title": "Product page timeout (s)",
            "minimum": 10,
            "maximum": 600,
            "type": "integer",
            "description": "How long to wait for a product page before giving up on it.",
            "default": 120
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 64,
            "type": "integer",
            "description": "How many listing requests run at once. Product pages are limited separately below.",
            "default": 16
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "How many times to retry a request that does not come back usable.",
            "default": 5
          },
          "requestDelaySeconds": {
            "title": "Delay between requests (s)",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Pause between requests. Leave at 0 with the default proxy; raise it if you switch to a plain proxy and want a gentler pace.",
            "default": 0
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "flat",
              "raw",
              "both"
            ],
            "type": "string",
            "description": "'Flat' gives tidy, analysis-ready fields. 'Raw' returns the site's original record untouched. 'Both' gives the flat fields plus a 'raw' key.",
            "default": "flat"
          },
          "debugStoreRawHtml": {
            "title": "Store raw HTML (debug)",
            "type": "boolean",
            "description": "Save each fetched page to the run's key-value store. For troubleshooting a run that returned less than you expected.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}