{
  "openapi": "3.0.1",
  "info": {
    "title": "Loblaws, Superstore, No Frills, Maxi & 8 More — Grocery Prices",
    "description": "Canadian grocery prices from all 12 Loblaw banners and 1,107 stores, priced at the individual store by postal code. 67 fields per product: UPC barcodes, stock status, PC Optimum member prices, promo expiry dates, nutrition and ingredients. Many chains and stores in one run. No API key, no browser.",
    "version": "0.1",
    "x-build-id": "NFts5Z3155uYhTQrf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/arpitgandhi1934~loblaws-grocery-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-arpitgandhi1934-loblaws-grocery-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/arpitgandhi1934~loblaws-grocery-scraper/runs": {
      "post": {
        "operationId": "runs-sync-arpitgandhi1934-loblaws-grocery-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/arpitgandhi1934~loblaws-grocery-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-arpitgandhi1934-loblaws-grocery-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": {
          "banners": {
            "title": "🛒 Stores (banners)",
            "type": "array",
            "description": "One or more Loblaw banners. Pick several to compare the same products across chains in one run — a banner with no store near your postal code is skipped with a note.",
            "items": {
              "type": "string",
              "enum": [
                "superstore",
                "nofrills",
                "loblaw",
                "zehrs",
                "fortinos",
                "valumart",
                "independent",
                "independentcitymarket",
                "provigo",
                "maxi",
                "wholesaleclub",
                "rass"
              ],
              "enumTitles": [
                "Real Canadian Superstore",
                "No Frills",
                "Loblaws",
                "Zehrs",
                "Fortinos",
                "Valu-mart",
                "Your Independent Grocer",
                "Independent City Market",
                "Provigo",
                "Maxi",
                "Wholesale Club",
                "Atlantic Superstore"
              ]
            }
          },
          "search_terms": {
            "title": "🔎 Search terms",
            "type": "array",
            "description": "Products to look up, e.g. \"eggs\", \"chicken breast\", \"no name\". Use French terms for Maxi and Provigo for the best matches (\"lait\", \"oeufs\").",
            "items": {
              "type": "string"
            }
          },
          "postal_code": {
            "title": "📍 Postal code",
            "type": "string",
            "description": "Canadian postal code. Prices come from the nearest store of each banner. Leave blank to use a default store."
          },
          "all_products": {
            "title": "Entire store",
            "type": "boolean",
            "description": "Scrape every product the store carries (tens of thousands of items, takes a while). Search terms are optional when this is on.",
            "default": false
          },
          "include_details": {
            "title": "Nutrition, ingredients & category",
            "type": "boolean",
            "description": "Also fetch each product's detail: full category path, nutrition facts, ingredients, GTIN barcode, average weight and size variants. One extra request per product — slower, much richer.",
            "default": false
          },
          "on_sale_only": {
            "title": "Sale items only",
            "type": "boolean",
            "description": "Keep only products that are on sale or have a multi-buy deal right now.",
            "default": false
          },
          "group_variants": {
            "title": "Group size variants",
            "type": "boolean",
            "description": "Collapse the sizes of one product (e.g. olive oil in 500 ml, 1 L and 3 L, or a shirt in S/M/L) into one row with a variants list of each size, price and stock. No extra requests.",
            "default": false
          },
          "max_items_per_search": {
            "title": "Max products per search term",
            "minimum": 1,
            "maximum": 9750,
            "type": "integer",
            "description": "Upper limit for each search term, per store.",
            "default": 500
          },
          "max_items": {
            "title": "Max products in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the whole run after this many products. 0 = no limit.",
            "default": 0
          },
          "stores_per_banner": {
            "title": "Nearest stores per banner",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Price the nearest N stores of each banner (1–10) — useful for comparing stores in one city.",
            "default": 1
          },
          "locationId": {
            "title": "Store ID",
            "type": "string",
            "description": "Price one exact store instead of the nearest one (overrides postal code). Works with a single banner. Example: 1517 is Real Canadian Superstore Marine Drive, Vancouver; every row reports its store ID."
          },
          "language": {
            "title": "Language",
            "enum": [
              "auto",
              "en",
              "fr"
            ],
            "type": "string",
            "description": "Product names and descriptions. Auto = French for Maxi and Provigo, English for the rest.",
            "default": "auto"
          },
          "include_sponsored": {
            "title": "Include sponsored placements",
            "type": "boolean",
            "description": "The storefront mixes paid product ads into search results (often unrelated to your term). Off by default; turn on to keep them, flagged with is_sponsored.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed for normal runs. Enable if you run very large or very frequent scrapes.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}