{
  "openapi": "3.0.1",
  "info": {
    "title": "ALDI Australia Products, Prices & Special Buys Scraper",
    "description": "ALDI Australia products and prices: keyword search, categories, single products with ingredients, the category tree, and Special Buys days and products. Price monitoring mode returns only new products and price changes. No browser.",
    "version": "0.1",
    "x-build-id": "7LufZqbB9QmGUoUWi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/shelfdata~aldi-au-product-search-catalog/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-shelfdata-aldi-au-product-search-catalog",
        "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/shelfdata~aldi-au-product-search-catalog/runs": {
      "post": {
        "operationId": "runs-sync-shelfdata-aldi-au-product-search-catalog",
        "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/shelfdata~aldi-au-product-search-catalog/run-sync": {
      "post": {
        "operationId": "run-sync-shelfdata-aldi-au-product-search-catalog",
        "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",
        "required": [
          "operation"
        ],
        "properties": {
          "operation": {
            "title": "Operation",
            "enum": [
              "search",
              "item",
              "categories",
              "category",
              "search_filters",
              "special_events",
              "specials"
            ],
            "type": "string",
            "description": "What to collect: keyword `search`, one `category`, one product (`item`), the category tree (`categories`), the filter values of a search (`search_filters`), the Special Buys days (`special_events`) or the products of one Special Buys day (`specials`).",
            "default": "search"
          },
          "query": {
            "title": "Search query",
            "minLength": 1,
            "maxLength": 200,
            "type": "string",
            "description": "Required for `search` (and optional for `search_filters`): a product keyword such as `milk`, `coffee`, `nappies`.",
            "default": "milk"
          },
          "itemId": {
            "title": "Product ID",
            "pattern": "^\\d{6,32}$",
            "minLength": 6,
            "maxLength": 32,
            "type": "string",
            "description": "For item. Exact string ID returned by search. Keep leading zeros; use itemId or itemSlug."
          },
          "itemSlug": {
            "title": "Product slug",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]{0,255}$",
            "minLength": 1,
            "maxLength": 256,
            "type": "string",
            "description": "For `item`: the last part of the product URL (it ends in the product ID), e.g. `choceur-milk-mouse-milk-chocolate-168g-000000000538441002`."
          },
          "categoryId": {
            "title": "Category ID",
            "pattern": "^\\d{6,16}$",
            "minLength": 6,
            "maxLength": 16,
            "type": "string",
            "description": "For category. Numeric ID returned by categories. categoryUrl is also supported."
          },
          "categoryUrl": {
            "title": "Category URL",
            "pattern": "^https://(?:www\\.)?aldi\\.com\\.au/products/.+",
            "maxLength": 2048,
            "type": "string",
            "description": "For `category`: an aldi.com.au category URL ending in `/k/<id>`, e.g. `https://www.aldi.com.au/products/pantry/k/970000000`."
          },
          "page": {
            "title": "Page",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Optional for `search` and `category`. One-based page index.",
            "default": 1
          },
          "limit": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Cap on product rows (you pay per row). Listings page through 48 products at a time until this cap.",
            "default": 48
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "name_asc",
              "name_desc",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Optional for `search` and `category`. Default is `relevance`.",
            "default": "relevance"
          },
          "brand": {
            "title": "Brand",
            "maxLength": 200,
            "type": "string",
            "description": "Optional for `search`. ALDI brand filter."
          },
          "categoryTree": {
            "title": "Category Tree",
            "maxLength": 200,
            "type": "string",
            "description": "Optional for `search`. ALDI categoryTree filter."
          },
          "theme": {
            "title": "Theme",
            "maxLength": 200,
            "type": "string",
            "description": "Optional theme filter for `search` and `specials`, e.g. `Christmas`, `Gardening` (see `search_filters` or `special_events`)."
          },
          "eventDate": {
            "title": "Special Buys Date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "minLength": 10,
            "maxLength": 10,
            "type": "string",
            "description": "Required for `specials`: a Special Buys day (YYYY-MM-DD). Run `special_events` to get the advertised days."
          },
          "details": {
            "title": "Product details",
            "type": "boolean",
            "description": "Also read each product's page data: description, ingredients, allergens, country of origin, storage. One extra request per product (slower).",
            "default": false
          },
          "onlyPriceChanges": {
            "title": "Only new products and price changes",
            "type": "boolean",
            "description": "For scheduled price monitoring: remembers every product's last regular and special price (in a key-value store named `aldi-price-state` in your account) and returns only products not seen before or whose price changed, with `change`, `previousPrice` and `previousDiscountPrice`. The first run is the baseline.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "maxLength": 60,
            "type": "string",
            "description": "Keeps separate price memories for different monitoring tasks.",
            "default": "default"
          },
          "proxySource": {
            "title": "Proxy",
            "enum": [
              "owner",
              "apify_residential",
              "custom_pool"
            ],
            "type": "string",
            "description": "Built-in works for ALDI. Residential uses your own Apify Residential traffic.",
            "default": "owner"
          },
          "apifyProxyCountry": {
            "title": "Residential proxy country",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Two-letter country for `My Apify Residential proxies`.",
            "default": "AU"
          },
          "apifyProxySessions": {
            "title": "Apify proxy sessions",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "Sticky sessions (exits) to rotate over when one is refused.",
            "default": 3
          },
          "customProxyUrls": {
            "title": "My custom proxy list (secret)",
            "type": "string",
            "description": "For `My custom proxy list`: one http(s)://user:password@host:port per line (semicolons or a JSON array also work)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}