# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/swiggy/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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/credits/swiggy/get-dineout-restaurant-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/swiggy/get-instamart-categories \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/swiggy/get-restaurant-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/swiggy/get-restaurants-by-city \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/swiggy/search-dineout-restaurants \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/swiggy/search-instamart-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/swiggy/search-restaurants \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"lat":"<number>","lng":"<number>","query":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.