{
  "openapi": "3.0.1",
  "info": {
    "title": "Quick Commerce & E-commerce Price Scraper",
    "description": "Live prices, MRP, discounts, stock and delivery times from Blinkit, Zepto, Instamart, BigBasket, DMart, JioMart, Amazon, Flipkart, Meesho, Noon Minutes, talabat mart and more, in India and the UAE. Search products, track item IDs or check delivery times.",
    "version": "1.0",
    "x-build-id": "acRXg0Z33wVglYSzL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/quickcommerceapi~quickcommerce-prices/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-quickcommerceapi-quickcommerce-prices",
        "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/quickcommerceapi~quickcommerce-prices/runs": {
      "post": {
        "operationId": "runs-sync-quickcommerceapi-quickcommerce-prices",
        "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/quickcommerceapi~quickcommerce-prices/run-sync": {
      "post": {
        "operationId": "run-sync-quickcommerceapi-quickcommerce-prices",
        "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": [
          "latitude",
          "longitude"
        ],
        "properties": {
          "mode": {
            "title": "What to fetch",
            "enum": [
              "search",
              "items",
              "eta"
            ],
            "type": "string",
            "description": "<b>search</b>: every product each platform returns for your queries (one row per product).<br><b>items</b>: live price and stock for specific item IDs or product URLs (one row per item).<br><b>eta</b>: delivery time and store status per platform at your location (one row per platform).",
            "default": "search"
          },
          "queries": {
            "title": "Search queries",
            "type": "array",
            "description": "Product searches for the search mode, for example 'amul butter 100g' or 'aashirvaad atta 5kg'. Each query is searched on every selected platform. Specific queries (brand + pack size) give the best matches.",
            "items": {
              "type": "string"
            }
          },
          "platforms": {
            "title": "Platforms",
            "type": "array",
            "description": "Stores to query. <b>India</b>: BlinkIt, Zepto, Swiggy (Instamart), BigBasket, DMart, JioMart, Minutes (Flipkart Minutes), Amazon, Nykaa, Myntra, Flipkart, Meesho, plus the electronics stores RelianceDigital, Croma, Vivo and OnePlus (items only). <b>UAE</b>: NoonMinutes (Noon Minutes) and TalabatMart (talabat mart), priced in AED. Delivery ETA: the quick commerce apps in both countries. Platforms that don't support the chosen mode are skipped. Pick platforms from one country per run, since the location must be in that country. <b>DMart, JioMart and Minutes need a pincode.</b>",
            "items": {
              "type": "string",
              "enum": [
                "BlinkIt",
                "Zepto",
                "Swiggy",
                "BigBasket",
                "DMart",
                "JioMart",
                "Minutes",
                "Amazon",
                "Nykaa",
                "Myntra",
                "Flipkart",
                "Meesho",
                "NoonMinutes",
                "TalabatMart",
                "RelianceDigital",
                "Croma",
                "Vivo",
                "OnePlus"
              ],
              "enumTitles": [
                "Blinkit",
                "Zepto",
                "Swiggy Instamart",
                "BigBasket",
                "DMart (needs pincode)",
                "JioMart (needs pincode)",
                "Flipkart Minutes (needs pincode)",
                "Amazon",
                "Nykaa",
                "Myntra",
                "Flipkart",
                "Meesho",
                "Noon Minutes (UAE)",
                "talabat mart (UAE)",
                "Reliance Digital (items only)",
                "Croma (items only)",
                "vivo (items only)",
                "OnePlus (items only)"
              ]
            },
            "default": [
              "BlinkIt",
              "Zepto"
            ]
          },
          "itemIds": {
            "title": "Item IDs or product URLs",
            "type": "array",
            "description": "For the items mode. Write each entry as <code>Platform:itemId</code> (for example <code>BlinkIt:362674</code>, <code>Croma:317418</code>, <code>OnePlus:P1120230:5011122818</code>), paste a product URL from any supported store, or select exactly one platform and enter bare IDs. Item IDs are the <code>productId</code> values from search results.",
            "items": {
              "type": "string"
            }
          },
          "latitude": {
            "title": "Latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Delivery location latitude. Quick commerce prices, stock and ETAs depend on the nearest dark store. Examples: 12.9021 (HSR Layout, Bengaluru), 25.0772 (Dubai Marina)."
          },
          "longitude": {
            "title": "Longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Delivery location longitude. Examples: 77.6639 (HSR Layout, Bengaluru), 55.1403 (Dubai Marina)."
          },
          "pincode": {
            "title": "Pincode",
            "pattern": "^[1-9][0-9]{5}$",
            "type": "string",
            "description": "India only: 6-digit PIN code of the delivery location. <b>Required for DMart, JioMart and Minutes (Flipkart Minutes)</b>; also used for Croma and Reliance Digital pricing. Optional for the other Indian platforms. Leave empty for the UAE."
          },
          "maxResultsPerPlatform": {
            "title": "Max products per platform",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Search mode only: keep at most this many products per platform and query, in the platform's own ranking order. Search is charged per result, so this also caps the cost.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}