{
  "openapi": "3.0.1",
  "info": {
    "title": "Canada Retail Prices: Loblaws, Sobeys, Canadian Tire & More",
    "description": "Compare Canada grocery prices and Canadian retail prices across Loblaws, No Frills, Sobeys, Voila, Canadian Tire, Home Depot Canada and Costco Canada. CAD price comparison, sales, PC Optimum or Scene offers, stock and aisles. $0.004 per product: 100 cost $0.40 + $0.005 setup. No login.",
    "version": "1.0",
    "x-build-id": "nX8zMHNeOo8zLTHq3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moggedhq~canada-retail-prices-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moggedhq-canada-retail-prices-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/moggedhq~canada-retail-prices-scraper/runs": {
      "post": {
        "operationId": "runs-sync-moggedhq-canada-retail-prices-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/moggedhq~canada-retail-prices-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-moggedhq-canada-retail-prices-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": {
          "retailers": {
            "title": "Retailers",
            "type": "array",
            "description": "Choose loblaws, nofrills, sobeys, voila, canadian-tire, home-depot-canada or costco-canada. Empty/default selection uses all. Sobeys is current regional flyers; Voila is regional online.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Search each selected retailer, such as coffee, milk, drill or paint. Costco matches product names in its public sitemap. Sobeys matches current flyer names. Clear this for IDs/URLs only.",
            "items": {
              "type": "string"
            }
          },
          "categoryUrls": {
            "title": "Category URLs",
            "type": "array",
            "description": "Public category links, routed to their retailer by hostname. Costco reads explicit product links; dynamic category grids can be unavailable.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Product, category or deals URLs",
            "type": "array",
            "description": "Public HTTPS links from supported retailers. Sobeys flyers use search terms and postal codes.",
            "items": {
              "type": "string"
            }
          },
          "productIds": {
            "title": "Product IDs",
            "type": "array",
            "description": "One retailer: plain source IDs. Multiple retailers: prefix with key, such as loblaws:20188873_EA or home-depot-canada:1001686659. IDs are not barcodes.",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Canadian postal codes",
            "type": "array",
            "description": "Complete postal codes. Used for each retailer unless a scoped store ID overrides it. Voila resolves a delivery region; Sobeys resolves a flyer region; Canadian Tire uses postal-area centroids. Takes precedence over locations.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Postal codes (family alias)",
            "type": "array",
            "description": "Used only when postalCodes is empty or absent. No canonical default is injected.",
            "items": {
              "type": "string"
            }
          },
          "storeIds": {
            "title": "Store IDs",
            "type": "array",
            "description": "One retailer: exact ID. Multiple retailers: prefix, such as loblaws:1050, canadian-tire:600. Voila requires a delivery-region UUID. Sobeys flyers do not accept physical store IDs.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerRetailer": {
            "title": "maxItemsPerRetailer",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Total unique product rows for each retailer, across its inputs and stores."
          },
          "maxItems": {
            "title": "maxItems",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Global limit across all retailers; whichever retailers return first consume it. Use enough room for each retailer."
          },
          "maxItemsPerSearch": {
            "title": "maxItemsPerSearch",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Optional limit per source and store, bounded by maxItemsPerRetailer."
          },
          "dealsOnly": {
            "title": "dealsOnly",
            "type": "boolean",
            "description": "Only public sales, priced flyer offers and conditional promotions.",
            "default": false
          },
          "includeDetails": {
            "title": "includeDetails",
            "type": "boolean",
            "description": "Add available specifications or descriptions; same product fee.",
            "default": false
          },
          "includeUnpriced": {
            "title": "includeUnpriced",
            "type": "boolean",
            "description": "Include unpriced metadata rows free. Off by default. Price comparisons should use numeric price rows.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Automatic default datacenter first, Canadian residential fallback. Explicit disable, groups, country or custom proxies are preserved.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}