{
  "openapi": "3.0.1",
  "info": {
    "title": "ALDI Australia Scraper - Prices, Special Buys, Stores & History",
    "description": "ALDI Australia scraper: the full range (~3,200 products) with prices, unit prices, Super Savers, Lower Prices and Special Buys (also announced ones, with on-sale date), prices for any of ~614 stores, and price history ALDI doesn't show: previous price, 30-day low, 90-day average. MCP-ready.",
    "version": "0.0",
    "x-build-id": "SMnQViveuZz36jqSB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlplant~aldi-au/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlplant-aldi-au",
        "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/crawlplant~aldi-au/runs": {
      "post": {
        "operationId": "runs-sync-crawlplant-aldi-au",
        "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/crawlplant~aldi-au/run-sync": {
      "post": {
        "operationId": "run-sync-crawlplant-aldi-au",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "category",
              "specials",
              "products",
              "barcodes",
              "urls",
              "categories",
              "catalog",
              "stores"
            ],
            "type": "string",
            "description": "What to fetch: keyword search, a category listing, specials (Super Savers, Lower Prices, Special Buys, Limited Time Only), products by id or barcode, any ALDI links, the list of categories, the full catalogue (~3,200 products; set Max items high, filters apply), or the store directory with hours and services.",
            "default": "search"
          },
          "queries": {
            "title": "Search queries",
            "type": "array",
            "description": "Used in 'search' mode. Each query is searched separately.",
            "default": [
              "milk"
            ],
            "items": {
              "type": "string"
            }
          },
          "categoryUrls": {
            "title": "Category URLs",
            "type": "array",
            "description": "Used in 'category' mode, e.g. https://www.aldi.com.au/products/dairy-eggs-fridge/milk/k/1111111160 (or dairy-eggs-fridge/milk, or the key 1111111160). Tip: run mode 'List categories' to get every category URL.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "productIds": {
            "title": "Product ids",
            "type": "array",
            "description": "Used in 'products' mode: the number at the end of a product URL, e.g. 000000000000398691 (leading zeros may be left out: 398691).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "barcodes": {
            "title": "Barcodes (EAN / GTIN)",
            "type": "array",
            "description": "Used in 'barcodes' mode: up to 100 GTIN-8/12/13/14 codes with valid check digits. ALDI maps each known code to product IDs. Unknown codes are reported in warnings; leading zeros are preserved. Example: 8000500003787 (Ferrero Rocher 200g).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "ALDI links",
            "type": "array",
            "description": "Used in 'urls' mode: paste any product, search, category or Special Buys link (or a bare product id). The sort order is kept; a Special Buys date in the link overrides Special Buys dates below.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "specialsGroups": {
            "title": "Specials groups",
            "type": "array",
            "description": "Used in 'specials' mode. Empty = all. Values: super-savers, lower-prices, special-buys (on sale now and announced), upcoming-special-buys (announced, not on sale yet), limited-time-only.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "specialBuysDates": {
            "title": "Special Buys dates",
            "type": "array",
            "description": "Used in 'specials' mode and for Special Buys links. On-sale dates in YYYY-MM-DD format, e.g. 2026-10-17. Empty = all dates; upcoming-special-buys still excludes dates on or before today in Sydney. With dates or themes selected and no Specials groups, only Special Buys are returned. A dated URL overrides this list.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "specialBuysThemes": {
            "title": "Special Buys themes",
            "type": "array",
            "description": "Used in 'specials' mode and for Special Buys links. Exact ALDI theme names, e.g. Gardening or Tools and DIY. Empty = all themes; multiple themes are combined without duplicate products. Themes filter Special Buys only, before Max items. Complete nightly theme memberships are used when fresh; missing or stale memberships fall back to live listings.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum products per query / category / link, per store (after filters). For specials, products and the full catalogue: per run and store (the catalogue has ~3,200 products). Store directory: number of stores.",
            "default": 100
          },
          "storeIds": {
            "title": "Store ids",
            "type": "array",
            "description": "Prices and range of these ALDI stores, each store as its own rows (some fresh produce, meat and liquor prices differ by store and state). The id is a letter and 3 digits, e.g. G525 (Darlinghurst NSW); mode 'Store directory' lists them all. Empty = ALDI's national prices (the ones with price history). Store prices come from our nightly read of every store (fetched live when it's older than this week's Wednesday).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "postcodes": {
            "title": "Postcodes",
            "type": "array",
            "description": "Australian postcodes (up to 100): every ALDI store in each postcode, each as its own rows. A postcode without an ALDI gives no rows; the run warnings name its nearest store and distance, so you can add it to Store ids.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "allStores": {
            "title": "All ALDI stores",
            "type": "boolean",
            "description": "Run the searches / categories / specials in every ALDI store (~614). Combine with a small Max items: it applies per store.",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc",
              "unit_price_asc",
              "name"
            ],
            "type": "string",
            "description": "Result order. Relevance, price and name are applied by ALDI before paging; unit price collects every match first, then sorts (cheapest per kg / litre / item first).",
            "default": "relevance"
          },
          "specialsOnly": {
            "title": "Specials only",
            "type": "boolean",
            "description": "Keep only products that are a Super Saver, Lower Price, Special Buy or Limited Time Only.",
            "default": false
          },
          "minPrice": {
            "title": "Min price (AUD)",
            "minimum": 0,
            "type": "number",
            "description": "Keep only products priced at or above this amount."
          },
          "maxPrice": {
            "title": "Max price (AUD)",
            "minimum": 0,
            "type": "number",
            "description": "Keep only products priced at or below this amount."
          },
          "excludeCategories": {
            "title": "Exclude categories",
            "type": "array",
            "description": "Categories to leave out, by name or URL slug, e.g. 'Liquor' or 'christmas'.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "brands": {
            "title": "Brands",
            "type": "array",
            "description": "Keep only these brands (exact brand name, any case), e.g. 'Farmdale', 'Belmont Biscuit Co.'.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeAllergens": {
            "title": "Exclude allergens",
            "type": "array",
            "description": "Skip products that contain or may contain any of these, e.g. Peanut, Milk, Gluten. Products without allergen data are skipped too. Needs product details.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "changedSince": {
            "title": "Price changed since",
            "type": "string",
            "description": "Return only products whose price changed since this date/time (e.g. 2026-10-12), or 'last-run' for changes since your previous run with the same input. National prices only."
          },
          "includeDisappeared": {
            "title": "Include disappeared products",
            "type": "boolean",
            "description": "With 'Price changed since' = last-run: also list products your previous run returned that are gone now (delisted or no longer matching), as rows with type 'disappeared'.",
            "default": false
          },
          "priceHistoryDays": {
            "title": "Price history (days)",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Add each product's price changes from the last N days (0 = off). Every result always includes previous price, 30-day low and 90-day average once we have that history.",
            "default": 0
          },
          "onlyNew": {
            "title": "Only new products",
            "type": "boolean",
            "description": "Only products that appeared at ALDI in the last 7 days.",
            "default": false
          },
          "onlyNewSpecials": {
            "title": "Only new specials",
            "type": "boolean",
            "description": "Only products that became a Super Saver, Lower Price, Special Buy or Limited Time Only in the last 7 days.",
            "default": false
          },
          "fetchFullDetails": {
            "title": "Fetch full details",
            "type": "boolean",
            "description": "Adds description, ingredients, allergens, storage, origin, variants and packaging images from the product endpoint. Newly fetched details also attempt barcode decoding from photos, confirmed against ALDI's SKU mapping; these image reads take extra time. A small charge applies per successfully fetched detail, including image reads. Cached details are included at no extra cost.",
            "default": false
          },
          "includeStock": {
            "title": "Special Buys stock by store",
            "type": "boolean",
            "description": "With storeIds, postcodes or allStores: add Special Buys stock observations. Nightly cache is used within Max cache age and never beyond 24 hours; missing or older observations are read live. Max cache age 0 forces live checks. Adds stockStatus, stockInfoDisplay, stockObservedAt and stockSource (cache/live), independently of the price timestamp. Low/no stock does not prove zero units. Failed lookups retain the price row with a warning. Extra requests are included in the product price.",
            "default": false
          },
          "maxAgeHours": {
            "title": "Max cache age (hours)",
            "minimum": 0,
            "type": "integer",
            "description": "We refresh every product nightly (Sydney time). Data older than this, or read before this week's Wednesday (Special Buys day), is fetched live instead. 0 = always fetch live.",
            "default": 36
          },
          "includeRaw": {
            "title": "Include raw payload",
            "type": "boolean",
            "description": "Add the original ALDI payload to each record (every field, including ones we do not map).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}