{
  "openapi": "3.0.1",
  "info": {
    "title": "Albert Heijn Scraper | Netherlands & Belgium Prices",
    "description": "Scrape Albert Heijn's Dutch and Belgian shops: prices, bonus deals with dates, old prices, Nutri-Score, categories, and on request EANs, ingredients, allergens and nutrition, as JSON. Whole catalogue, categories or search. No login, no proxy.",
    "version": "0.1",
    "x-build-id": "NuaM5dHXoSghAElSe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ratatoskr~albert-heijn-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ratatoskr-albert-heijn-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/ratatoskr~albert-heijn-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ratatoskr-albert-heijn-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/ratatoskr~albert-heijn-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ratatoskr-albert-heijn-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": {
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Which Albert Heijn shops to read. Each has its own range and its own prices. Pick both to compare them in one run.",
            "items": {
              "type": "string",
              "enum": [
                "NL",
                "BE"
              ],
              "enumTitles": [
                "Netherlands",
                "Belgium"
              ]
            },
            "default": [
              "NL"
            ]
          },
          "categories": {
            "title": "Categories (optional)",
            "type": "array",
            "description": "Category names, ids or page URLs, such as Vlees or Koffie, thee. A name works in both countries: four differ, and either name reads the country's own (Groente, aardappelen is Groenten, aardappelen in Belgium; Vleeswaren is Charcuterie; Borrel, chips, snacks is Aperitiefhapjes, chips, snacks; Drogisterij is Verzorging en hygiëne), and AH Bloemenshop and AH Voordeelshop are Dutch only. Ids and page URLs belong to one country (Groente, aardappelen is 6401 in the Netherlands and 23421 in Belgium), so use names in a run for both. Leave empty, with no search terms, for the whole catalogue.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search terms (optional)",
            "type": "array",
            "description": "Only products Albert Heijn's own search finds for these terms (e.g. koffie, melk).",
            "items": {
              "type": "string"
            }
          },
          "bonusOnly": {
            "title": "Bonus only",
            "type": "boolean",
            "description": "Only products on a dated bonus deal, running now or starting soon (coming deals have upcoming: true), read with Albert Heijn's own bonus filter. Leaves out standing deals with no start or end date (promotionType PERPETUAL, such as Gall & Gall's standing card discounts and some 'volume voordeel' multi-packs). Online bundles on a dated bonus stay in (packs of several of one product, such as '5% volume voordeel' or 'pakketkorting', whose details read 'Dit pakket wordt als losse artikelen geleverd.'): on 19 November 2026 they were 12,125 of 15,869 Dutch bonus products (76%) and 222 of 1,294 Belgian. With search terms, the filtered search can match more loosely than the plain one ('bier' can find 'biet'). With a watch, a bonus that ends is not output, and the deal coming back is reported as started.",
            "default": false
          },
          "includeDetails": {
            "title": "Include EAN, ingredients, allergens and nutrition",
            "type": "boolean",
            "description": "Reads each product's full record as well. A run takes longer, at about 40 products a second.",
            "default": false
          },
          "maxItems": {
            "title": "Max products per country, category or search term",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many products for each country, category or search term. Default 100; enter a higher number such as 100000 for everything.",
            "default": 100
          },
          "watchName": {
            "title": "Watch name (change tracking)",
            "type": "string",
            "description": "Give the watch a name and schedule the run: every run after the first returns only what changed since the last one (a bonus that started or ended, a price drop or rise, a changed offer, a product that can no longer be ordered or can be again, a new product), each with the previous price and offer. The first run returns everything as the baseline. Different names keep separate memories in a key-value store on your own Apify account. Unchanged products are not output, and you pay only for the rows that are."
          },
          "onlyChanges": {
            "title": "Only changes",
            "type": "boolean",
            "description": "With a watch name: output only products that changed. Off: every one, each marked with its change (or unchanged), charged as a row.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}