{
  "openapi": "3.0.1",
  "info": {
    "title": "Zomato Scraper",
    "description": "Scrape restaurant data from Zomato for major Indian and UAE cities. Get cuisine, ratings, cost for two, location, phones, timings, features, and images.",
    "version": "1.0",
    "x-build-id": "fMAvZFfIjY0vc5aUI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~zomato-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-zomato-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/crawlerbros~zomato-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-zomato-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/crawlerbros~zomato-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-zomato-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": {
          "start_urls": {
            "title": "Zomato URLs",
            "type": "array",
            "description": "Zomato restaurant/search/locality URLs. Examples:\n- https://www.zomato.com/mumbai/restaurants\n- https://www.zomato.com/ncr/restaurants/biryani\n- https://www.zomato.com/mumbai/bandra-west-restaurants\n- https://www.zomato.com/dubai/delivery\n\nEach URL returns up to 9 restaurants (Zomato server-side cap).",
            "items": {
              "type": "string"
            },
            "default": [
              "https://www.zomato.com/mumbai/restaurants"
            ]
          },
          "city": {
            "title": "City",
            "enum": [
              "mumbai",
              "ncr",
              "bangalore",
              "pune",
              "hyderabad",
              "chennai",
              "kolkata",
              "ahmedabad",
              "jaipur",
              "lucknow",
              "dubai",
              "abudhabi",
              "sharjah"
            ],
            "type": "string",
            "description": "Pick a supported city to build a search URL from filters below. Supported: major Indian cities + UAE."
          },
          "search_mode": {
            "title": "Search Mode",
            "enum": [
              "dining",
              "delivery",
              "cafes",
              "nightlife"
            ],
            "type": "string",
            "description": "Which Zomato surface to scrape.",
            "default": "dining"
          },
          "cuisine": {
            "title": "Cuisine",
            "type": "string",
            "description": "Cuisine ID filter (e.g. 55=Italian, 25=Chinese, 50=North Indian). See README for full list."
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "Category ID filter (e.g. 2=Fine Dining, 6=Cafes, 11=Pubs and Bars)."
          },
          "min_rating": {
            "title": "Minimum Rating",
            "enum": [
              "",
              "3.5",
              "4",
              "4.5",
              "5"
            ],
            "type": "string",
            "description": "Filter to restaurants at or above this rating.",
            "default": ""
          },
          "sort": {
            "title": "Sort By",
            "enum": [
              "",
              "popularity",
              "rating",
              "cost"
            ],
            "type": "string",
            "description": "Result ordering.",
            "default": ""
          },
          "min_cost": {
            "title": "Min Cost (for two)",
            "minimum": 0,
            "type": "integer",
            "description": "Lower bound of cost-for-two."
          },
          "max_cost": {
            "title": "Max Cost (for two)",
            "minimum": 0,
            "type": "integer",
            "description": "Upper bound of cost-for-two."
          },
          "expand_cuisines": {
            "title": "Expand Cuisines",
            "type": "boolean",
            "description": "When set, fan out across 15 top cuisines for the chosen city — 9 × 15 ≈ 135 restaurants per city.",
            "default": false
          },
          "expand_localities": {
            "title": "Expand Localities",
            "type": "boolean",
            "description": "When set, also scrape each locality page Zomato exposes for the chosen city.",
            "default": false
          },
          "max_items_per_url": {
            "title": "Max Items Per URL",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Up to 9 (Zomato server-side cap). Pagination beyond 9 is not available.",
            "default": 9
          },
          "enrich_details": {
            "title": "Fetch Full Details",
            "type": "boolean",
            "description": "Fetch the detail page for each restaurant (menu highlights, hours, contact, features). Disable for speed.",
            "default": true
          },
          "max_retries_per_url": {
            "title": "Max Retries Per URL",
            "minimum": 0,
            "type": "integer",
            "description": "Retries on 5xx / 429 / connection errors.",
            "default": 2
          },
          "ignore_url_failures": {
            "title": "Ignore URL Failures",
            "type": "boolean",
            "description": "Continue the run if some URLs fail after retries.",
            "default": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}