{
  "openapi": "3.0.1",
  "info": {
    "title": "Coles AU Product Scraper",
    "description": "Coles Australia grocery prices API: search, category shelves and specials (half price, multibuy, online only) with regular and special price, unit price, discount, availability, store prices, barcode, nutrition. Retries with residential AU fallback. Drop-in input.",
    "version": "1.0",
    "x-build-id": "Vn1AZf5H33opaAzEx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lagenuina_agency~coles-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lagenuina_agency-coles-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~coles-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lagenuina_agency-coles-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~coles-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lagenuina_agency-coles-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, half price, multibuy, online only, or within your categories); item = full details incl. barcode and nutrition; categories = category tree with IDs.",
            "default": "search"
          },
          "query": {
            "title": "Search keyword",
            "type": "string",
            "description": "Keyword or brand for the search operation, e.g. milk, Arnott's, 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"
            }
          },
          "special": {
            "title": "Specials type",
            "enum": [
              "allspecials",
              "halfprice",
              "multibuy",
              "onlineonly"
            ],
            "type": "string",
            "description": "For the specials operation (without categories).",
            "default": "allspecials"
          },
          "categoryId": {
            "title": "Category",
            "type": "string",
            "description": "For category (and specials within a category): category ID (e.g. 1300), slug (dairy-eggs-fridge), path (dairy-eggs-fridge/milk) or URL (https://www.coles.com.au/browse/dairy-eggs-fridge)."
          },
          "categoryIds": {
            "title": "More categories",
            "type": "array",
            "description": "Extra categories (ID, slug, path or URL), each scraped in the same run.",
            "items": {
              "type": "string"
            }
          },
          "categorySlug": {
            "title": "Category slug (alias)",
            "type": "string",
            "description": "Same as Category (kept for compatibility)."
          },
          "categoryUrl": {
            "title": "Category URL (alias)",
            "type": "string",
            "description": "Same as Category (kept for compatibility)."
          },
          "url": {
            "title": "Product URL",
            "type": "string",
            "description": "For item: full product URL, e.g. https://www.coles.com.au/product/coles-full-cream-milk-3l-8150288"
          },
          "productId": {
            "title": "Product ID",
            "type": "string",
            "description": "For item: Coles product ID, e.g. 8150288."
          },
          "itemId": {
            "title": "Item ID (alias)",
            "type": "string",
            "description": "Same as Product ID (kept for compatibility)."
          },
          "slug": {
            "title": "Product slug",
            "type": "string",
            "description": "For item: the last part of the product URL, e.g. coles-full-cream-milk-3l-8150288 (itemSlug is accepted too)."
          },
          "productIds": {
            "title": "More products (IDs, slugs or URLs)",
            "type": "array",
            "description": "For item: many products in one run.",
            "items": {
              "type": "string"
            }
          },
          "storeId": {
            "title": "Store ID",
            "type": "string",
            "description": "Optional Coles store number (e.g. 0584) for that store's prices and availability. Empty = Coles online default store."
          },
          "specialsOnly": {
            "title": "Only products on special",
            "type": "boolean",
            "description": "For search and category: return only products with a promotion (price drop, half price, multibuy).",
            "default": false
          },
          "limit": {
            "title": "Max products per keyword / category",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Pages are fetched automatically until this many products. Empty = one Coles page (about 48 products), as in other Coles actors."
          },
          "page": {
            "title": "Start page",
            "minimum": 1,
            "type": "integer",
            "description": "First Coles results page to read.",
            "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
          },
          "details": {
            "title": "Fetch full product details",
            "type": "boolean",
            "description": "One extra request per product for barcode (GTIN), ingredients, allergens, nutrition panel and country of origin.",
            "default": false
          },
          "includeRaw": {
            "title": "Include raw Coles data",
            "type": "boolean",
            "description": "Adds the original Coles 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 recommended. Blocked requests are retried through a fresh session and, if needed, automatically through residential Australian IPs.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}