{
  "openapi": "3.0.1",
  "info": {
    "title": "Woolworths Scraper: Australian Grocery Prices & Specials API",
    "description": "Woolworths scraper and API: woolworths.com.au grocery prices by keyword, category, specials list, stock code or URL. One row per product: name, brand, size, price, was price, unit price, special, barcode, stock, category, ingredients. $0.19 per 1,000, no start fee. Daily price monitoring.",
    "version": "1.0",
    "x-build-id": "GYwUjoz298qD8RQHa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rel8ble~woolworths-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rel8ble-woolworths-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/rel8ble~woolworths-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rel8ble-woolworths-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/rel8ble~woolworths-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rel8ble-woolworths-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": {
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Optional. List of keywords typed into the Woolworths search box, e.g. [\"milk\", \"tim tam\"]. A barcode (EAN/GTIN, e.g. \"9310199012717\") also works and returns that one product. Each keyword returns up to maxItems products. Give at least one of searchQueries, categories, specials, products or startUrls.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Optional. List of Woolworths category paths (the part after /shop/browse/ in a category URL) or full category URLs, e.g. [\"bakery\", \"dairy-eggs-fridge/milk\", \"https://www.woolworths.com.au/shop/browse/pantry\"]. \"all\" = every supermarket department, each product saved once (tens of thousands of products). One department is roughly 500-9,000 products.",
            "items": {
              "type": "string"
            }
          },
          "specials": {
            "title": "Specials list",
            "enum": [
              "none",
              "all",
              "halfprice",
              "onlineonly",
              "lowershelfprice",
              "everydaylowprice",
              "seasonalprice",
              "buymoresavemore"
            ],
            "type": "string",
            "description": "Optional. Woolworths specials list to scrape. One of: \"none\" (default, skip), \"all\" (every list below, each product saved once), \"halfprice\" (about 2,000 products), \"onlineonly\", \"lowershelfprice\", \"everydaylowprice\", \"seasonalprice\", \"buymoresavemore\". Woolworths starts new specials each Wednesday.",
            "default": "none"
          },
          "products": {
            "title": "Stock codes or product URLs",
            "type": "array",
            "description": "Optional. List of Woolworths stock codes or product page URLs to look up one by one, e.g. [\"88436\", \"https://www.woolworths.com.au/shop/productdetails/888140/woolworths-full-cream-milk\"]. Use this to re-check prices of known products. Lookups also return country of origin. A product that no longer exists is skipped and not charged.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Woolworths URLs",
            "type": "array",
            "description": "Optional. List of woolworths.com.au URLs as objects, e.g. [{\"url\": \"https://www.woolworths.com.au/shop/search/specials?searchTerm=coffee\"}]. Accepts search pages (/shop/search/products, /shop/search/specials), category pages (/shop/browse/...) and product pages (/shop/productdetails/...). A sortBy in the URL is kept; other URL filters are ignored.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max products per source",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Maximum products per keyword, category, specials list or URL, integer >= 0. Default 100; 0 = everything Woolworths lists. Two keywords with 100 = up to 200 results. You pay per product saved, so use 10-20 for a quick answer.",
            "default": 100
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "priceAsc",
              "priceDesc",
              "unitPriceAsc",
              "unitPriceDesc",
              "nameAsc",
              "nameDesc"
            ],
            "type": "string",
            "description": "Optional. Order of search and category results. One of: \"relevance\" (default, Woolworths' own order), \"priceAsc\", \"priceDesc\", \"unitPriceAsc\" (cheapest per litre/kg first), \"unitPriceDesc\", \"nameAsc\", \"nameDesc\". Combine with a small maxItems to get, for example, the 10 cheapest products for a keyword.",
            "default": "relevance"
          },
          "specialsOnly": {
            "title": "Search: products on special only",
            "type": "boolean",
            "description": "Optional boolean. true = each keyword in searchQueries returns only products that are on special right now. Default false (all products). Does not affect categories; use the specials field for whole specials lists.",
            "default": false
          },
          "includeNutrition": {
            "title": "Include nutrition panel",
            "type": "boolean",
            "description": "Optional boolean. true = add a nutrition object (per 100 g/mL and per serve: energy, protein, fat, carbohydrate, sugars, sodium...) to food products that have one. No extra requests and no extra cost. Default false to keep rows small.",
            "default": false
          },
          "excludeMarketplace": {
            "title": "Exclude Everyday Market products",
            "type": "boolean",
            "description": "Optional boolean. true = skip products sold by third-party sellers on Woolworths' Everyday Market (flagged isMarketplace), keeping only the supermarket range. Skipped products are not charged. Default false. Useful for keywords like \"coffee\" where marketplace appliances crowd the results.",
            "default": false
          },
          "includeSponsored": {
            "title": "Include promoted products",
            "type": "boolean",
            "description": "Optional boolean. Woolworths fills some slots on each page with promoted (paid) products, flagged isSponsored: true. Default true, because some products of a category only show up in those slots; every product is still saved once. false = organic results only.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Optional, advanced. Number of parallel requests, integer 1-20. Default 5. Leave unset unless the run is very large.",
            "default": 5
          },
          "maxRequestRetries": {
            "title": "Max retries per request",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Optional, advanced. Retries per failed or blocked request, integer 0-20; each retry uses a new proxy session. Default 8. Leave unset.",
            "default": 8
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional, advanced. Apify Proxy settings object. Default {\"useApifyProxy\": true} (datacenter proxies, the cheapest; they worked for every request in our tests). If Woolworths starts blocking, switch to {\"useApifyProxy\": true, \"apifyProxyGroups\": [\"RESIDENTIAL\"], \"apifyProxyCountry\": \"AU\"}. Leave unset.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}