{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Supermarket Prices: Tesco, Sainsbury's, Asda & Morrisons",
    "description": "Compare UK supermarket prices for milk, coffee and groceries across Tesco, Sainsbury's, Asda and Morrisons: ordinary and loyalty prices, dated offers, unit prices, pack sizes and supplied barcodes. $0.003 per product: 100 cost $0.30 + $0.0035 per snapshot. No login.",
    "version": "1.0",
    "x-build-id": "mTh9AeNTB5soUX3bX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vant47~uk-supermarket-prices-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vant47-uk-supermarket-prices-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/vant47~uk-supermarket-prices-scraper/runs": {
      "post": {
        "operationId": "runs-sync-vant47-uk-supermarket-prices-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/vant47~uk-supermarket-prices-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-vant47-uk-supermarket-prices-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": {
          "retailers": {
            "title": "Retailers",
            "type": "array",
            "description": "Choose tesco, sainsburys, asda or morrisons. Empty selects none. Unknown names produce free notes. Omit for all four.",
            "default": [
              "tesco",
              "sainsburys",
              "asda",
              "morrisons"
            ],
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Each term, such as milk or coffee, is searched at every selected retailer. Leave empty for product IDs or URLs only.",
            "items": {
              "type": "string"
            }
          },
          "categoryUrls": {
            "title": "Category URLs",
            "type": "array",
            "description": "HTTPS grocery category or promotion links. Each URL is routed only to its retailer. Unsupported paths produce free notes.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Product, category, deals or search URLs",
            "type": "array",
            "description": "Optional HTTPS links from the four selected retailers. Each URL is read only from its own retailer.",
            "items": {
              "type": "string"
            }
          },
          "productIds": {
            "title": "Product IDs",
            "type": "array",
            "description": "With multiple retailers, use retailer-prefixed IDs such as tesco:254656543 or asda:1000380729776. With one retailer, plain source IDs are accepted. IDs are not barcodes.",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postcodes",
            "type": "array",
            "description": "UK postcode context, such as SW1A 1AA. These signed-out online catalogues do not establish serving stores, local prices or postcode stock. Repeating postcodes does not multiply national observations.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Postcodes (family compatibility)",
            "type": "array",
            "description": "Same postcode context as postalCodes. Both lists are merged and deduplicated. No default list overrides a supplied list.",
            "items": {
              "type": "string"
            }
          },
          "storeIds": {
            "title": "Store IDs",
            "type": "array",
            "description": "Asda published stock flags may use asda:4565. Plain Asda IDs work when only Asda is selected. Other retailers cannot select a serving store anonymously and are skipped with a free note. With multiple retailers, unprefixed store IDs are invalid.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerRetailer": {
            "title": "Maximum products per retailer",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "A ceiling on unique product rows, including free unpriced rows when enabled. Product pricing is $0.003 each, plus one $0.0035 successful snapshot fee and the platform start fee.",
            "default": 10
          },
          "maxItems": {
            "title": "Maximum products in the run",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "A ceiling on unique product rows, including free unpriced rows when enabled. Product pricing is $0.003 each, plus one $0.0035 successful snapshot fee and the platform start fee.",
            "default": 40
          },
          "maxItemsPerSearch": {
            "title": "Maximum products per source",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Optional cap per term, category or deals input within a retailer. Defaults to maxItemsPerRetailer. Both caps apply; the smaller remaining cap wins."
          },
          "dealsOnly": {
            "title": "Deals only",
            "type": "boolean",
            "description": "Keep source-advertised promotions, loyalty offers or Rollback. Multi-buy totals are not single-item prices.",
            "default": false
          },
          "includeDetails": {
            "title": "Include label details",
            "type": "boolean",
            "description": "Add supplied ingredients, nutrition and product metadata with no extra product fee. Adds paced source calls.",
            "default": false
          },
          "includeUnpriced": {
            "title": "Include free unpriced catalogue rows",
            "type": "boolean",
            "description": "Off by default. Rows with neither a numeric price nor a dated offer are free. Some retailers omit such products at source.",
            "default": false
          },
          "priceRegion": {
            "title": "Asda online price region",
            "enum": [
              "EN",
              "SC",
              "WA",
              "NI"
            ],
            "type": "string",
            "description": "EN, SC, WA or NI. Applies only to Asda; postcodes do not override it or verify store prices.",
            "default": "EN"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Datacenter first, residential after refusal. An explicit country is retained during fallback; explicit disable, proxy groups and custom URLs stay fixed.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}