{
  "openapi": "3.0.1",
  "info": {
    "title": "Zomato Search Scraper",
    "description": "Scrapes Zomato restaurant search results by location, cuisine, rating, and cost range. Extracts name, rating, reviews count, cuisine types, location, cost, and opening hours.",
    "version": "1.0",
    "x-build-id": "yf3vbvw6aZTh6owPO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gitlab~zomato-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gitlab-zomato-search-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/gitlab~zomato-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-gitlab-zomato-search-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/gitlab~zomato-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-gitlab-zomato-search-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": [
          "location"
        ],
        "properties": {
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City or area where you want to search for restaurants"
          },
          "search": {
            "title": "Search",
            "type": "string",
            "description": "Keywords to search for specific restaurants or food types",
            "default": "biryani"
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of result items to return. The default is 10.",
            "default": 10
          },
          "rating": {
            "title": "Rating",
            "enum": [
              "3.5",
              "4",
              "4.5",
              "5"
            ],
            "type": "string",
            "description": "Minimum rating filter (restaurants below this rating will be excluded)"
          },
          "limit": {
            "title": "Limit",
            "type": "integer",
            "description": "Maximum number of restaurant results to return"
          },
          "sort": {
            "title": "Sorting",
            "enum": [
              "popularity",
              "rating",
              "cost"
            ],
            "type": "string",
            "description": "How to sort the search results"
          },
          "min_cost": {
            "title": "Min. Cost",
            "type": "integer",
            "description": "Minimum cost for two people (in local currency)"
          },
          "max_cost": {
            "title": "Max. Cost",
            "type": "integer",
            "description": "Maximum cost for two people (in local currency)"
          },
          "category": {
            "title": "Category",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "10",
              "11",
              "13",
              "14"
            ],
            "type": "string",
            "description": "Optional legacy category filter. Public mode currently requires an actual filtered source URL for non-empty category selections.",
            "default": ""
          },
          "establishment": {
            "title": "Establishment",
            "enum": [
              "1",
              "4",
              "5",
              "6",
              "7",
              "8",
              "16",
              "18",
              "20",
              "21",
              "23",
              "24",
              "31",
              "41",
              "51",
              "61",
              "71",
              "81",
              "91",
              "101",
              "111",
              "121",
              "131",
              "161",
              "191",
              "201",
              "211",
              "241",
              "261",
              "271",
              "272",
              "275",
              "278",
              "281",
              "282",
              "283",
              "284",
              "285",
              "286",
              "287",
              "288",
              "289",
              "290",
              "291",
              "292",
              "293",
              "294",
              "295",
              "296",
              "301",
              "303",
              "304",
              "307",
              "308",
              "309",
              "311",
              "312",
              "313",
              "314",
              "315",
              "317",
              "318",
              "319",
              "320",
              "321",
              "322",
              "323",
              "324",
              "325",
              "326",
              "327"
            ],
            "type": "string",
            "description": "Type of restaurant or food establishment"
          },
          "cuisines": {
            "title": "Cuisines",
            "enum": [
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "10",
              "18",
              "22",
              "25",
              "27",
              "30",
              "35",
              "38",
              "40",
              "45",
              "47",
              "48",
              "49",
              "50",
              "55",
              "60",
              "62",
              "63",
              "65",
              "66",
              "67",
              "69",
              "70",
              "71",
              "72",
              "73",
              "74",
              "75",
              "82",
              "83",
              "84",
              "85",
              "86",
              "87",
              "88",
              "89",
              "90",
              "93",
              "95",
              "99",
              "100",
              "102",
              "111",
              "112",
              "114",
              "117",
              "118",
              "119",
              "121",
              "128",
              "131",
              "132",
              "133",
              "134",
              "135",
              "136",
              "137",
              "139",
              "140",
              "141",
              "142",
              "143",
              "145",
              "146",
              "147",
              "148",
              "149",
              "150",
              "151",
              "152",
              "153",
              "154",
              "156",
              "157",
              "158",
              "159",
              "161",
              "162",
              "163",
              "164",
              "165",
              "166",
              "168",
              "175",
              "177",
              "178",
              "179",
              "181",
              "182",
              "183",
              "190",
              "192",
              "193",
              "196",
              "201",
              "202",
              "203",
              "205",
              "207",
              "209",
              "210",
              "211",
              "218",
              "219",
              "227",
              "228",
              "229",
              "231",
              "233",
              "234",
              "235",
              "236",
              "237",
              "238",
              "239",
              "240",
              "241",
              "242",
              "243",
              "244",
              "245",
              "246",
              "247",
              "248",
              "249",
              "250",
              "251",
              "253",
              "255",
              "259",
              "260",
              "261",
              "264",
              "265",
              "267",
              "268",
              "270",
              "271",
              "274",
              "278",
              "287",
              "290",
              "292",
              "298",
              "304",
              "308",
              "312",
              "316",
              "318",
              "320",
              "321",
              "361",
              "381",
              "411",
              "451",
              "461",
              "471",
              "491",
              "501",
              "521",
              "541",
              "561",
              "601",
              "611",
              "641",
              "651",
              "691",
              "761",
              "781",
              "881",
              "901",
              "928",
              "954",
              "955",
              "956",
              "958",
              "959",
              "961",
              "962",
              "963",
              "964",
              "965",
              "966",
              "970",
              "972",
              "983",
              "989",
              "993",
              "994",
              "995",
              "996",
              "997",
              "998",
              "1005",
              "1013",
              "1014",
              "1015",
              "1016",
              "1018",
              "1019",
              "1022",
              "1023",
              "1024",
              "1026",
              "1031",
              "1032",
              "1035",
              "1040",
              "1041",
              "1047",
              "1048",
              "1049",
              "1051",
              "1054",
              "1057",
              "1059",
              "1060",
              "1063",
              "1064",
              "1065",
              "1066",
              "1067",
              "1068",
              "1070",
              "1072"
            ],
            "type": "string",
            "description": "Type of cuisine or food category"
          },
          "features": {
            "title": "Features",
            "enum": [
              "ac",
              "afternoon-tea",
              "bar",
              "brunch",
              "buffet",
              "byob",
              "cheap-eats",
              "child-friendly",
              "credit-card",
              "desserts-bakes",
              "halal",
              "happyhour",
              "healthy-food",
              "live-screening",
              "luxury-dining",
              "music",
              "outdoor",
              "pet-friendly",
              "private-rooms",
              "sports_bar",
              "veg",
              "weekend_brunch",
              "wheelchair-accessible",
              "wifi"
            ],
            "type": "string",
            "description": "Restaurant features and amenities"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Search terms to retrieve from the target source. Existing query input names remain supported.",
            "default": "biryani"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}