{
  "openapi": "3.0.1",
  "info": {
    "title": "Coles Australia Product, Specials & Price Scraper",
    "description": "Coles Australia products, prices and specials: search, category shelves, half-price and multi-buy specials, single products with GTIN, nutrition and ingredients, full category tree. Price monitoring mode returns only new products and price changes.",
    "version": "0.1",
    "x-build-id": "0MwJW4gfsF3TR59qr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/shelfdata~coles-au-product-search-specials/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-shelfdata-coles-au-product-search-specials",
        "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/shelfdata~coles-au-product-search-specials/runs": {
      "post": {
        "operationId": "runs-sync-shelfdata-coles-au-product-search-specials",
        "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/shelfdata~coles-au-product-search-specials/run-sync": {
      "post": {
        "operationId": "run-sync-shelfdata-coles-au-product-search-specials",
        "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",
        "required": [
          "operation"
        ],
        "properties": {
          "operation": {
            "title": "Operation",
            "enum": [
              "search",
              "category",
              "specials",
              "item",
              "categories",
              "search_filters",
              "specials_filters"
            ],
            "type": "string",
            "description": "What to collect. `search`, `category` and `specials` return one native Coles page of products; `item` returns one product with GTIN, nutrition and ingredients; `categories` returns the full category tree; `search_filters` / `specials_filters` return the filter values (brands, allergens, dietary, specials) of a listing.",
            "default": "search"
          },
          "query": {
            "title": "Search keyword",
            "type": "string",
            "description": "Keyword for `search` and `search_filters`.",
            "default": "milk"
          },
          "page": {
            "title": "Native Coles page",
            "minimum": 1,
            "type": "integer",
            "description": "One-based Coles page for `search`, `category` and `specials` (48 results per page plus featured tiles).",
            "default": 1
          },
          "limit": {
            "title": "Max rows",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap on the rows returned from the page. Not a page size."
          },
          "categorySlug": {
            "title": "Category path",
            "type": "string",
            "description": "For `category`: a Coles browse path such as `dairy-eggs-fridge` or `dairy-eggs-fridge/milk` (run `categories` to list them)."
          },
          "categoryUrl": {
            "title": "Category URL",
            "type": "string",
            "description": "For `category`: a full https://www.coles.com.au/browse/... URL."
          },
          "categoryId": {
            "title": "Category id",
            "type": "string",
            "description": "For `category`: a Coles category id from `categories` (costs one extra request)."
          },
          "special": {
            "title": "Specials view",
            "enum": [
              "allspecials",
              "halfprice",
              "multibuy",
              "onlineonly"
            ],
            "type": "string",
            "description": "For `specials` and `specials_filters`.",
            "default": "allspecials"
          },
          "itemId": {
            "title": "Product id",
            "type": "string",
            "description": "For `item`: numeric Coles product id, e.g. 8150288."
          },
          "productId": {
            "title": "Product id (alias)",
            "type": "string",
            "description": "Alias of Product id."
          },
          "itemSlug": {
            "title": "Product slug",
            "type": "string",
            "description": "For `item`: e.g. `coles-full-cream-milk-3l-8150288`."
          },
          "slug": {
            "title": "Product slug (alias)",
            "type": "string",
            "description": "Alias of Product slug."
          },
          "url": {
            "title": "Coles URL",
            "type": "string",
            "description": "A full Coles /product/ URL for `item` or /browse/ URL for `category`."
          },
          "refresh": {
            "title": "Refresh categories",
            "type": "boolean",
            "description": "Accepted for compatibility; categories are always read live.",
            "default": false
          },
          "onlyPriceChanges": {
            "title": "Only new products and price changes",
            "type": "boolean",
            "description": "For scheduled price monitoring: remembers every product's last regular and special price (in a key-value store named `coles-price-state` in your account) and returns only products not seen before or whose price changed, with `change`, `previousPrice` and `previousDiscountPrice`. The first run is the baseline.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "maxLength": 60,
            "type": "string",
            "description": "Keeps separate price memories for different monitoring tasks.",
            "default": "default"
          },
          "proxySource": {
            "title": "Proxy",
            "enum": [
              "owner",
              "apify_residential",
              "custom_pool"
            ],
            "type": "string",
            "description": "Built-in uses Apify datacenter proxy, which works for Coles. Apify Residential uses residential exits in the country below. Custom uses your own proxy list.",
            "default": "owner"
          },
          "apifyProxyCountry": {
            "title": "Residential proxy country",
            "type": "string",
            "description": "Two-letter country for Apify Residential.",
            "default": "AU"
          },
          "apifyProxySessions": {
            "title": "Proxy sessions",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "Number of sticky proxy sessions (one exit each) for the built-in and residential proxies.",
            "default": 6
          },
          "customProxyUrls": {
            "title": "My proxy list (secret)",
            "type": "string",
            "description": "For `custom_pool`: one http(s)://user:password@host:port per line (semicolons or a JSON array also work)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}