{
  "openapi": "3.0.1",
  "info": {
    "title": "ALDI Australia Special Buys & Price Tracker",
    "description": "For grocery price comparison, deal alerts and Special Buys catalogues: every ALDI Australia Special Buy by week and any aldi.com.au category as flat rows with price, unit price, size, brand, on-sale date and image. Monitor mode returns only changes.",
    "version": "0.1",
    "x-build-id": "bUPky5BaiRLo6GlSl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~aldi-australia-special-buys-price-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-aldi-australia-special-buys-price-tracker",
        "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/neverempty~aldi-australia-special-buys-price-tracker/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-aldi-australia-special-buys-price-tracker",
        "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/neverempty~aldi-australia-special-buys-price-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-aldi-australia-special-buys-price-tracker",
        "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": {
          "categoryUrls": {
            "title": "ALDI category or Special Buys URLs",
            "type": "array",
            "description": "aldi.com.au pages with a product list, one per line (up to 200 per run), copied from the browser address bar: a category like https://www.aldi.com.au/products/pantry/k/970000000, a Special Buys week like https://www.aldi.com.au/special-buys/2026-11-04, or one theme of a week (the URL with ?theme=...). https://www.aldi.com.au/special-buys reads every Special Buys week listed on the site. Page numbers in the URL are ignored; each list is read from page 1. If everything is left empty, every listed Special Buys week is read.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "ALDI category names (optional)",
            "type": "array",
            "description": "Category names from the ALDI product menu, one per line, instead of URLs: like Pantry, Salads, or Fruits & Vegetables > Salads when a name is used under more than one parent. The names are looked up in the category list on aldi.com.au at the start of the run.",
            "items": {
              "type": "string"
            }
          },
          "allSpecialBuys": {
            "title": "All Special Buys weeks on the site",
            "type": "boolean",
            "description": "On: also read every Special Buys week aldi.com.au lists right now (usually this week, next week and the announced weeks after it). In monitor mode, a week that appears for the first time returns all its products as new Special Buys. Off or empty: only the URLs and names above (with nothing above, every week is read)."
          },
          "maxItemsPerCategory": {
            "title": "Max products per list",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Most products returned for one category or Special Buys week in a normal run (ALDI shows 30 per page). Empty = every product on the pages read. Not used in monitor mode, which compares the whole list."
          },
          "maxPagesPerCategory": {
            "title": "Max pages per list",
            "minimum": 1,
            "maximum": 150,
            "type": "integer",
            "description": "How many pages (30 products each) are read at most for one list, 1 to 150. Empty = 25 pages (750 products). Special Buys weeks and most categories fit; the largest departments may need more.",
            "default": 25
          },
          "onlyChanges": {
            "title": "Monitor mode: only price changes and new Special Buys",
            "type": "boolean",
            "description": "On: the first run records the price and Special Buy date of every product in each list as the starting point (free, no product rows). Later runs with the same lists return only products whose price dropped, that became a Special Buy, whose Special Buy date changed, or that are newly listed, with the previous price and the change. A list where nothing changed costs one small category-checked event. Off or empty: return every product.",
            "default": false
          },
          "alertOnPriceIncrease": {
            "title": "Monitor mode: also return price increases",
            "type": "boolean",
            "description": "On: monitor mode also returns products whose price went up (changeType price-increase). Off or empty: price increases are remembered but not returned.",
            "default": false
          },
          "watchName": {
            "title": "Watch name (optional)",
            "type": "string",
            "description": "Keeps a separate memory per name, so two schedules with different lists do not mix. Letters, digits, dot, dash and underscore, up to 40 characters. Empty means the watch called default."
          },
          "resetMonitoringState": {
            "title": "Forget what this watch remembers",
            "type": "boolean",
            "description": "Monitor mode only: forget the remembered prices of this watch name first, so this run records a new starting point. Off or empty: keep the memory.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Lists read at the same time",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "How many lists are read in parallel (1 to 4); the pages of one list are read one after another. Empty = 2.",
            "default": 2
          },
          "requestTimeoutSecs": {
            "title": "Seconds to wait for one page",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "How long to wait for one page before asking again (5 to 60). Empty = 30.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}