Zomato restaurant and menu
One Zomato restaurant by link: name, cuisines, overall, dining and delivery ratings with review counts, locality, address, city, country, position, phone numbers, chain link, delivery-only flag, currency, safety features, and the full delivery menu (menus, categories and items with description, price, price range, item rating and votes, dietary and service tags, serving size, availability, image and variants with prices). Also photos (the restaurant's header photos: id, image, thumbnail, uploader, date, likes, comments) and has_more_photos. photos_page and/or photos_category add gallery: one page of 30 photos of the full gallery with the tab counts (one more page read).
Every response includes credits_used: the credits this call cost.
Parameters
| name | type | description |
|---|---|---|
urlrequired | string | A zomato.com restaurant link, e.g. https://www.zomato.com/ncr/haldirams-connaught-place-new-delhi (the /order, /info or /menu forms work too). Example: https://www.zomato.com/ncr/haldirams-connaught-place-new-delhi |
photos_page | integer | Gallery page (30 photos a page) to add as gallery; one more page read. |
photos_category | string | Gallery tab to add as gallery: all, food, ambience (or another tab the gallery lists in gallery.tabs); one more page read. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/zomato/v1/restaurant?url=https%3A%2F%2Fwww.zomato.com%2Fncr%2Fhaldirams-connaught-place-new-delhi" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/zomato/v1/restaurant",
params={"url": "https://www.zomato.com/ncr/haldirams-connaught-place-new-delhi"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/zomato/v1/restaurant");
url.searchParams.set("url", "https://www.zomato.com/ncr/haldirams-connaught-place-new-delhi");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).