{
  "openapi": "3.0.1",
  "info": {
    "title": "Boots Scraper",
    "description": "Scrape Boots UK - the UK's largest pharmacy-led health and beauty retailer. Search by keyword, browse skincare, haircare, makeup, health categories and clearance, or fetch product pages by URL. Get names, brands, prices, was-prices, ratings, ingredients, images and availability.",
    "version": "1.0",
    "x-build-id": "aEj79DeWMveIdFspp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~boots-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-boots-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/crawlerbros~boots-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-boots-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/crawlerbros~boots-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-boots-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": [
              "search",
              "browseByCategory",
              "byUrl"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text query, e.g. `serum`, `vitamin c`, `lipstick` (mode=search).",
            "default": "serum"
          },
          "categoryPath": {
            "title": "Category path",
            "enum": [
              "beauty & skincare > skincare",
              "beauty & skincare > skincare > facial skincare > face serums & treatments",
              "beauty & skincare > skincare > active skincare ingredients",
              "beauty & skincare > skincare > body skincare",
              "beauty & skincare > skincare > face sun protection",
              "beauty & skincare > skincare > new in skincare",
              "beauty & skincare > skincare > skincare offers",
              "beauty & skincare > hair",
              "beauty & skincare > hair > hair treatments and masks",
              "beauty & skincare > hair > hair styling",
              "beauty & skincare > makeup",
              "beauty & skincare > makeup > face",
              "beauty & skincare > makeup > lips",
              "beauty & skincare > makeup > eyes",
              "beauty & skincare > makeup > nails",
              "beauty & skincare > makeup > makeup products under £20",
              "beauty & skincare > premium beauty & skincare",
              "beauty & skincare > vegan beauty",
              "beauty & skincare > brands",
              "beauty & skincare > No7",
              "toiletries > skincare",
              "toiletries > hair",
              "toiletries > men's toiletries",
              "toiletries > suncare",
              "toiletries > bathroom essentials",
              "health & pharmacy > medicines & treatments",
              "health & pharmacy > lifestyle & wellbeing",
              "men's > men's health",
              "men's > shaving & grooming",
              "baby & child > baby & child health",
              "baby & child > nappies, wipes & bathing",
              "baby & child > pregnancy & maternity",
              "electrical > LED masks & beauty tools",
              "electrical > hair styling tools",
              "gift > gift by occasion",
              "gift > gift type",
              "gift > gift by recipient",
              "sun & holiday > suncare",
              "sun & holiday > festival",
              "clearance"
            ],
            "type": "string",
            "description": "Curated Boots category, e.g. `beauty & skincare > skincare > facial skincare > face serums & treatments`, or `clearance` (mode=browseByCategory).",
            "default": "beauty & skincare > skincare"
          },
          "urls": {
            "title": "Product URLs (mode=byUrl)",
            "type": "array",
            "description": "Boots product page URLs, e.g. `https://www.boots.com/lumene-nordic-c-valo-glow-boost-essence-30ml-10346480`.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "brand": {
            "title": "Brands",
            "type": "array",
            "description": "Keep only products from these brands.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Minimum price (£)",
            "minimum": 0,
            "maximum": 100000,
            "type": "number",
            "description": "Drop products below this price."
          },
          "maxPrice": {
            "title": "Maximum price (£)",
            "minimum": 0,
            "maximum": 100000,
            "type": "number",
            "description": "Drop products above this price."
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 1,
            "maximum": 5,
            "type": "number",
            "description": "Keep only products rated at least this (1-5)."
          },
          "containsKeyword": {
            "title": "Keyword in name/description",
            "type": "string",
            "description": "Keep only products whose name or description contains this text (case-insensitive)."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "mostRelevant",
              "priceLowToHigh",
              "priceHighToLow",
              "topRated",
              "newest"
            ],
            "type": "string",
            "description": "Result ordering.",
            "default": "mostRelevant"
          },
          "renderProductPages": {
            "title": "Render product pages (mode=byUrl)",
            "type": "boolean",
            "description": "Render each product page in a browser to extract the full description and ingredients list. Required for mode=byUrl.",
            "default": true
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxy. Used automatically only if Boots blocks the datacenter IP."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}