{
  "openapi": "3.0.1",
  "info": {
    "title": "Zomato Restaurant Scraper - City, Cuisine, Contact",
    "description": "Scrape restaurants from any Zomato city page. Each restaurant pushed as one record with name, phone, address, cuisines, rating, cost for two. Built for B2B sales, food-tech research, ghost kitchen analysis, and restaurant competitor intelligence.",
    "version": "1.0",
    "x-build-id": "t2DLcxOhntKvuKbsE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/anshumanatrey~zomato-restaurant-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-anshumanatrey-zomato-restaurant-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/anshumanatrey~zomato-restaurant-scraper/runs": {
      "post": {
        "operationId": "runs-sync-anshumanatrey-zomato-restaurant-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/anshumanatrey~zomato-restaurant-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-anshumanatrey-zomato-restaurant-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",
        "required": [
          "city"
        ],
        "properties": {
          "city": {
            "title": "City",
            "enum": [
              "bangalore",
              "delhi-ncr",
              "mumbai",
              "chennai",
              "hyderabad",
              "kolkata",
              "pune",
              "ahmedabad",
              "jaipur",
              "lucknow",
              "chandigarh",
              "noida",
              "gurgaon",
              "kochi",
              "goa",
              "dehradun",
              "indore",
              "bhopal",
              "coimbatore",
              "mysore",
              "vadodara",
              "visakhapatnam",
              "patna",
              "agra",
              "amritsar",
              "surat",
              "nagpur",
              "kanpur",
              "jodhpur",
              "thiruvananthapuram",
              "dubai",
              "abu-dhabi",
              "sharjah",
              "doha",
              "muscat",
              "kuala-lumpur",
              "singapore",
              "manila",
              "colombo",
              "lisbon"
            ],
            "type": "string",
            "description": "Pick the Zomato city to scrape.",
            "default": "bangalore"
          },
          "listingType": {
            "title": "Listing Type",
            "enum": [
              "best-restaurants",
              "restaurants",
              "dinner",
              "breakfast"
            ],
            "type": "string",
            "description": "Which list of restaurants do you want?",
            "default": "best-restaurants"
          },
          "cuisine": {
            "title": "Cuisine (optional)",
            "enum": [
              "",
              "north-indian",
              "south-indian",
              "chinese",
              "italian",
              "japanese",
              "thai",
              "mexican",
              "biryani",
              "pizza",
              "burger",
              "cafes",
              "bakery",
              "continental",
              "mughlai",
              "desserts",
              "street-food",
              "fast-food",
              "seafood",
              "healthy-food",
              "beverages",
              "mediterranean",
              "lebanese",
              "korean",
              "vietnamese"
            ],
            "type": "string",
            "description": "Filter by cuisine. Leave on \"Any\" for no filter.",
            "default": ""
          },
          "maxRestaurants": {
            "title": "How many restaurants?",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Cap on results per scan. Start small (20-50) and increase as needed.",
            "default": 50
          },
          "scanDepth": {
            "title": "Scan depth",
            "enum": [
              "quick",
              "standard",
              "deep"
            ],
            "type": "string",
            "description": "Quick = restaurant URLs + names only (fast, cheap). Standard = full data (phone, address, rating, cost). Deep = full data with extra retries for blocked pages.",
            "default": "standard"
          },
          "customCity": {
            "title": "Custom city (overrides City dropdown)",
            "type": "string",
            "description": "City name not in the dropdown? Type it here. Examples: 'Erode', 'Tirunelveli', 'Coorg', 'Manali', 'Madurai', 'Varanasi'. Auto-converted to slug (lowercase + dashes). Tip: Zomato uses CITY URLs only — there's no state-level URL, so 'Tamil Nadu' won't work; pick a city like 'Madurai' or 'Coimbatore'."
          },
          "customCuisine": {
            "title": "Custom cuisine (overrides Cuisine dropdown)",
            "type": "string",
            "description": "Cuisine not in the dropdown? Type it here. Examples that work: 'Momos', 'Kebab', 'Hyderabadi', 'Awadhi'. Auto-converted to slug. Note: Zomato only has CUISINE CATEGORIES — specific dishes like 'Dahi Puri' or 'Tandoor' won't have their own URL (those aren't cuisine categories). For dish-level searches, use a broader category like 'Street Food' or 'North Indian'."
          },
          "customUrl": {
            "title": "Custom URL (full override)",
            "type": "string",
            "description": "Paste any Zomato listing URL. Overrides every dropdown + custom field above. Example: https://www.zomato.com/dehradun/restaurants/biryani."
          },
          "timeoutSeconds": {
            "title": "Run timeout (seconds)",
            "minimum": 60,
            "maximum": 7200,
            "type": "integer",
            "description": "Hard kill the scan after this many seconds. Default 1800 (30 min) handles most multi-city scans.",
            "default": 1800
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}