# Swiggy — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Access data from swiggy.com.

**Category:** Food & Dining | **Website:** [swiggy.com/](https://swiggy.com/) | **Docs:** [parse.bot/marketplace/cb33b63d-5196-4fa2-ac26-a7390debf68d/swiggy-com-api](https://parse.bot/marketplace/cb33b63d-5196-4fa2-ac26-a7390debf68d/swiggy-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-swiggy-com-api-cb33b63d/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_dineout_restaurant_details

Get full Swiggy Dineout details for a restaurant: name, location, ratings, cuisines, cost, opening hours/schedule, current offers and discounts, and highlights. Returns the canonical Dineout page URL.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `lat` | number | No | Latitude of location. |
| `lng` | number | No | Longitude of location. |
| `restaurant_id` | string | Yes | Swiggy restaurant ID (numeric string, e.g. "673946"). Obtainable from search_dineout_restaurants results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-swiggy-com-api-cb33b63d/get_dineout_restaurant_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lat":"<number>","lng":"<number>","restaurant_id":"<string>"}'
```

### get_instamart_categories

Get Instamart grocery categories for a location. Returns category groups like Fresh items, Grocery & Kitchen with category names and images.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `lat` | number | No | Latitude of location. |
| `lng` | number | No | Longitude of location. |
| `store_id` | string | No | Instamart store ID. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-swiggy-com-api-cb33b63d/get_instamart_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lat":"<number>","lng":"<number>","store_id":"<string>"}'
```

### get_restaurant_details

Get full details and menu for a specific restaurant including restaurant info, offers, tabs (Order Online, Dineout), and all menu categories with items, prices, ratings, and variants.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `lat` | number | No | Latitude of delivery location. |
| `lng` | number | No | Longitude of delivery location. |
| `restaurant_id` | string | Yes | Swiggy restaurant ID (numeric string, e.g. "23846"). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-swiggy-com-api-cb33b63d/get_restaurant_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lat":"<number>","lng":"<number>","restaurant_id":"<string>"}'
```

### get_restaurants_by_city

Get list of restaurants for a given city/coordinates, including popular categories, top restaurant chains, and restaurant listings with ratings, cuisines, delivery time, and offers. Returns Swiggy's card-based response with heterogeneous widgets for the city homepage.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `lat` | number | No | Latitude of location. |
| `lng` | number | No | Longitude of location. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-swiggy-com-api-cb33b63d/get_restaurants_by_city \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lat":"<number>","lng":"<number>"}'
```

### search_dineout_restaurants

Search for dineout (dine-in) restaurants by keyword near a location. Returns matching restaurants with ratings, cuisines, cost, locality, and the Swiggy Dineout page URL for each result. Results are auto-iterated; no page parameter to pass.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `lat` | number | No | Latitude of location. |
| `lng` | number | No | Longitude of location. |
| `query` | string | Yes | Search keyword for restaurant name or cuisine (e.g. "biryani", "pizza", "Chin Lung"). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-swiggy-com-api-cb33b63d/search_dineout_restaurants \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lat":"<number>","lng":"<number>","query":"<string>"}'
```

### search_instamart_products

Search for grocery products on Instamart. Note: This endpoint is currently blocked by AWS WAF protection.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `lat` | number | No | Latitude of location |
| `lng` | number | No | Longitude of location |
| `query` | string | Yes | Search query for grocery products |
| `store_id` | string | No | Instamart store ID |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-swiggy-com-api-cb33b63d/search_instamart_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lat":"<number>","lng":"<number>","query":"<string>","store_id":"<string>"}'
```

### search_restaurants

Search for restaurants or dishes by keyword. Returns matching dishes and restaurants grouped by RESTAURANT and DISH tabs, with sort and filter options.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `lat` | number | No | Latitude of location. |
| `lng` | number | No | Longitude of location. |
| `query` | string | Yes | Search keyword (e.g. "pizza", "biryani", "burger"). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-swiggy-com-api-cb33b63d/search_restaurants \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lat":"<number>","lng":"<number>","query":"<string>"}'
```
