Zomato API endpoint
Returns restaurants in a Zomato city, optionally filtered by a keyword. With no query this reads Zomato's own city-wide delivery listing, which pages through an opaque cursor (~12 restaurants per page: pass a response's next_cursor back as cursor until has_more is false, which marks the end of the city's listing) and accepts Zomato's own sort and Pure Veg filters; with a query it uses Zomato's own keyword search across restaurant names, dishes, and cuisines, which returns a single unpaginated result set. Each restaurant carries its url (the value the restaurant and menu endpoints take), name, cuisines, cost for two, rating, distance from the city location, delivery time, whether Zomato currently delivers from it, whether the placement is promoted (sponsored), and — on the plain city-wide listing — Zomato's own headline offer badges.
/zomato/searchQuery parameters:
city (required) — Zomato public city slug, e.g. mumbai or ncr (the first path segment of a zomato.com city URL). /zomato/cities is the discovery source for this value — a curated directory of Zomato's major cities, not exhaustive; an unrecognized-but-real slug from a restaurant URL's own city segment still works.query (optional) — keyword to search restaurant names, dishes, or cuisines by, e.g. biryani. With no query this reads Zomato's own city-wide delivery listing; with a query it uses Zomato's own keyword search.sort (optional) — sort order for the city-wide listing. One of popularity_desc (Zomato's own default), rating_desc, cost_asc, cost_desc.pure_veg (optional) — true restricts the city-wide listing to restaurants Zomato itself marks Pure Veg.cursor (optional) — opaque pagination cursor from a previous city-wide listing response's next_cursor.Pagination: the city-wide listing returns roughly 12 restaurants per page. When has_more is true, pass the response's next_cursor back as cursor to fetch the next page; keep going until has_more is false, which marks the end of the city's listing. The last page is Zomato's own tail of restaurants it is not currently delivering from, so it can be slightly larger than the pages before it. A cursor already carries the sort/pure_veg selection of the call that produced it, so send it on its own.
cursor, sort, and pure_veg apply to the city-wide listing only — Zomato's keyword-search endpoint returns a single unpaginated, unfiltered result set. Combining any of them with query, or combining cursor with sort/pure_veg, returns a 400.
A city or keyword with no matches returns an empty restaurants list, not an error. An unrecognized city slug returns a 404.
Response includes city, query (only present when a keyword was supplied), total_results (only present on the plain city-wide listing), has_more, next_cursor (only present when has_more is true), and restaurants[]. Each restaurant has id, name, url, cuisines[], rating, rating_count (a display string, e.g. 54.7K), cost_for_two (a display string, e.g. ₹2,100 for two), locality, address, image_url, distance (a display string, e.g. 1.2 km, measured from the city's own resolved location), delivery_time (Zomato's delivery ETA, e.g. 19 min; absent for a restaurant Zomato is not currently delivering from), is_serviceable (true/false when Zomato says whether it currently delivers there, omitted when it says nothing), is_promoted (present and true only for a placement Zomato itself labels promoted/sponsored), and offers[] (Zomato's own headline offer badges, e.g. 50% OFF — only the plain city-wide listing carries them).
| Field | Filled in, of 6 checked | Values in the sample |
|---|---|---|
| id | 6 | |
| name | 6 | “Domino's Pizza” and 3 other values |
| url | 6 | zomato.com |
| cuisines | 6 | median 4 entries |
| rating | 6 | 3.1 to 4, median 3.6 |
| cost_for_two | 6 | ₹400 for two (4), ₹600 for two (1), ₹850 for two (1) |
| locality | 6 | “Matunga West, Mumbai” and 4 other values |
| address | 6 | |
| image_url | 6 | b.zmtcdn.com |
| delivery_time | 2 | “18 min” and 1 other value |
| distance | 6 | “0.4 km” and 5 other values |
| is_serviceable | 6 | true in 2 of 6 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| city | string | Yes | Zomato public city slug, e.g. \ | mumbai | |
| query | string | No | Optional keyword to search restaurant names, dishes, or cuisines by. Omit for the plain city-wide delivery listing. | biryani | |
| sort | string | No | Sort order for the city-wide listing (used only when query is omitted) Allowed values: popularity_desc, rating_desc, cost_asc, cost_desc. | rating_desc | |
| pure_veg | boolean | No | When true, restricts the city-wide listing to restaurants Zomato itself marks Pure Veg (used only when query is omitted) | true | |
| cursor | string | No | Opaque pagination cursor from a previous city-wide listing response's next_cursor. Carries its own sort/pure_veg selection, so pass it on its own. | ||
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/zomato/search?city=mumbai&query=coffee&sort=popularity_desc&pure_veg=true" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"city": "mumbai",
"total_results": 1394,
"has_more": true,
"next_cursor": "eyJwYiI6Ins...",
"restaurants": [
{
"id": "34269",
"name": "Persian Darbar",
"url": "https://www.zomato.com/mumbai/persian-darbar-byculla",
"cuisines": [
"Biryani",
"Mughlai",
"North Indian"
],
"rating": 4.2,
"rating_count": "54.7K",
"cost_for_two": "₹2,100 for two",
"locality": "Byculla, Mumbai",
"address": "5, Alexandra Terrace, Byculla, Mumbai",
"image_url": "https://b.zmtcdn.com/data/pictures/9/34269/img.jpg",
"delivery_time": "38 min",
"distance": "1.2 km",
"is_promoted": true,
"offers": [
"50% OFF"
],
"is_serviceable": true
}
]
}
}Request schema
No body schema
Response schema
#/definitions/zomato.searchResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | Code is the HTTP status code or a custom code used to indicate the result of the request @example 200 | |||
| data | zomato.SearchResponse | No | ||||
| data.city | string | No | ||||
| data.has_more | boolean | No | ||||
| data.next_cursor | string | No | ||||
| data.query | string | No | ||||
| data.restaurants | array | No | ||||
| data.restaurants[].address | string | No | ||||
| data.restaurants[].cost_for_two | string | No | ||||
| data.restaurants[].cuisines | array | No | ||||
| data.restaurants[].delivery_time | string | No | DeliveryTime is Zomato's own delivery ETA (e.g. "38 min"), present on results that carry its delivery-order metadata. Both search sources carry it but in different display shapes -- the city-wide listing serves a bare "38 min", keyword search a prefixed "Delivery in 38 min" -- so it is normalized to the bare form (see normalizeDeliveryTime). Absent for a restaurant Zomato is not currently delivering from. | |||
| data.restaurants[].distance | string | No | Distance is Zomato's own display distance from the resolved city location to the restaurant (e.g. "1.2 km"). Present on both search paths. | |||
| data.restaurants[].id | string | No | ||||
| data.restaurants[].image_url | string | No | ||||
| data.restaurants[].is_promoted | boolean | No | IsPromoted reports whether Zomato itself labels this a promoted (sponsored) placement rather than an organic result. | |||
| data.restaurants[].is_serviceable | boolean | No | IsServiceable reports whether Zomato will currently deliver here from the resolved location. A pointer so a source that does not carry the flag omits it rather than reporting a false "not serviceable". | |||
| data.restaurants[].locality | string | No | ||||
| data.restaurants[].name | string | No | ||||
| data.restaurants[].offers | array | No | Offers carries Zomato's own headline offer badges for this restaurant (e.g. "50% OFF", "₹100 OFF"). Only the city-wide listing carries them -- keyword search results do not. | |||
| data.restaurants[].rating | number | No | ||||
| data.restaurants[].rating_count | string | No | ||||
| data.restaurants[].url | string | No | ||||
| data.total_results | integer | No | ||||
| msg | unknown | No | Msg is the message that describes the result of the request @example "Request successful" |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/zomato/search?city=mumbai&query=coffee&sort=popularity_desc&pure_veg=true" \
-H "x-api-key: $CRAWLORA_API_KEY"