Zomato Collections
zomato.collections
The featured collections shown on a restaurant's page, such as a city's best rooftops.
At a glance
- Endpoint ID
zomato.collections- Price
- 2 credits per call; failed calls are free
- Runs for up to
- 30 seconds
Request
Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.
curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "zomato.collections", "input": { "restaurant_id": "18439027" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "zomato.collections", "input": { "restaurant_id": "18439027" }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "zomato.collections", "input": { "restaurant_id": "18439027" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
Input
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
res_id |
string | one of | Compatibility alias for restaurant_id. | |
restaurant_id |
string | one of | Canonical numeric Zomato restaurant identifier. | 18439027 |
Response
A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.
This is results[0].data from a real run:
{ "count": 1, "fetched_at": "2026-09-24T08:48:44Z", "res_id": "18439027", "collections": [ { "title": "North Indian hits", "description": "Indulge in the rich flavors of North India at these top spots, serving everything from butter chicken to spicy kebabs.", "url": "https://www.zomato.com/lucknow/og-chicken-places" } ]}
Fields
| Field | Type | What it is | Example |
|---|---|---|---|
collections[].title |
string | The collection's title. | North Indian hits |
collections[].description |
string | The collection's description. | Indulge in the rich flavors of North India at these top spots, … |
collections[].url |
string | The page on Zomato. | https://www.zomato.com/lucknow/og-chicken-places |
collections |
array | Zomato's curated restaurant collections. | 1 records |
count |
integer | How many results this response holds. | 1 |
fetched_at |
string | When this result was collected. | 2026-09-24T08:48:44Z |
res_id |
string | Zomato's ID for the restaurant. | 18439027 |
If a call fails
A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.
Other Zomato endpoints
zomato.citiesCitieszomato.cuisinesCuisineszomato.location.searchLocation searchzomato.restaurant.deliveryDelivery serviceabilityzomato.restaurant.getRestaurantzomato.restaurant.menuMenu imageszomato.restaurant.menu_imagesMenu imageszomato.restaurant.offersDining offerszomato.restaurant.ordermenuOrder menuzomato.restaurant.reviewsReviewszomato.restaurants.allAll restaurantszomato.restaurants.listRestaurantszomato.searchSearch
Something missing or unclear? Ask the team that builds the Zomato endpoints.