{
  "openapi": "3.0.1",
  "info": {
    "title": "Woolworths Australia Products Scraper",
    "description": "Collect public Woolworths Australia grocery products, prices, unit prices, specials, stock, ingredients and nutrition for price analysis.",
    "version": "0.1",
    "x-build-id": "xqvNeW5ULqer2y5UC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fetch_cat~woolworths-australia-products-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fetch_cat-woolworths-australia-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/fetch_cat~woolworths-australia-products-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fetch_cat-woolworths-australia-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/fetch_cat~woolworths-australia-products-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fetch_cat-woolworths-australia-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": "Grocery search terms",
            "maxItems": 20,
            "type": "array",
            "description": "Up to 20 keywords, each 1–200 characters. If neither searchTerms nor startUrls is supplied, the Actor searches milk. An explicitly empty target set is rejected.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "startUrls": {
            "title": "Public URLs or product codes",
            "maxItems": 50,
            "type": "array",
            "description": "Up to 50 Woolworths Australia HTTPS search, category (/shop/browse/...), curated collection (/shop/productgroup/...) or product URLs, or numeric product codes. URL pageNumber and supported sortBy are respected. No account or checkout pages.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1000
            }
          },
          "sortBy": {
            "title": "Source ordering",
            "enum": [
              "relevance",
              "priceAsc",
              "priceDesc",
              "name",
              "unitPriceAsc"
            ],
            "type": "string",
            "description": "Woolworths ordering within each listing; promoted products can be inserted outside the organic order. Unit-price ordering can narrow the source result set to comparable-unit products.",
            "default": "relevance"
          },
          "specialsOnly": {
            "title": "Specials only",
            "type": "boolean",
            "description": "Keep products explicitly flagged on special by Woolworths; includes its promotional classifications, not a guarantee of lower historical prices. Source filter plus post-validation; filtered products are not billed.",
            "default": false
          },
          "includeMarketplace": {
            "title": "Include Everyday Market products",
            "type": "boolean",
            "description": "Include third-party marketplace products returned by the selected source listing. Off excludes those rows; this does not enumerate all sellers or all offers.",
            "default": false
          },
          "minPrice": {
            "title": "Minimum price AUD",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Optional inclusive minimum current price. Filtering occurs before saving or billing. Must not exceed maxPrice."
          },
          "maxPrice": {
            "title": "Maximum price AUD",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Optional inclusive maximum current price. Products with unknown prices do not pass a price range filter."
          },
          "includeReviews": {
            "title": "Include public customer reviews",
            "type": "boolean",
            "description": "Optional/default off. Adds an explicitly priced review-enrichment event per saved product with a completed lookup, even if the review service confirms zero reviews. Returns public review text, rating, date and source, not member identity. No login.",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Reviews per product",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum public reviews in each enriched product. One bounded request per product, at most 100 reviews. reviewsTruncated indicates more reviews exist; no full-review-history claim.",
            "default": 20
          },
          "baselineDatasetId": {
            "title": "Previous matching snapshot dataset",
            "pattern": "^[A-Za-z0-9]{17}$",
            "type": "string",
            "description": "Optional 17-character ID of a public or explicitly authorized dataset from this Actor, with the same target/filter scope and at most 10000 products. Returns new/updated/unchanged and changedFields. Never infers disappearance or activates a schedule. Inaccessible or incompatible baselines fail rather than silently resetting history."
          },
          "maxItems": {
            "title": "Maximum saved products",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Global unique product cap. All targets share this cap and the buyer charge limit; unscanned targets/pages are reported as capped. Filtered and duplicate rows are not billed.",
            "default": 100
          },
          "maxPages": {
            "title": "Maximum pages per listing",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Bound for each search, category or collection. Default 200. Results are not claimed complete if this limit is reached. Independent 5000-request and processing deadline limits also apply.",
            "default": 200
          },
          "maxSeconds": {
            "title": "Maximum processing seconds",
            "minimum": 15,
            "maximum": 1800,
            "type": "integer",
            "description": "Independent application deadline, 15–1800 seconds, even if the platform timeout is increased or disabled. A reached deadline fails incomplete extraction while preserving already saved rows. Resurrection does not restart extraction; start a new run instead.",
            "default": 300
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}