{
  "openapi": "3.0.1",
  "info": {
    "title": "Grailed Scraper & API - Designer & Streetwear Listings, Prices",
    "description": "Grailed scraper and API: search Grailed.com listings by keyword, designer, category, size, condition, price and seller region, or paste Grailed URLs. One row per listing: designer, size, condition, price, price drops, shipping, seller rating, photo, URL. $0.40 per 1,000 listings, no start fee.",
    "version": "1.0",
    "x-build-id": "tV31II2wol0yvaQ17"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rel8ble~grailed-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rel8ble-grailed-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/rel8ble~grailed-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rel8ble-grailed-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/rel8ble~grailed-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rel8ble-grailed-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": {
          "searchQueries": {
            "title": "Search words",
            "type": "array",
            "description": "Words as typed into the Grailed search box, one search each (bulk): \"nike dunk\", \"rick owens ramones\", \"carhartt detroit jacket\", \"arcteryx beta\". Leave empty to list everything that matches the designers and filters below.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Grailed URLs",
            "type": "array",
            "description": "Optional grailed.com URLs: searches (https://www.grailed.com/shop?query=margiela%20tabi), designer pages (https://www.grailed.com/designers/rick-owens or .../designers/rick-owens/footwear) or single listings (https://www.grailed.com/listings/12345678-...). The filters below apply to searches and designer pages too.",
            "items": {
              "type": "string"
            }
          },
          "designers": {
            "title": "Designers (brands)",
            "type": "array",
            "description": "Limit to these designers: \"Rick Owens\", \"Maison Margiela\", \"Nike\", \"Supreme\", \"Arc'teryx\". Names are matched to Grailed's designer list (case does not matter); several designers are combined with OR.",
            "items": {
              "type": "string"
            }
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "menswear and / or womenswear. Leave empty for both.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Grailed categories: tops, bottoms, outerwear, footwear, tailoring, accessories, womens_tops, womens_bottoms, womens_outerwear, womens_footwear, womens_dresses, womens_bags_luggage, womens_accessories, womens_jewelry. Add a sub-category after a dot or \" > \": \"footwear.lowtop_sneakers\", \"outerwear > leather_jackets\", \"tops.sweatshirts_hoodies\", \"bottoms.denim\".",
            "items": {
              "type": "string"
            }
          },
          "sizes": {
            "title": "Sizes",
            "type": "array",
            "description": "Sizes as Grailed shows them: letter sizes (xs, s, m, l, xl, xxl), waist sizes (30, 32, 34), US shoe sizes (9, 9.5, 10), \"one size\". Combine with a category so \"10\" means shoes, not something else.",
            "items": {
              "type": "string"
            }
          },
          "conditions": {
            "title": "Conditions",
            "type": "array",
            "description": "Keep only these conditions: new, gently_used, used, very_worn. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Seller regions",
            "type": "array",
            "description": "Where the item ships from, as Grailed groups it: United States, Canada, United Kingdom, Europe, Asia, Australia/NZ, Other (us, uk, eu ... work too). Leave empty for worldwide.",
            "items": {
              "type": "string"
            }
          },
          "priceMin": {
            "title": "Minimum price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest asking price in US dollars. Example: 50."
          },
          "priceMax": {
            "title": "Maximum price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest asking price in US dollars. Example: 400."
          },
          "postedWithinDays": {
            "title": "Posted within the last N days",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only listings created in the last N days. Use 1 with sort \"newest\" on a daily schedule to collect only new listings."
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "newest",
              "price_low_to_high",
              "price_high_to_low",
              "popular",
              "most_followed"
            ],
            "type": "string",
            "description": "relevance (Grailed default), newest, price_low_to_high, price_high_to_low, popular (trending) or most_followed (most liked).",
            "default": "relevance"
          },
          "shippingRegion": {
            "title": "Shipping cost for",
            "enum": [
              "us",
              "ca",
              "uk",
              "eu",
              "asia",
              "au",
              "other"
            ],
            "type": "string",
            "description": "Which shipping rate fills shippingPrice and totalPrice: us, ca, uk, eu, asia, au or other. Rows where the seller does not ship there get null.",
            "default": "us"
          },
          "excludeKeywords": {
            "title": "Exclude words",
            "type": "array",
            "description": "Skip listings whose title or designer contains any of these words (not charged), e.g. \"replica\", \"kids\", \"box only\".",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max listings per search",
            "minimum": 0,
            "type": "integer",
            "description": "Stop each search after this many listings. 0 = every match (searches over 1,000 listings are split into price ranges automatically).",
            "default": 50
          },
          "maxTotalItems": {
            "title": "Max listings per run",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the whole run after this many rows (a hard cost cap). 0 = no cap.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Parallel searches",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many searches run at once (1-10).",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}