{
  "openapi": "3.0.1",
  "info": {
    "title": "Woolworths Australia Product, Category & Price Scraper",
    "description": "Woolworths Australia products and prices: search, category shelves, single products with barcode, nutrition and ingredients, full category tree. Price monitoring mode returns only new products and price changes. No browser, fast and cheap.",
    "version": "0.1",
    "x-build-id": "GtYNEkaWnsOH4e02t"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/shelfdata~woolworths-au-product-search-catalog/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-shelfdata-woolworths-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~woolworths-au-product-search-catalog/runs": {
      "post": {
        "operationId": "runs-sync-shelfdata-woolworths-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~woolworths-au-product-search-catalog/run-sync": {
      "post": {
        "operationId": "run-sync-shelfdata-woolworths-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": [
              "categories",
              "category",
              "item",
              "search"
            ],
            "type": "string",
            "description": "What to collect: `search` (keyword), `category` (one shelf page by NodeId), `item` (one product with nutrition) or `categories` (the full category tree with NodeIds).",
            "default": "search"
          },
          "query": {
            "title": "Query",
            "minLength": 1,
            "maxLength": 200,
            "type": "string",
            "description": "Required for `search`. Start with a broad grocery keyword such as `milk`, then save separate tasks for each product family you monitor.",
            "default": "milk"
          },
          "page": {
            "title": "Page",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Woolworths page for `search` and `category` (36 products per page). Defaults to 1.",
            "default": 1
          },
          "categoryId": {
            "title": "Category ID",
            "pattern": "^[A-Za-z0-9_.-]+$",
            "maxLength": 128,
            "type": "string",
            "description": "Required for `category`: a NodeId from a `categories` run, e.g. `1_6E4F4E4` (Dairy, Eggs & Fridge)."
          },
          "itemId": {
            "title": "Item ID Alias",
            "pattern": "^\\d+$",
            "maxLength": 32,
            "type": "string",
            "description": "Optional for `item`. Alias for `productId`."
          },
          "productId": {
            "title": "Product ID",
            "pattern": "^\\d+$",
            "maxLength": 32,
            "type": "string",
            "description": "Required for `item` unless you provide a Woolworths product URL."
          },
          "url": {
            "title": "Product URL",
            "pattern": "^https://(?:www\\.)?woolworths\\.com\\.au/shop/productdetails/\\d+(?:[/?#].*)?$",
            "maxLength": 2048,
            "type": "string",
            "description": "Optional for `item`. Full Woolworths product URL alternative to `productId`."
          },
          "limit": {
            "title": "Result Limit",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Optional cap on dataset rows (you pay per row)."
          },
          "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 `woolworths-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 Woolworths. 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}