{
  "openapi": "3.0.1",
  "info": {
    "title": "Woolworths Product Scraper | Prices & Nutrition",
    "description": "Extract Woolworths Australia products by keyword, URL, product code or category. Get prices, specials, ingredients, nutrition, ratings and store availability. Add weekly catalogue products or the store directory when needed.",
    "version": "0.3",
    "x-build-id": "c4eoL04E3UcSqPkxt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datascraperes~woolworths-products-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datascraperes-woolworths-products-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/datascraperes~woolworths-products-scraper/runs": {
      "post": {
        "operationId": "runs-sync-datascraperes-woolworths-products-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/datascraperes~woolworths-products-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-datascraperes-woolworths-products-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": {
          "searchTerms": {
            "title": "Search terms",
            "minItems": 0,
            "maxItems": 20,
            "uniqueItems": true,
            "type": "array",
            "description": "Up to 20 terms sent to the Woolworths online search. In weekly mode these are case-insensitive filters over flyer product names and stockcodes instead.",
            "items": {
              "type": "string",
              "minLength": 2,
              "maxLength": 100
            },
            "default": []
          },
          "urls": {
            "title": "Woolworths URLs or product codes",
            "maxItems": 20,
            "type": "array",
            "description": "Paste product, search, category or specials URLs, or numeric product codes, one per line. Online mode only. Use plain URLs; configure filters below.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1000
            },
            "default": []
          },
          "maxProducts": {
            "title": "Maximum products per search or link",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum unique products returned for each search term, category path or specials group. The limit applies separately to each source.",
            "default": 100
          },
          "includeProductDetails": {
            "title": "Include detailed product information",
            "type": "boolean",
            "description": "Add ingredients, nutrition, allergens, origin, images and other available details. Automatically enabled for a specific store or postcode. Direct product URLs always include details.",
            "default": true
          },
          "postcode": {
            "title": "Postcode (optional)",
            "pattern": "^([0-9]{4})?$",
            "type": "string",
            "description": "Four-digit Australian postcode for nearby store stock. The location is estimated from public stores in that postcode. Enables product details and nearby-stock lookup. Prices remain online prices unless you select a specific store under Advanced location. Leave empty to skip.",
            "default": ""
          },
          "brands": {
            "title": "Brands",
            "minItems": 0,
            "maxItems": 20,
            "uniqueItems": true,
            "type": "array",
            "description": "Optional brand terms. Multiple brands are matched as OR. Use the brand names shown on Woolworths product pages.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "default": []
          },
          "allergens": {
            "title": "Allergen filters",
            "minItems": 0,
            "maxItems": 20,
            "uniqueItems": true,
            "type": "array",
            "description": "Optional allergen terms such as Gluten Free or Dairy Free. Multiple terms are matched as OR.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "default": []
          },
          "lifestyle": {
            "title": "Dietary filters",
            "minItems": 0,
            "maxItems": 20,
            "uniqueItems": true,
            "type": "array",
            "description": "Optional lifestyle or dietary terms such as Vegan, Vegetarian or High Protein. Multiple terms are matched as OR.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "default": []
          },
          "healthStar": {
            "title": "Health star ratings",
            "minItems": 0,
            "maxItems": 20,
            "uniqueItems": true,
            "type": "array",
            "description": "Optional health star values such as 4, 4.5 or 5. Multiple values are matched as OR.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 10
            },
            "default": []
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc",
              "unit_price_asc",
              "unit_price_desc"
            ],
            "type": "string",
            "description": "Product order within each source.",
            "default": "relevance"
          },
          "includeUnavailable": {
            "title": "Include unavailable products",
            "type": "boolean",
            "description": "Include products that are currently unavailable in the anonymous default context. Leave false to keep only available products.",
            "default": false
          },
          "includeMarketplace": {
            "title": "Include Everyday Market products",
            "type": "boolean",
            "description": "Include Woolworths Everyday Market partner products. Leave false for a supermarket-only dataset; marketplace products can dominate price sorts.",
            "default": false
          },
          "includeRatings": {
            "title": "Include ratings",
            "type": "boolean",
            "description": "Fetch the public rating summary, review count and star distribution for each product. This adds one request per product.",
            "default": false
          },
          "storeQuery": {
            "title": "Store name, suburb or postcode",
            "type": "string",
            "description": "Optional store selection for store-specific prices. Enter a full store name, suburb or postcode; if several stores match, use one of the suggested full names and locations. Leave empty for the default online price context.",
            "default": ""
          },
          "storeNo": {
            "title": "Store number (advanced)",
            "type": "string",
            "description": "Optional alternative for integrations that already know a Woolworths store number. For normal use, search by store name, suburb or postcode above. Do not combine with store search.",
            "default": ""
          },
          "includeNearbyStores": {
            "title": "Include nearby store availability",
            "type": "boolean",
            "description": "For each product, add nearby stores with distance and in-store availability. Requires latitude and longitude and adds one request per product.",
            "default": false
          },
          "latitude": {
            "title": "Latitude",
            "type": "number",
            "description": "Latitude used for nearby store availability, for example -33.8697 for Sydney."
          },
          "longitude": {
            "title": "Longitude",
            "type": "number",
            "description": "Longitude used for nearby store availability, for example 151.2099 for Sydney."
          },
          "source": {
            "title": "What would you like to collect?",
            "enum": [
              "online",
              "weekly"
            ],
            "type": "string",
            "description": "Choose Online products for keywords and product links. Choose Weekly catalogue to collect products from the weekly flyer for the states selected below.",
            "default": "online"
          },
          "states": {
            "title": "States for the weekly catalogue",
            "minItems": 0,
            "maxItems": 5,
            "uniqueItems": true,
            "type": "array",
            "description": "For Weekly catalogue only. Choose states by their full names. Existing integrations may still send state abbreviations. Leave empty for online searches or the store directory.",
            "items": {
              "type": "string",
              "enumTitles": [
                "New South Wales",
                "Victoria",
                "Queensland",
                "Western Australia",
                "South Australia"
              ],
              "enumSuggestedValues": [
                "New South Wales",
                "Victoria",
                "Queensland",
                "Western Australia",
                "South Australia"
              ]
            },
            "default": []
          },
          "maxProductsPerRegion": {
            "title": "Maximum products per weekly region",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum flyer product records from each selected state catalogue.",
            "default": 300
          },
          "includeStoreDirectory": {
            "title": "Include national store directory",
            "type": "boolean",
            "description": "Add the public Woolworths Australia supermarket directory, including addresses, coordinates, facilities and trading hours.",
            "default": false
          },
          "categoryPaths": {
            "title": "Category URLs or paths",
            "minItems": 0,
            "maxItems": 20,
            "uniqueItems": true,
            "type": "array",
            "description": "Up to 20 public Woolworths category URLs or /shop/browse/... paths, for example /shop/browse/fruit-veg/fruit. Each path is resolved against the public category index. Existing integrations can keep this field; new users can paste links into Woolworths URLs instead.",
            "items": {
              "type": "string",
              "minLength": 2,
              "maxLength": 500
            },
            "default": []
          },
          "specials": {
            "title": "Specials groups",
            "minItems": 0,
            "maxItems": 2,
            "uniqueItems": true,
            "type": "array",
            "description": "Choose Half price or Everyday low price. Existing integrations may still use the original group identifiers.",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "Half price",
                "Everyday low price"
              ],
              "enumTitles": [
                "Half price",
                "Everyday low price"
              ]
            },
            "default": []
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}