↑ ↓ to move ↵ to open
Swiggy API reference

Swiggy All Restaurants

swiggy.list.all_restaurants

Every restaurant Swiggy lists at a delivery location, with cuisines, rating, cost for two, delivery time and distance.

At a glance

Endpoint ID
swiggy.list.all_restaurants
Price
3 credits per call; failed calls are free
Runs for up to
120 seconds
Request
POST /execute
Run an endpoint
MCP tool when pinned
swiggy__list__all_restaurants
Pin tools
OpenAPI
openapi.json
Download

Request

Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.

curl --request POST \  --url https://data.upscrape.com/execute \  --header "Authorization: Bearer $UPSCRAPE_API_KEY" \  --header "Content-Type: application/json" \  --header "Prefer: wait=30" \  --data '{  "capability": "swiggy.list.all_restaurants",  "input": {    "latitude": 12.9121181,    "longitude": 77.6445548,    "max_pages": 2,    "max_restaurants": 300,    "page_limit": 5  }}'

Input

FieldTypeRequiredWhat it doesExample
latitude number one of Latitude of the delivery location. Send it with longitude, or leave both out for the default area. 12.9121181
longitude number one of Longitude of the delivery location. 77.6445548
max_pages integer no Kept for older requests; one listing is read per location. 2
max_restaurants integer no The most restaurants to return. 300
offset string no Not used: Swiggy shows one listing per location. Leave it out.
page_limit integer no Kept for older requests; Swiggy returns its whole listing for the location whatever this says. 5

Response

A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.

This is results[0].data from a real run:

results[0].data
{  "summary": {    "has_more": true,    "latitude": 12.9121181,    "longitude": 77.6445548,    "total_items": 26  },  "items": [    {      "name": "Andhra Gunpowder",      "rating": 4.3,      "area_name": "HSR Layout",      "cost_for_two_minor": 35000,      "cost_for_two_text": "₹350 for two",      "cuisines_text": "Andhra, Biryani, South Indian",      "delivery_time_minutes": 33,      "is_open": true,      "last_mile_travel_km": 0.6,      "last_mile_travel_text": "0.6 km",      "latitude": 12.9121181,      "locality": "Sector 2",      "longitude": 77.6445548,      "parent_id": "10496",      "rating_text": "4.3",      "restaurant_id": "279024",      "restaurant_url": "https://www.swiggy.com/city/bangalore/andhra-gunpowder-sector-2-hsr-layout-rest279024",      "serviceability": "SERVICEABLE",      "sla_text": "30-35 mins",      "total_ratings_text": "9.7K+",      "cuisines": [        "Andhra",        "Biryani"      ]    },    {      "name": "Aligarh House",      "rating": 4.3,      "area_name": "HSR Layout",      "cost_for_two_minor": 40000,      "cost_for_two_text": "₹400 for two",      "cuisines_text": "Biryani, Mughlai, Kebabs, Lucknowi, Fast Food, Desserts, Beverages",      "delivery_time_minutes": 35,      "is_open": true,      "last_mile_travel_km": 1.4,      "last_mile_travel_text": "1.4 km",      "latitude": 12.9121181,      "locality": "HSR Layout",      "longitude": 77.6445548,      "parent_id": "586111",      "rating_text": "4.3",      "restaurant_id": "81642",      "restaurant_url": "https://www.swiggy.com/city/bangalore/aligarh-house-hsr-layout-rest81642",      "serviceability": "SERVICEABLE",      "sla_text": "30-40 mins",      "total_ratings_text": "11K+",      "cuisines": [        "Biryani",        "Mughlai"      ]    }  ]}

Fields

FieldTypeWhat it isExample
items[].name string The name of the restaurant or dish. Andhra Gunpowder
items[].cuisines_text string The cuisines as one line. Andhra, Biryani, South Indian
items[].rating number The average rating, out of 5. 4.3
items[].cost_for_two_text string Swiggy's price guide for two people. ₹350 for two
items[].delivery_time_minutes integer Swiggy's delivery time estimate, in minutes. 33
items[].locality string The restaurant's locality. Sector 2
items[].total_ratings_text string How many ratings, as Swiggy rounds it. 9.7K+
items[].area_name string The area of the restaurant. HSR Layout
items[].cost_for_two_minor integer The price guide for two, in paise. 35,000
items[].cuisines array The restaurant's cuisines. Andhra, Biryani, South Indian
items[].is_open boolean Whether the restaurant is open now. true
items[].last_mile_travel_km number Distance from the restaurant to you, in kilometres. 0.6
items[].last_mile_travel_text string That distance as Swiggy shows it. 0.6 km
items[].latitude number Latitude. 12.91
items[].longitude number Longitude. 77.64
items[].parent_id string 10496
items[].rating_text string The rating as Swiggy shows it. 4.3
items[].restaurant_id string Swiggy's ID for the restaurant, used by the menu endpoint. 279024
items[].restaurant_url string The restaurant's page on Swiggy. https://www.swiggy.com/city/bangalore/andhra-gunpowder-sector-2…
items[].serviceability string Whether the restaurant delivers to your location. SERVICEABLE
items[].sla_text string Swiggy's delivery time estimate. 30-35 mins
items array The results. 26 records
summary object Totals for this response. 4 fields
summary.has_more boolean Whether more results follow this page. true
summary.latitude number Latitude. 12.91
summary.longitude number Longitude. 77.64
summary.total_items integer How many results this response holds. 26

If a call fails

A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.

Other Swiggy endpoints

Something missing or unclear? Ask the team that builds the Swiggy endpoints.