{
  "openapi": "3.0.1",
  "info": {
    "title": "Sainsburys Scraper | Grocery Prices, Nectar Offers, Nutrition",
    "description": "Sainsbury's scraper for UK grocery prices: search a term, an aisle link or product numbers and get price, unit price, Nectar Price and offer end date, barcode, rating, ingredients, allergens, nutrition and country of origin. 100 products in 23 seconds, 35 fields each. No login or account needed.",
    "version": "1.0",
    "x-build-id": "4LwoI0UNIM9FRH3Ir"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/silentflow~sainsburys-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-silentflow-sainsburys-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/silentflow~sainsburys-scraper/runs": {
      "post": {
        "operationId": "runs-sync-silentflow-sainsburys-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/silentflow~sainsburys-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-silentflow-sainsburys-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": {
          "searchTerms": {
            "title": "🔎 Search terms",
            "type": "array",
            "description": "Words to search on Sainsbury's groceries, one per line, as you would type them in the shop's search box: <code>milk</code>, <code>baked beans</code>, <code>gluten free bread</code>. Every term is searched in the same run and gives up to the cap below.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "🔗 Category, search or product links",
            "type": "array",
            "description": "Paste sainsburys.co.uk links copied from your browser:<ul><li>an aisle or category, to read all its products: <code>https://www.sainsburys.co.uk/gol-ui/groceries/dairy-eggs-and-chilled/milk/c:1019342</code></li><li>a search page: <code>https://www.sainsburys.co.uk/gol-ui/SearchResults/oat%20milk</code></li><li>a product page: <code>https://www.sainsburys.co.uk/gol-ui/product/sainsburys-bananas-loose</code></li></ul>",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "productIds": {
            "title": "🏷️ Product numbers or links",
            "type": "array",
            "description": "A fixed basket to track: Sainsbury's product numbers (<code>357937</code>, the number in the product's <code>id</code> column) or product page links, one per line. Each product always returns its own row, whatever the cap below. Schedule the run to follow prices and offers every day.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "🔢 Max products per search or category",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most products read for each search term and each category link. A popular term such as <code>milk</code> lists about 950 products, a whole aisle several thousand. It never cuts your list of product numbers.",
            "default": 100
          },
          "sortBy": {
            "title": "↕️ Sort by",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc",
              "rating"
            ],
            "type": "string",
            "description": "The order of the products, as on the site. With a cap, it decides which products you get: <code>price_asc</code> with a cap of 20 gives the 20 cheapest.",
            "default": "relevance"
          },
          "offersOnly": {
            "title": "🏷️ Offers and Nectar Prices only",
            "type": "boolean",
            "description": "Keep only the products on offer today: Nectar Prices, price cuts, multi buys and meal deals. Each row gives the offer text, the Nectar Price, the was price and the offer's end date.",
            "default": false
          },
          "dietary": {
            "title": "🥗 Dietary and allergy filters",
            "type": "array",
            "description": "Keep only products the shop lists as matching every choice: <code>vegan</code> and <code>gluten_free</code> give vegan products without gluten.",
            "items": {
              "type": "string",
              "enum": [
                "vegetarian",
                "vegan",
                "gluten_free",
                "dairy_free",
                "lactose_free",
                "egg_free",
                "nut_free",
                "peanut_free",
                "soya_free",
                "organic",
                "halal",
                "kosher",
                "low_fat",
                "low_sugar",
                "low_salt",
                "no_added_sugar",
                "high_protein",
                "high_fibre",
                "low_calorie"
              ],
              "enumTitles": [
                "Vegetarian",
                "Vegan",
                "Gluten free",
                "Dairy free (no milk)",
                "Lactose free",
                "Egg free",
                "Nut free",
                "Peanut free",
                "Soya free",
                "Organic",
                "Halal",
                "Kosher",
                "Low fat",
                "Low sugar",
                "Low salt",
                "No added sugar",
                "High protein",
                "High fibre",
                "Low calorie"
              ]
            }
          },
          "brands": {
            "title": "🏭 Brands",
            "type": "array",
            "description": "Keep only these brands, as the shop names them: <code>Cadbury</code>, <code>Alpro</code>, <code>Sainsbury's</code>. Several brands give the products of any of them.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "📄 Full product details",
            "type": "boolean",
            "description": "Open every product page to add the brand, ingredients, allergens, nutrition table, country of origin, storage, packaging, manufacturer, full description and every image. Turn off for price tracking only: rows come faster with price, unit price, offers, barcode and rating.",
            "default": true
          },
          "debugMode": {
            "title": "🐞 Debug log",
            "type": "boolean",
            "description": "Write a detailed log of every request. Leave off unless asked by support.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}