{
  "openapi": "3.0.1",
  "info": {
    "title": "ASOS Product Scraper | Fashion Prices & SKUs",
    "description": "Scrape ASOS.com fashion products — keyword search, category PLP & PDP. Extract prices, brands, colourWayId, sizes, images across global markets. Export Excel/CSV/JSON. Unofficial.",
    "version": "0.1",
    "x-build-id": "fSsMaNmBk9DYVqzIG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~asos-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-asos-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/lentic_clockss~asos-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-asos-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/lentic_clockss~asos-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-asos-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "categorySearch",
              "keywordSearch",
              "productDetail",
              "categories"
            ],
            "type": "string",
            "description": "categorySearch / keywordSearch / productDetail / categories (taxonomy listing).",
            "default": "keywordSearch"
          },
          "browseCountry": {
            "title": "Browse country",
            "type": "string",
            "description": "ISO-2 from ASOS country selector (or ROW). Examples: GB, US, PL, AE, JP.",
            "default": "GB"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Optional browseCurrency override (e.g. GBP, USD, PLN)."
          },
          "gender": {
            "title": "Gender",
            "enum": [
              "women",
              "men"
            ],
            "type": "string",
            "description": "women or men — category / taxonomy.",
            "default": "women"
          },
          "bucket": {
            "title": "Category bucket",
            "enum": [
              "sale",
              "new_in",
              "face_body",
              "clothing",
              "shoes",
              "accessories",
              "activewear",
              "brands",
              "outlet",
              "other"
            ],
            "type": "string",
            "description": "Shortcut: sale, new_in, face_body, clothing, shoes, accessories, activewear, brands, outlet."
          },
          "categorySlug": {
            "title": "Category slug",
            "type": "string",
            "description": "URL slug, e.g. dresses or sale."
          },
          "categoryPath": {
            "title": "Category path",
            "type": "string",
            "description": "Full path prefix e.g. women/sale or women/new-in/new-in-clothing."
          },
          "cid": {
            "title": "Category ID (cid)",
            "type": "string",
            "description": "ASOS category cid."
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Keyword for keywordSearch. Console Test prefills a short GB query so Start works without extra fields.",
            "default": "black dress"
          },
          "keyword": {
            "title": "Keyword (alias)",
            "type": "string",
            "description": "Alias of query."
          },
          "refine": {
            "title": "Refine filter",
            "type": "string",
            "description": "ASOS refine= query, e.g. attribute_10992:61379"
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "freshness",
              "pricedasc",
              "priceddesc",
              "favourite",
              "trending"
            ],
            "type": "string",
            "description": "ASOS sort value: freshness, pricedasc, priceddesc, favourite, trending."
          },
          "currentPriceRange": {
            "title": "Price range",
            "type": "string",
            "description": "ASOS currentpricerange param."
          },
          "productId": {
            "title": "Product ID",
            "type": "string",
            "description": "Product ID"
          },
          "colourWayId": {
            "title": "Colour way ID",
            "type": "string",
            "description": "Colour way ID"
          },
          "productUrl": {
            "title": "Product URL",
            "type": "string",
            "description": "Product URL"
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Max pages",
            "default": 1
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Max results",
            "default": 1
          },
          "enrichDetails": {
            "title": "Enrich with PDP",
            "type": "boolean",
            "description": "Enrich with PDP",
            "default": false
          },
          "expandColours": {
            "title": "Expand colourWays",
            "type": "boolean",
            "description": "For listings, expand alternate colourWayId rows via PDP.",
            "default": false
          },
          "includeRelated": {
            "title": "Include related products",
            "type": "boolean",
            "description": "Include related products",
            "default": false
          },
          "workerBaseUrl": {
            "title": "Worker base URL override",
            "type": "string",
            "description": "Worker base URL override"
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}