{
  "openapi": "3.0.1",
  "info": {
    "title": "StockX Market Price & Sales History Finder",
    "description": "Get StockX lowest ask, highest bid, last sale, and recent sales history for sneakers, streetwear, watches, and collectibles, by search, brand, category, or product slug.",
    "version": "1.1",
    "x-build-id": "1bTRUB5lLuyXcDFn7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyrelith-data~stockx-market-price-and-sales-history-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyrelith-data-stockx-market-price-and-sales-history-finder",
        "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/xyrelith-data~stockx-market-price-and-sales-history-finder/runs": {
      "post": {
        "operationId": "runs-sync-xyrelith-data-stockx-market-price-and-sales-history-finder",
        "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/xyrelith-data~stockx-market-price-and-sales-history-finder/run-sync": {
      "post": {
        "operationId": "run-sync-xyrelith-data-stockx-market-price-and-sales-history-finder",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byBrand",
              "byCategory",
              "byProduct",
              "byUrl",
              "salesHistory"
            ],
            "type": "string",
            "description": "What to collect from StockX.",
            "default": "search"
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "One or more keywords for mode=search, e.g. 'jordan 4 retro', 'yeezy 350', 'rolex submariner'.",
            "default": [
              "jordan"
            ],
            "items": {
              "type": "string"
            }
          },
          "brand": {
            "title": "Brand",
            "type": "string",
            "description": "Brand alias for mode=byBrand, e.g. 'jordan', 'nike', 'new-balance', 'casio'. When set in other modes it narrows the results to that brand."
          },
          "category": {
            "title": "Category",
            "enum": [
              "sneakers",
              "apparel",
              "accessories",
              "electronics",
              "collectibles",
              "trading-cards",
              "watches"
            ],
            "type": "string",
            "description": "StockX category for mode=byCategory. When set in other modes it narrows the results to that category."
          },
          "gender": {
            "title": "Gender",
            "enum": [
              "men",
              "women",
              "kids"
            ],
            "type": "string",
            "description": "Optional audience filter for search and browse modes."
          },
          "color": {
            "title": "Color",
            "enum": [
              "black",
              "white",
              "red",
              "blue",
              "green",
              "grey",
              "brown",
              "pink",
              "yellow",
              "multi"
            ],
            "type": "string",
            "description": "Optional color filter for search and browse modes."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "featured",
              "most-active",
              "lowest_ask",
              "highest_bid",
              "recent_bids",
              "recent_asks",
              "deadstock_sold",
              "release_date",
              "price_premium",
              "last_sale"
            ],
            "type": "string",
            "description": "Order of search and browse results.",
            "default": "featured"
          },
          "productSlugs": {
            "title": "Product slugs or URLs",
            "type": "array",
            "description": "Products for mode=byProduct or mode=salesHistory. Paste a StockX product URL or the slug after stockx.com/, e.g. 'air-jordan-4-retro-white-cement-2025'.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "StockX URLs",
            "type": "array",
            "description": "Search, category, brand, browse, or product URLs for mode=byUrl. Paste one URL per line.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "JPY",
              "CAD",
              "AUD",
              "CHF",
              "HKD",
              "SGD",
              "MXN",
              "KRW",
              "SEK",
              "PLN",
              "NZD",
              "NOK",
              "BRL",
              "CLP",
              "CNY",
              "IDR",
              "ILS",
              "KWD",
              "MOP",
              "MYR",
              "PEN",
              "PHP",
              "THB",
              "TWD",
              "VND"
            ],
            "type": "string",
            "description": "Currency for all prices.",
            "default": "USD"
          },
          "country": {
            "title": "Market / region",
            "enum": [
              "US",
              "GB",
              "DE",
              "FR",
              "IT",
              "ES",
              "NL",
              "JP",
              "AU",
              "CA",
              "CH",
              "HK",
              "SG",
              "MX",
              "KR",
              "BR",
              "CL",
              "CN",
              "NZ",
              "SE",
              "PL",
              "NO",
              "DK",
              "IL"
            ],
            "type": "string",
            "description": "Market that determines the order book and localized prices.",
            "default": "US"
          },
          "minPrice": {
            "title": "Minimum lowest ask",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Drop products whose lowest ask is below this value. Applies to fetched rows in the selected currency."
          },
          "maxPrice": {
            "title": "Maximum lowest ask",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Drop products whose lowest ask is above this value. Applies to fetched rows in the selected currency."
          },
          "minSalesLast72Hours": {
            "title": "Minimum sales in 72 hours",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Keep products that sold at least this many units in the last 72 hours. Products without a count are kept."
          },
          "includeProductDetails": {
            "title": "Fetch product details",
            "type": "boolean",
            "description": "When browsing or searching, fetch each product's full record: style ID, colorway, retail price, release date, traits, gallery, and market statistics. Off gives a fast, compact listing row.",
            "default": true
          },
          "includeVariants": {
            "title": "Include per-size order book",
            "type": "boolean",
            "description": "Add the per-size order book (asks, bids, spread, last sale, GTINs) to full product records.",
            "default": true
          },
          "includeSalesHistory": {
            "title": "Include recent sales",
            "type": "boolean",
            "description": "Add recent individual sales to each product record. Use mode=salesHistory to emit sales as separate rows.",
            "default": false
          },
          "salesLimit": {
            "title": "Sales per product",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum individual sales to collect per product (1-500).",
            "default": 50
          },
          "salesCondition": {
            "title": "Sale condition",
            "enum": [
              "all",
              "new-and-verified",
              "new-other",
              "used"
            ],
            "type": "string",
            "description": "Condition filter for sales history. If StockX does not serve filtered sales for a product, all conditions are returned and the run says so.",
            "default": "all"
          },
          "maxItems": {
            "title": "Max records",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records. StockX itself caps each query at 1,000 results.",
            "default": 25
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Maximum listing pages per query. Each page holds up to 40 products; StockX stops at 25 pages.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}