Using Zomato API to fetch Restaurant data

Last night, I was going through some of my python scripts which I wrote long back and found one interesting script which I’ll be sharing here.

As you know, Zomato is a popular restaurant aggregator platform and like almost all the modern applications/platforms do, they also expose their data via API. So we’ll leverage their API to pull data about most popular restaurants in a city.

Step 1: Get your API key from

Step 2: Download the script from

Step 3: In the given code, replace <your key> with your API key(line number 8 and 16)

That’s all. Now you can execute the script and provide a city name as input. Script will fetch restaurant’s name, rating, average cost for 2 along with the address.

Experienced Cloud Consultant with a knack of automation. Linkedin profile: