Member-only story

Using Zomato API to fetch Restaurant data

Vinayak Pandey
1 min readSep 3, 2020

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 https://developers.zomato.com/api

Step 2: Download the script from https://raw.githubusercontent.com/vinycoolguy2015/awslambda/master/zomato.py

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.

--

--

Vinayak Pandey
Vinayak Pandey

Written by Vinayak Pandey

Experienced Cloud Engineer with a knack of automation. Linkedin profile: https://www.linkedin.com/in/vinayakpandeyit/

No responses yet