Getting started with Zomato
First, we need to create an account with Zomato and get an API key:

- Click
Generate API Key
:

- Sign up:

- Confirm your email address and click
Generate API Key
again:

- Copy the API key.
Getting data from Zomato
The base URL for fetching data is https://developers.zomato.com/api/v2.1/
. Every query sent to the Zomato server should have the API key sent as part of the header, as follows:
curl -X GET --header "Accept: application/json" --header "user-key: YOURAPIKEY" "https://developers.zomato.com/api/v2.1/categories"
In the preceding HTTP GET
call, categories specify the handle that pulls out the various categories of restaurants that are available. Categories include delivery, takeout, and dine-in. Here is the list of handles that are available:
Handle | Description |
| Restaurant categories: dine-in, takeout, delivery, and many more. |
| Get info about the cities across the globe. Get the Zomato city ID from this query to use in search... |