# Swiggy Search API Documentation

<p>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.</p>

- **Documentation:** [https://scrappa.co/docs/swiggy-api/swiggy_search](https://scrappa.co/docs/swiggy-api/swiggy_search)
- **API group:** Swiggy API
- **Endpoint:** `GET https://scrappa.co/api/swiggy/search`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | No | Dish or restaurant name, for example biryani. |
| `tab` | string | No | RESTAURANT (default) or DISH. |
| `lat` | number | No | Delivery latitude. Default 12.9716. |
| `lng` | number | No | Delivery longitude. Default 77.5946. |
| `next_offset` | string | No | Pass the next_offset of the previous page. |
| `widget_offset` | string | No | Pass the widget_offset of the previous page. |

## Example response

```json
{
    "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

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is invalid. Not billed. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
