{
  "openapi": "3.0.1",
  "info": {
    "title": "Tesco UK & Ireland Scraper",
    "description": "Scrape Tesco.com and Tesco.ie grocery products by search, category or URL. Get prices, Clubcard prices, promotions, unit prices, stock, ingredients, allergens, nutrition, ratings and reviews. Export JSON, CSV, Excel.",
    "version": "1.0",
    "x-build-id": "g0sesxqaxJ1UP5285"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parsebird~tesco-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parsebird-tesco-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/parsebird~tesco-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parsebird-tesco-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/parsebird~tesco-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parsebird-tesco-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 keywords",
            "type": "array",
            "description": "Enter keywords to search Tesco with, one per line, e.g. <code>milk</code>, <code>protein bars</code>, <code>nappies</code>. Each keyword is searched in the selected region.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Tesco URLs",
            "type": "array",
            "description": "Paste Tesco product, search or category URLs from tesco.com or tesco.ie, e.g. <code>https://www.tesco.com/groceries/en-GB/products/272202380</code>, <code>https://www.tesco.com/groceries/en-GB/search?query=milk</code> or <code>https://www.tesco.com/groceries/en-GB/shop/fresh-food/all</code>. New-style links such as <code>https://www.tesco.com/shop/en-GB/browse/fresh-food/fresh-fruit</code> work too. The region is taken from each URL.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Pick whole Tesco departments to scrape in the selected region. For a smaller aisle or shelf, paste its URL into <b>Tesco URLs</b> instead.",
            "items": {
              "type": "string",
              "enum": [
                "fresh-food",
                "bakery",
                "frozen-food",
                "treats-and-snacks",
                "food-cupboard",
                "drinks",
                "baby-and-toddler",
                "health-and-beauty",
                "pets",
                "household",
                "home-and-furniture",
                "home-and-living",
                "tesco-finest",
                "garden-diy-and-car-care",
                "electronics-and-gaming",
                "toys-and-games",
                "parties-and-seasonal",
                "sports-and-leisure",
                "hobbies-and-stationery",
                "marketplace"
              ],
              "enumTitles": [
                "Fresh Food",
                "Bakery",
                "Frozen Food",
                "Treats & Snacks",
                "Food Cupboard",
                "Drinks",
                "Baby & Toddler",
                "Health & Beauty",
                "Pets",
                "Household",
                "Home & Furniture (UK)",
                "Home & Living (Ireland)",
                "Tesco Finest (Ireland)",
                "Garden, DIY & Car Care (UK)",
                "Electronics & Gaming (UK)",
                "Toys & Games (UK)",
                "Parties & Seasonal (UK)",
                "Sports & Leisure (UK)",
                "Hobbies & Stationery (UK)",
                "Marketplace (UK)"
              ]
            }
          },
          "region": {
            "title": "Region",
            "enum": [
              "UK",
              "IE"
            ],
            "type": "string",
            "description": "Choose the Tesco store for search keywords and categories. Prices are in GBP for the UK and EUR for Ireland. URLs always use the region of their own domain.",
            "default": "UK"
          },
          "maxItems": {
            "title": "Max products",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of products to save across all keywords, URLs and categories.",
            "default": 100
          },
          "includeProductDetails": {
            "title": "Include product details",
            "type": "boolean",
            "description": "Add the full product page data: description, ingredients, allergens, nutrition per 100g and per serving, storage, cooking and freezing instructions, origin, recycling, manufacturer address, ratings distribution and all images. Turn off for faster price-only scrapes.",
            "default": true
          },
          "includeReviews": {
            "title": "Include reviews",
            "type": "boolean",
            "description": "Add customer reviews (rating, title, text, date, verified buyer) to each product. Reviews are returned newest first.",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of reviews to add to each product when reviews are on (up to 500).",
            "default": 20
          },
          "reviewsPostedWithin": {
            "title": "Reviews posted within",
            "pattern": "^(\\s*|\\d+\\s*(day|days|week|weeks|month|months|year|years)|\\d{4}-\\d{2}-\\d{2}.*)$",
            "type": "string",
            "description": "Only keep reviews newer than this, e.g. <code>7 days</code>, <code>3 months</code>, <code>1 year</code> or a date like <code>2026-01-31</code>. Leave empty for all reviews."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "price-ascending",
              "price-descending"
            ],
            "type": "string",
            "description": "Order of search and category results, like the sort menu on Tesco.",
            "default": "relevance"
          },
          "startPage": {
            "title": "Start page",
            "minimum": 1,
            "type": "integer",
            "description": "Results page to start from on each search and category (Tesco shows 24 products per page). A <code>page=</code> value inside a pasted URL takes priority.",
            "default": 1
          },
          "maxPagesPerSource": {
            "title": "Max pages per search or category",
            "minimum": 0,
            "type": "integer",
            "description": "Stop each search or category after this many Tesco result pages (24 products each). Leave at 0 to go through all pages until <b>Max products</b> is reached.",
            "default": 0
          },
          "deduplicateProducts": {
            "title": "Save each product only once",
            "type": "boolean",
            "description": "Skip products already saved from an earlier keyword, URL or category in the same run. Turn off to keep one row per product per source.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Tesco works without a proxy, so you can leave this off. Add one only if you need requests to come from a specific network.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}