First, we need to create an account with Zomato and get an API key:
![](https://static.packt-cdn.com/products/9781788294669/graphics/assets/88d2e40a-4632-457a-a2ee-2bc2a49a600a.png)
- Click Generate API Key:
![](https://static.packt-cdn.com/products/9781788294669/graphics/assets/0bb5dde7-ea64-45b5-a2d3-1b7488caf660.png)
- Sign up:
![](https://static.packt-cdn.com/products/9781788294669/graphics/assets/5d80ec71-060f-4f6b-954a-3e0d48377658.png)
- Confirm your email address and click Generate API Key again:
![](https://static.packt-cdn.com/products/9781788294669/graphics/assets/7df78d6a-e203-4299-88a1-5e5af42c65b9.png)
- Copy the API key.
First, we need to create an account with Zomato and get an API key:
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...