{
  "openapi": "3.0.1",
  "info": {
    "title": "Compare US Grocery Prices: Kroger, Costco, Safeway, ALDI by ZIP",
    "description": "US grocery prices by ZIP across 33 chains: Kroger, Ralphs, Fred Meyer, Costco, Safeway, ALDI, Meijer, CVS and more. One run takes many searches, chains and ZIPs: price, regular and card price, unit price, stock and link per product, plus a free comparison and price changes.",
    "version": "0.1",
    "x-build-id": "CeZZuacZjEo4t57zh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zaiq~grocery-price-compare/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zaiq-grocery-price-compare",
        "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/zaiq~grocery-price-compare/runs": {
      "post": {
        "operationId": "runs-sync-zaiq-grocery-price-compare",
        "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/zaiq~grocery-price-compare/run-sync": {
      "post": {
        "operationId": "run-sync-zaiq-grocery-price-compare",
        "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": [
          "searches",
          "zipCodes"
        ],
        "properties": {
          "searches": {
            "title": "Search terms",
            "type": "array",
            "description": "Type grocery searches such as milk, eggs or oat milk, one per line. Use specific names and sizes for a tighter comparison. Up to 20 searches.",
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "US ZIP codes",
            "type": "array",
            "description": "Type five-digit US ZIP codes, one per line, such as 60601. Each chain uses the nearby store or shop serving that ZIP. Unavailable chains are reported. Up to 10 ZIPs.",
            "items": {
              "type": "string"
            }
          },
          "chains": {
            "title": "Chains and banners",
            "type": "array",
            "description": "Select one or more chains. Every selected chain is checked for every ZIP and search. Kroger banners use store websites; other banners use Instacart. Regional chains may not serve your ZIP.",
            "items": {
              "type": "string",
              "enum": [
                "kroger",
                "ralphs",
                "fredmeyer",
                "kingsoopers",
                "harristeeter",
                "frys",
                "smiths",
                "dillons",
                "qfc",
                "food4less",
                "marianos",
                "picknsave",
                "costco",
                "aldi",
                "safeway",
                "albertsons",
                "vons",
                "jewel-osco",
                "acme-markets",
                "tom-thumb",
                "randalls",
                "pavilions",
                "haggen",
                "foodlion",
                "meijer",
                "sprouts",
                "bjs",
                "cvs",
                "walgreens",
                "dollargeneral",
                "dollar-tree",
                "family-dollar",
                "totalwine"
              ],
              "enumTitles": [
                "Kroger",
                "Ralphs",
                "Fred Meyer",
                "King Soopers",
                "Harris Teeter",
                "Fry's",
                "Smith's",
                "Dillons",
                "QFC",
                "Food 4 Less",
                "Mariano's",
                "Pick 'n Save",
                "Costco",
                "ALDI US",
                "Safeway",
                "Albertsons",
                "Vons",
                "Jewel-Osco",
                "ACME Markets",
                "Tom Thumb",
                "Randalls",
                "Pavilions",
                "Haggen",
                "Food Lion",
                "Meijer",
                "Sprouts",
                "BJ's Wholesale",
                "CVS",
                "Walgreens",
                "Dollar General",
                "Dollar Tree",
                "Family Dollar",
                "Total Wine"
              ]
            },
            "default": [
              "costco",
              "aldi",
              "jewel-osco",
              "meijer",
              "cvs",
              "walgreens"
            ]
          },
          "maxProductsPerChain": {
            "title": "Product cap per chain, search and ZIP",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Type the most product rows to return per chain for each search at each ZIP. Default 20, maximum 500. Kroger pages expose at most 24. Only delivered rows are charged.",
            "default": 20
          },
          "trackPrices": {
            "title": "Track price changes",
            "type": "boolean",
            "description": "Leave on to compare prices with your last run for the same chain, store, ZIP and fulfillment. Adds priceDropped, priceRose and newProduct at no extra charge.",
            "default": true
          },
          "trackingName": {
            "title": "Optional tracking list name",
            "type": "string",
            "description": "Type a short name such as weekly-milk to keep a separate price history. Leave blank for the default history. Run one job at a time per history."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}