{
  "openapi": "3.0.1",
  "info": {
    "title": "Grailed Scraper — Live Resale & Sold Comps Data",
    "description": "Live Grailed resale intelligence for thrift and vintage resellers: keyword search with full-details enrichment, sold comps for pricing, closet inventory tracking, seller stats, and instant Slack/Discord deal alerts. Clean structured JSON, streamed in real time.",
    "version": "0.0",
    "x-build-id": "XpoyQJY8jXI8Hr5fj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/b2b_leads~Grailed-Real-time-Data-Scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-b2b_leads-Grailed-Real-time-Data-Scraper",
        "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/b2b_leads~Grailed-Real-time-Data-Scraper/runs": {
      "post": {
        "operationId": "runs-sync-b2b_leads-Grailed-Real-time-Data-Scraper",
        "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/b2b_leads~Grailed-Real-time-Data-Scraper/run-sync": {
      "post": {
        "operationId": "run-sync-b2b_leads-Grailed-Real-time-Data-Scraper",
        "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": {
          "enableListingSearch": {
            "title": "Listing Search",
            "type": "boolean",
            "description": "Live keyword search for thrift brands, streetwear, and vintage finds (e.g. carhartt detroit jacket, vintage 90s levis 501, patagonia fleece). On by default — prefilled so you can click Start immediately.",
            "default": true
          },
          "searchKeywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "One or more search terms (e.g. carhartt detroit jacket, vintage 90s levis 501, patagonia fleece). Required when Listing Search is on.",
            "default": [
              "carhartt detroit jacket",
              "vintage 90s levis 501",
              "patagonia fleece"
            ],
            "items": {
              "type": "string"
            }
          },
          "searchMaxResults": {
            "title": "Max results per keyword",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum listings to return for each keyword (1–200). Default 10 for fast instant demo runs — raise it once you've confirmed the output shape.",
            "default": 10
          },
          "searchDepartment": {
            "title": "Department (optional)",
            "enum": [
              "",
              "menswear",
              "womenswear"
            ],
            "type": "string",
            "description": "Limit results to a department.",
            "default": ""
          },
          "searchDesigner": {
            "title": "Brand filter (optional)",
            "type": "string",
            "description": "Limit results to a designer/brand name (e.g. Carhartt, Levi's, Patagonia, The North Face, Stussy).",
            "default": ""
          },
          "searchSize": {
            "title": "Size filter (optional)",
            "type": "string",
            "description": "e.g. M, L, XL, 32, 34.",
            "default": ""
          },
          "searchCondition": {
            "title": "Condition filter",
            "enum": [
              "",
              "new_with_tags",
              "new_without_tags",
              "gently_used",
              "well_worn"
            ],
            "type": "string",
            "description": "Filter by item condition.",
            "default": ""
          },
          "searchMinPrice": {
            "title": "Min price (optional)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Minimum price in USD."
          },
          "searchMaxPrice": {
            "title": "Max price (optional)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum price in USD — great for deal alerts (e.g. 60)."
          },
          "searchStrata": {
            "title": "Market tier (optional)",
            "enum": [
              "",
              "grails",
              "hype",
              "sartorial",
              "basic"
            ],
            "type": "string",
            "description": "Grailed splits its marketplace into tiers — grails (high-end), hype (streetwear), sartorial, basic.",
            "default": ""
          },
          "searchSort": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "newest",
              "price-low",
              "price-high",
              "heat"
            ],
            "type": "string",
            "description": "How to order search results.",
            "default": "relevance"
          },
          "searchSoldOnly": {
            "title": "Sold listings only",
            "type": "boolean",
            "description": "Search completed/sold items instead of live inventory — the core of price-comp research.",
            "default": false
          },
          "searchFetchFullDetails": {
            "title": "Enrich with full listing details",
            "type": "boolean",
            "description": "When on, each search result is the SAME row enriched with description, fabric/material tags, style tags, full image gallery, and seller shipping discounts. Still featureType listing_search with detailsFetched=true — never a second row. Adds a little extra time per listing to enrich full product details.",
            "default": false
          },
          "enableListingDetails": {
            "title": "Listing Details",
            "type": "boolean",
            "description": "Fetch full product records for specific listing IDs or Grailed listing URLs.",
            "default": false
          },
          "listingUrls": {
            "title": "Listing URLs / IDs",
            "type": "array",
            "description": "Grailed listing URLs (https://www.grailed.com/listings/…) or bare numeric listing IDs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "enableClosetListings": {
            "title": "Closet Listings",
            "type": "boolean",
            "description": "Collect the full active inventory of any reseller/thrift closet to track competitor stock.",
            "default": false
          },
          "sellerUsernames": {
            "title": "Seller usernames",
            "type": "array",
            "description": "Grailed usernames without @. Shared by Closet Listings, Seller Profile, and Sold Comps.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sellerMaxListings": {
            "title": "Max listings per closet",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum active listings to collect per closet (1–500).",
            "default": 30
          },
          "enableSellerProfile": {
            "title": "Seller Profile",
            "type": "boolean",
            "description": "Extract reseller stats: love notes, items sold, closet size, verification, bio details, ratings, and activity.",
            "default": false
          },
          "enableSoldComps": {
            "title": "Sold Item Comps / History",
            "type": "boolean",
            "description": "Collect completed and sold listings to calculate real market comps, resale margins, and sell-through rates.",
            "default": false
          },
          "soldMaxItems": {
            "title": "Max sold items per seller",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum sold listings to collect per seller (1–200).",
            "default": 30
          },
          "soldKeywords": {
            "title": "Sold comp keywords (optional)",
            "type": "array",
            "description": "Search the sold market directly by keyword (e.g. carhartt j97, stussy 8 ball, stone island sweatshirt) instead of per-seller.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "enableScrapeByUrl": {
            "title": "Scrape By URL",
            "type": "boolean",
            "description": "Process any Grailed URL — listing pages, search URLs, closet/seller pages, category pages, or brand feeds.",
            "default": false
          },
          "scrapeUrls": {
            "title": "Grailed URLs",
            "type": "array",
            "description": "Any Grailed listing, search, seller/closet, category, or brand feed URL.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "scrapeMaxPages": {
            "title": "Max pages per URL",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How deep to collect for search/closet/brand feed URLs (1–20).",
            "default": 3
          },
          "includeRaw": {
            "title": "Include extended data block",
            "type": "boolean",
            "description": "Attach an extended structured data block on each record. Larger output — for advanced pipelines only.",
            "default": false
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional. Every record is always saved to the run dataset — this webhook is an ADDITIONAL real-time push. Each new row is also POSTed to this URL (Slack, Discord, Zapier, Make, n8n, custom pricing bot).",
            "default": ""
          },
          "webhookFormat": {
            "title": "Webhook format",
            "enum": [
              "json",
              "slack"
            ],
            "type": "string",
            "description": "json = full record object; slack = Slack-friendly message payload.",
            "default": "json"
          },
          "proxyConfiguration": {
            "title": "Proxy settings",
            "type": "object",
            "description": "Residential proxy recommended. Match country to the Region above (US / CA / GB / DE / AU).",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}