{
  "openapi": "3.0.1",
  "info": {
    "title": "Zomato Restaurant Reviews Scraper",
    "description": "Scrape Zomato restaurant reviews at scale - ratings, full review text, reviewer, owner responses, plus a per-restaurant lead record (phone, address, geo, cuisines, cost, rating). Paste restaurant URLs, city/locality listing URLs, or IDs. Filter by rating/date; export JSON/CSV.",
    "version": "1.0",
    "x-build-id": "E5tm8Bqp44b7w15QF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/factden~zomato-restaurant-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-factden-zomato-restaurant-reviews-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/factden~zomato-restaurant-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-factden-zomato-restaurant-reviews-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/factden~zomato-restaurant-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-factden-zomato-restaurant-reviews-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": {
          "mode": {
            "title": "🎯 Mode",
            "enum": [
              "reviews",
              "discovery"
            ],
            "type": "string",
            "description": "**Reviews** (default): paste restaurant page URLs or bare IDs below and get every review + a lead record for each. **Discovery**: paste a city/locality/collection listing URL and the actor finds every restaurant on it, then scrapes each one's reviews + lead record. Only the selected mode's input is used.",
            "default": "reviews"
          },
          "startUrls": {
            "title": "🍽️ Restaurant URLs or IDs",
            "maxItems": 500,
            "type": "array",
            "description": "**Reviews mode.** Paste one input per line: a **restaurant** page URL (e.g. `https://www.zomato.com/ncr/warehouse-cafe-connaught-place-new-delhi`) or a bare numeric **restaurant ID** (e.g. `301605`).",
            "items": {
              "type": "string"
            }
          },
          "city": {
            "title": "🏙️ City",
            "enum": [
              "",
              "ncr",
              "mumbai",
              "bangalore",
              "hyderabad",
              "chennai",
              "kolkata",
              "pune",
              "ahmedabad",
              "jaipur",
              "chandigarh",
              "lucknow",
              "kochi",
              "goa",
              "indore",
              "nagpur",
              "coimbatore",
              "surat",
              "kanpur",
              "nashik",
              "vadodara",
              "bhopal",
              "visakhapatnam",
              "amritsar",
              "guwahati",
              "mysore",
              "mangalore",
              "dubai",
              "abu-dhabi",
              "sharjah"
            ],
            "type": "string",
            "description": "**Discovery mode.** Pick a city and the actor builds its Zomato restaurants listing and paginates it for you. For a specific locality, collection, or a city not listed here, leave this empty and paste a URL into **City / locality listing URLs** below instead.",
            "default": ""
          },
          "cuisine": {
            "title": "🍜 Cuisine (optional)",
            "enum": [
              "",
              "north-indian",
              "south-indian",
              "chinese",
              "italian",
              "continental",
              "mughlai",
              "fast-food",
              "cafe",
              "desserts",
              "biryani",
              "pizza",
              "burger",
              "street-food",
              "bakery",
              "beverages",
              "seafood",
              "mexican",
              "thai",
              "japanese",
              "arabian",
              "lebanese",
              "bengali",
              "hyderabadi",
              "healthy-food"
            ],
            "type": "string",
            "description": "Discovery mode: narrow a City search to one cuisine (ignored if City is empty). Leave as All cuisines for every restaurant.",
            "default": ""
          },
          "listingUrls": {
            "title": "🔗 City / locality / collection listing URLs (advanced)",
            "maxItems": 500,
            "type": "array",
            "description": "**Discovery mode, optional override.** Paste one Zomato **listing** URL per line for full control: a locality/city restaurants page (e.g. `https://www.zomato.com/ncr/connaught-place-restaurants`), a `/dine-out`, `/delivery`, `/search` or `/collections` page. Each listing is paginated and a **lead record** (name, phone, address, geo, cuisines, cost, rating) is produced for every restaurant on it, up to Max restaurants. Used together with City if both are set.",
            "items": {
              "type": "string"
            }
          },
          "maxRestaurants": {
            "title": "🔢 Max restaurants per listing",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "In Discovery mode, how many restaurants to expand and scrape from each listing URL (the actor paginates the listing to reach this many). Ignored in Reviews mode.",
            "default": 200
          },
          "maxReviews": {
            "title": "🔢 Max reviews per restaurant",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Reviews mode only. How many reviews to pull per restaurant (fetched newest-first). Set to 0, or turn Scrape reviews off, for a leads-only run. Lower this to control cost and run time.",
            "default": 200
          },
          "includeReviews": {
            "title": "💬 Scrape reviews",
            "type": "boolean",
            "description": "Reviews mode only. Turn OFF for a **leads-only** run over your pasted restaurant URLs: just the lead record (name, phone, address, geo, cuisines, cost, rating), no reviews (skips all review requests and review charges). Discovery mode is always leads-only.",
            "default": true
          },
          "sortBy": {
            "title": "↕️ Sort reviews by",
            "enum": [
              "newest",
              "oldest",
              "highestRating",
              "lowestRating"
            ],
            "type": "string",
            "description": "Output order of the returned reviews. Reviews are fetched newest-first from the source; `Highest rating` / `Lowest rating` reorder the retrieved set (not a global top-N across the whole restaurant).",
            "default": "newest"
          },
          "fromDate": {
            "title": "📅 Reviews from",
            "type": "string",
            "description": "Keep only reviews on or after this day, and stop paginating once older reviews are reached (faster and cheaper). Zomato reviews carry a relative timestamp (e.g. `6 months ago`), so the date is approximate. Leave empty to fetch the newest reviews with no date bound."
          },
          "minRating": {
            "title": "⭐ Minimum rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only reviews with a rating at or above this value. Zomato ratings are on a 1-5 scale.",
            "default": 1
          },
          "maxRating": {
            "title": "⭐ Maximum rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only reviews with a rating at or below this value. Zomato ratings are on a 1-5 scale.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Zomato is Akamai-fronted and blocks datacenter IPs intermittently, so this defaults to **Apify Residential (India)** for reliable results. You can switch to datacenter to cut proxy cost, but expect occasional blocks.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "IN"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}