Skip to content
Scrappa Get API key
Swiggy API 1 credit / request

Swiggy Search API Documentation

GET https://scrappa.co/api/swiggy/search

Search Swiggy near a point. tab=RESTAURANT returns restaurant cards with INR cost and open status; tab=DISH returns dish cards with INR price, image and restaurant id. A later page with mostly old ids gets a free 422. 1 credit on success.

Swiggy Search API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/swiggy/search
Auth header
x-api-key
Cost
1 credit / request
Response preview
200 OK
{
    "data": {
        "count": 1,
        "dishes": [
            {
                "id": "d1",
                "name": "Chicken Biryani",
                "price": 280,
                "image_url": "https://media-assets.example.com/swiggy/image/upload/d1.jpg",
                "description": "Basmati rice with chicken",
                "restaurant_id": "263485"
            }
        ],
        "source": "swiggy"
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

This endpoint has no required query parameters.

6 optional filters available.

query string Optional

Dish or restaurant name, for example biryani.

Example value coffee shops
tab string Optional

RESTAURANT (default) or DISH.

Example value example
lat number Optional

Delivery latitude. Default 12.9716.

Example value 10
lng number Optional

Delivery longitude. Default 77.5946.

Example value 10
next_offset string Optional

Pass the next_offset of the previous page.

Example value example
widget_offset string Optional

Pass the widget_offset of the previous page.

Example value example

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data success
JSON Response
200 OK
{
    "data": {
        "count": 1,
        "dishes": [
            {
                "id": "d1",
                "name": "Chicken Biryani",
                "price": 280,
                "image_url": "https://media-assets.example.com/swiggy/image/upload/d1.jpg",
                "description": "Basmati rice with chicken",
                "restaurant_id": "263485"
            }
        ],
        "source": "swiggy"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A parameter is invalid. Not billed.

{
    "message": "The request validation failed"
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.