{
  "openapi": "3.0.1",
  "info": {
    "title": "Woolworths AU Product Scraper",
    "description": "Woolworths Australia grocery prices API: search products, category shelves and weekly specials with regular and special price, unit price, discount %, multibuy offers, availability, barcode, images, ingredients and nutrition. Many keywords per run with auto-pagination. Drop-in compatible input.",
    "version": "1.0",
    "x-build-id": "RjmzpJmFPBjxQq2tC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lagenuina_agency~woolworths-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lagenuina_agency-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/lagenuina_agency~woolworths-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lagenuina_agency-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/lagenuina_agency~woolworths-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lagenuina_agency-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": {
          "operation": {
            "title": "Operation",
            "enum": [
              "search",
              "category",
              "specials",
              "item",
              "categories"
            ],
            "type": "string",
            "description": "search = products for each keyword; category = all products of a category; specials = products on special (all departments, or only the categories you give); item = full details of known products; categories = category tree with IDs.",
            "default": "search"
          },
          "query": {
            "title": "Search keyword",
            "type": "string",
            "description": "Keyword or brand for the search operation, e.g. milk, Tim Tam, nappies."
          },
          "searchTerms": {
            "title": "More search keywords",
            "type": "array",
            "description": "Extra keywords, each searched separately in the same run (results tagged with search_query).",
            "items": {
              "type": "string"
            }
          },
          "categoryId": {
            "title": "Category",
            "type": "string",
            "description": "For category and specials: category ID (e.g. 1_6E4F4E4), slug (dairy-eggs-fridge) or URL (https://www.woolworths.com.au/shop/browse/dairy-eggs-fridge). Subcategories work too."
          },
          "categoryIds": {
            "title": "More categories",
            "type": "array",
            "description": "Extra categories (ID, slug or URL), each scraped in the same run.",
            "items": {
              "type": "string"
            }
          },
          "productId": {
            "title": "Product ID",
            "type": "string",
            "description": "For item: Woolworths stock code, e.g. 888140."
          },
          "itemId": {
            "title": "Item ID (alias)",
            "type": "string",
            "description": "Same as Product ID (kept for compatibility)."
          },
          "url": {
            "title": "Product URL",
            "type": "string",
            "description": "For item: full product URL, e.g. https://www.woolworths.com.au/shop/productdetails/888140/..."
          },
          "productIds": {
            "title": "More products (IDs or URLs)",
            "type": "array",
            "description": "For item: many stock codes or product URLs in one run.",
            "items": {
              "type": "string"
            }
          },
          "specialsOnly": {
            "title": "Only products on special",
            "type": "boolean",
            "description": "Return only discounted products (half price, price drops, specials) for search and category.",
            "default": false
          },
          "sortType": {
            "title": "Sort by",
            "enum": [
              "TraderRelevance",
              "PriceAsc",
              "PriceDesc",
              "CUPAsc",
              "CUPDesc",
              "Name"
            ],
            "type": "string",
            "description": "Sort order used by Woolworths for search and category results.",
            "default": "TraderRelevance"
          },
          "limit": {
            "title": "Max products per keyword / category",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Pages are fetched automatically until this many products. Empty = one page (36 products), as in other Woolworths actors."
          },
          "page": {
            "title": "Start page",
            "minimum": 1,
            "type": "integer",
            "description": "First Woolworths results page to read (36 products per page).",
            "default": 1
          },
          "maxItems": {
            "title": "Max results in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the whole run after this many results. 0 = no total limit.",
            "default": 0
          },
          "includeDetails": {
            "title": "Fetch full product details",
            "type": "boolean",
            "description": "One extra request per product for the full nutrition panel, country of origin and all images. Barcode, ingredients, allergens and basic nutrition are already included without it.",
            "default": false
          },
          "includeRaw": {
            "title": "Include raw Woolworths data",
            "type": "boolean",
            "description": "Adds the original Woolworths JSON of each product in a raw field.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Parallel keywords / categories",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many keywords or categories are scraped at the same time.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy is recommended; requests are retried through a fresh session when blocked.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}