{
  "openapi": "3.0.1",
  "info": {
    "title": "Coles Products Scraper",
    "description": "Coles Products Scraper SD - Coles Products Scraper is a logged-out tool that extracts Coles Australia products from searches, categories, specials and product pages: price, was price, specials, unit price, stock by store, category, images, barcode, ingredients and nutrition.",
    "version": "1.0",
    "x-build-id": "q0NWLsiMEk6bJvWS7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~coles-products-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-coles-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/neuro-scraper~coles-products-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-coles-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/neuro-scraper~coles-products-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-coles-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",
            "type": "array",
            "description": "Coles product searches, one per line. Every result page is read (48 products per page) until Max items or the end of the results. Example: milk",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Coles URLs",
            "type": "array",
            "description": "Any mix of Coles links: a search (https://www.coles.com.au/search/products?q=milk), a category (https://www.coles.com.au/browse/dairy-eggs-fridge/milk), the specials pages (https://www.coles.com.au/on-special or ...?filter_Special=halfprice) or a product (https://www.coles.com.au/product/coles-full-cream-milk-3l-8150288).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "skuList": {
            "title": "Product IDs",
            "type": "array",
            "description": "Coles product numbers (the digits at the end of a product URL), one per line - each is read from its product page with full details. Example: 8150288",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Coles category paths as they appear after /browse/ in the address bar, one per line - every product of the category is read page by page. Examples: dairy-eggs-fridge, dairy-eggs-fridge/milk, fruit-vegetables, pantry, frozen, drinks.",
            "items": {
              "type": "string"
            }
          },
          "specials": {
            "title": "Specials",
            "enum": [
              "none",
              "allspecials",
              "halfprice",
              "multibuy",
              "onlineonly"
            ],
            "type": "string",
            "description": "Also read Coles' specials list: all specials, half price, multi-buy deals or online-only specials (the choice is checked against Coles' own Special filter list on every run).",
            "default": "none"
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "priceAscending",
              "priceDescending",
              "unitPriceAscending"
            ],
            "type": "string",
            "description": "Coles' own sort for search, category and specials lists (the options of Coles' list menu; Coles has no name sort for lists). Default = each list's own Coles order (search: relevance, specials: recommended).",
            "default": "relevance"
          },
          "storeId": {
            "title": "Coles store number",
            "type": "string",
            "description": "Optional. Prices, stock (available quantity) and availability of this Coles store. The store number, with or without the COL: prefix. Example: 7842 (Coles Collingwood). Stores without an online range (e.g. Coles Central Melbourne CBD, 0671) are refused with an error. Empty = Coles' default online store.",
            "default": ""
          },
          "postcode": {
            "title": "Postcode",
            "type": "string",
            "description": "Optional. Use the nearest Coles store with an online range to this Australian postcode or suburb (looked up with Coles' own store finder). Example: 3000",
            "default": ""
          },
          "storeIds": {
            "title": "Several stores (store numbers)",
            "type": "array",
            "description": "Optional. Compare stores: every search / category / URL is read once per store, and every row names its store. Store numbers, one per line. Example: 7842",
            "items": {
              "type": "string"
            }
          },
          "postcodes": {
            "title": "Several stores (postcodes)",
            "type": "array",
            "description": "Optional. Like several stores, but each postcode or suburb picks its nearest Coles store with an online range. Examples: 2000, 3000, 4000",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Include product details",
            "type": "boolean",
            "description": "Open every product page for barcode (GTIN), ingredients, allergens, dietary flags, nutrition panel, country of origin, storage instructions, dimensions and the long description. One extra request per product (slower).",
            "default": false
          },
          "includeDescription": {
            "title": "Include product description",
            "type": "boolean",
            "description": "Add Coles' long product description (read from the product page - one extra request per product, like product details). The short description is always included.",
            "default": false
          },
          "onSpecialOnly": {
            "title": "Only products on special",
            "type": "boolean",
            "description": "Keep only products that are on special (checked by this Actor on every product read).",
            "default": false
          },
          "inStockOnly": {
            "title": "Only products in stock",
            "type": "boolean",
            "description": "Keep only products Coles shows as available at the chosen store (checked by this Actor).",
            "default": false
          },
          "maxPrice": {
            "title": "Maximum price (AUD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only products at or below this price (checked by this Actor). 0 = no maximum. Example: 10",
            "default": 0
          },
          "minDiscountPercent": {
            "title": "Minimum discount %",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only products discounted by at least this percent off the was price (checked by this Actor). 0 = no minimum. Example: 40",
            "default": 0
          },
          "monitorMode": {
            "title": "Monitor mode",
            "enum": [
              "snapshot",
              "changes"
            ],
            "type": "string",
            "description": "Changes: compare every product with the last run of the same watchlist (Watchlist name) and tag it new / price_down / price_up / special_change / stock_change / unchanged, with the previous price.",
            "default": "snapshot"
          },
          "onlyChanged": {
            "title": "Only output changed rows",
            "type": "boolean",
            "description": "With monitor mode Changes: output (and charge) only products that are new or changed since the last run.",
            "default": false
          },
          "stateName": {
            "title": "Watchlist name",
            "type": "string",
            "description": "Name of the saved state monitor mode compares with (a named key-value store in your account). Use one name per watchlist. Example: weekly-dairy",
            "default": "default"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of products in total. Lists are read 48 products per page, page after page, until this number is reached or Coles has no more. Example: 100",
            "default": 50
          },
          "maxItemsPerTarget": {
            "title": "Max items per search / category",
            "minimum": 0,
            "type": "integer",
            "description": "Optional limit per search term, category or URL. 0 = only Max items applies. Example: 30",
            "default": 0
          },
          "maxRequestsPerCrawl": {
            "title": "Max page requests",
            "minimum": 0,
            "type": "integer",
            "description": "Safety limit on requests to Coles (list pages, product pages, store lookups). 0 = no limit. Example: 200",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Coles' Imperva firewall answers only Australian visitors with data, so an Australian residential proxy is the default (measured: other countries get a bot-check page).",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "AU"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}