Zomato Cuisines
zomato.cuisines
The cuisines a restaurant is listed under, each with a link to that cuisine's restaurants in the city.
At a glance
- Endpoint ID
zomato.cuisines- 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.cuisines", "input": { "restaurant_id": "18439027" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "zomato.cuisines", "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.cuisines", "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": 8, "res_id": "18439027", "cuisines": [ { "name": "North Indian", "url": "https://www.zomato.com/lucknow/restaurants/north-indian/" }, { "name": "Chinese", "url": "https://www.zomato.com/lucknow/restaurants/chinese/" } ]}
Fields
| Field | Type | What it is | Example |
|---|---|---|---|
cuisines[].name |
string | The name of the city, restaurant, dish or choice. | North Indian |
cuisines[].url |
string | The page on Zomato. | https://www.zomato.com/lucknow/restaurants/north-indian/ |
count |
integer | How many results this response holds. | 8 |
cuisines |
array | The restaurant's cuisines. | 8 records |
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.collectionsCollectionszomato.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.