Swiggy Categories API
The cuisines and food categories Swiggy suggests at a location, in the order it shows them.
{ "summary": { "latitude": 12.9121181, "longitude": 77.6445548, "total_items": 12 }, "items": [ { "entity_id": "swiggy://explore?query=Rolls", "id": "600995", "latitude": 12.9121181, "link": "swiggy://explore?query=Rolls", "longitude": 77.6445548, "query": "Rolls", "rank": 1, "section": "Popular Cuisines" }, { "entity_id": "swiggy://explore?query=Pizza", "id": "600813", "latitude": 12.9121181, "link": "swiggy://explore?query=Pizza", "longitude": 77.6445548, "query": "Pizza", "rank": 2, "section": "Popular Cuisines" } ]}
| # | Latitude | Longitude | Query | Rank | Section | Entity id | Id | Link |
|---|---|---|---|---|---|---|---|---|
| 1 | 12.91 | 77.64 | Rolls | 1 | Popular Cuisines | swiggy://explore?query=Rolls | 600995 | swiggy://explore?query=Rolls |
| 2 | 12.91 | 77.64 | Pizza | 2 | Popular Cuisines | swiggy://explore?query=Pizza | 600813 | swiggy://explore?query=Pizza |
| 3 | 12.91 | 77.64 | Tea | 3 | Popular Cuisines | swiggy://explore?query=Tea | 601016 | swiggy://explore?query=Tea |
| 4 | 12.91 | 77.64 | Burgers | 4 | Popular Cuisines | swiggy://explore?query=Burgers | 600833 | swiggy://explore?query=Burgers |
| 5 | 12.91 | 77.64 | Chinese | 5 | Popular Cuisines | swiggy://explore?query=Chinese | 600854 | swiggy://explore?query=Chinese |
| 6 | 12.91 | 77.64 | Cake | 6 | Popular Cuisines | swiggy://explore?query=Cake | 600868 | swiggy://explore?query=Cake |
| 7 | 12.91 | 77.64 | Desserts | 7 | Popular Cuisines | swiggy://explore?query=Desserts | 600884 | swiggy://explore?query=Desserts |
| 8 | 12.91 | 77.64 | North Indian | 8 | Popular Cuisines | swiggy://explore?query=North%20Indian | 600828 | swiggy://explore?query=North%20Indian |
| 9 | 12.91 | 77.64 | South Indian | 9 | Popular Cuisines | swiggy://explore?query=South%20Indian | 600901 | swiggy://explore?query=South%20Indian |
| 10 | 12.91 | 77.64 | Sandwich | 10 | Popular Cuisines | swiggy://explore?query=Sandwich | 600916 | swiggy://explore?query=Sandwich |
| 11 | 12.91 | 77.64 | Ice cream | 11 | Popular Cuisines | swiggy://explore?query=Ice%20cream | 600932 | swiggy://explore?query=Ice%20cream |
| 12 | 12.91 | 77.64 | Indian Snacks | 12 | Popular Cuisines | swiggy://explore?query=Indian%20Snacks | 601037 | swiggy://explore?query=Indian%20Snacks |
What you send, what comes back
The input object it accepts, and every field of a record, with the values from the response above.
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
| latitude | number | no | Latitude of the location. | 12.9121181 |
| limit | integer | no | Maximum number of categories. | 20 |
| longitude | number | no | Longitude of the location. | 77.6445548 |
| Field | Type | What it is | Example |
|---|---|---|---|
| items[].rank | integer | The restaurant's place in the list. | 1 |
| items[].query | string | The search term. | Rolls |
| items[].section | string | The section of Swiggy's search page. | Popular Cuisines |
| items[].entity_id | string | swiggy://explore?query=Rolls | |
| items[].id | string | 600995 | |
| items[].latitude | number | Latitude. | 12.91 |
| items[].link | string | Swiggy's link for the search. | swiggy://explore?query=Rolls |
| items[].longitude | number | Longitude. | 77.64 |
| items | array | The results. | 12 records |
| summary | object | Totals for this response. | 3 fields |
| summary.latitude | number | Latitude. | 12.91 |
| summary.longitude | number | Longitude. | 77.64 |
| summary.total_items | integer | How many results this response holds. | 12 |
Call it from your code
Set UPSCRAPE_API_KEY to your key and copy a working request. No SDK needed.
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.categories", "input": { "latitude": 12.9121181, "limit": 20, "longitude": 77.6445548 }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "swiggy.categories", "input": { "latitude": 12.9121181, "limit": 20, "longitude": 77.6445548 }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "swiggy.categories", "input": { "latitude": 12.9121181, "limit": 20, "longitude": 77.6445548 }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
{ "summary": { "latitude": 12.9121181, "longitude": 77.6445548, "total_items": 12 }, "items": [ { "entity_id": "swiggy://explore?query=Rolls", "id": "600995", "latitude": 12.9121181, "link": "swiggy://explore?query=Rolls", "longitude": 77.6445548, "query": "Rolls", "rank": 1, "section": "Popular Cuisines" }, { "entity_id": "swiggy://explore?query=Pizza", "id": "600813", "latitude": 12.9121181, "link": "swiggy://explore?query=Pizza", "longitude": 77.6445548, "query": "Pizza", "rank": 2, "section": "Popular Cuisines" } ]}
More Swiggy endpoints
The same API key runs every one of them.
The same data from other platforms
-
Aldi UK Browse the public Aldi UK grocery category taxonomy to discover categories for shelf product listings. Categories1 credit per call
-
Apollo Pharmacy List the Apollo Pharmacy category tree with category ids, slugs, names and parent-child structure. Categories1 credit per call
-
Asda List the Asda Groceries category taxonomy (category > department > aisle) with product counts, derived from the catalog index facets. Categories1 credit per call
-
Blinkit List Blinkit departments and shelves for a location, with IDs for browsing category products. Categories1 credit per call
-
Carrefour Fetch a Carrefour country's category tree (Saudi Arabia, UAE, Egypt or Qatar) as parent-linked rows with leaf flags, in English or Arabic. CategoriesContact for pricing per call
-
Flipkart Return hierarchical category and subcategory candidates discovered from listing pages. Search categories5 credits per call
Swiggy Categories API FAQ
The short answers. The docs have the long ones.
How much does the Swiggy Categories API cost?
1 credit per successful call, shown before it runs. You buy credits once, and paid credits never expire.
What do I send?
Every input is optional; the input fields below list what each one does.
Do I need a Swiggy login?
No. It reads public Swiggy data; nothing runs on your account.
Can my AI agent call it?
Yes, over MCP: the agent finds swiggy.categories, checks its price and runs it with the same credits as the REST API.