# List All Restaurants

Walk Swiggy listing pages and stream deduplicated restaurants.

- Platform: [Swiggy](https://docs.upscrape.com/docs/platforms/swiggy)
- Capability ID: `swiggy.list.all_restaurants`
- Cost: 1 credit per request
- Maximum runtime: 120 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

Use the exact public capability ID in the shared execute envelope.

```bash
curl --request POST \
  --url https://data.upscrape.com/execute \
  --header "Authorization: Bearer YOUR_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "latitude": 12.9121181,
    "longitude": 77.6445548,
    "max_pages": 2,
    "max_restaurants": 10,
    "page_limit": 5
  },
  "capability": "swiggy.list.all_restaurants"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `latitude` | `number` | No | Latitude of the location. |
| `longitude` | `number` | No | Longitude of the location. |
| `max_pages` | `integer` | No | Maximum pages to fetch. |
| `max_restaurants` | `integer` | No | Maximum restaurants to return. |
| `offset` | `integer` | No | Starting offset. |
| `page_limit` | `integer` | No | Results per page. |

### Example input

```json
{
  "latitude": 12.9121181,
  "longitude": 77.6445548,
  "max_pages": 2,
  "max_restaurants": 10,
  "page_limit": 5
}
```

## Response

Successful output is returned in `results[0].data`. Raw platform output is intentionally open-ended and may evolve with the upstream source.

### Illustrative sample output

This redacted fixture is an example, not a fixed response schema.

```json
{
  "items": [
    {
      "area_name": "HSR Layout",
      "cloudinary_image_id": "RX_THUMBNAIL/IMAGES/VENDOR/2026/6/15/[redacted:token].JPG",
      "cost_for_two_minor": "₹300 for two",
      "cost_for_two_text": "₹300 for two",
      "cuisines": [
        "Pizzas"
      ],
      "cuisines_text": "Pizzas",
      "delivery_time_minutes": 25,
      "image_url": "https://media-assets.swiggy.com/swiggy/image/upload/RX_THUMBNAIL/IMAGES/VENDOR/2026/6/15/[redacted:token].JPG",
      "is_open": true,
      "last_mile_travel_km": 0.9,
      "last_mile_travel_text": "0.9 km",
      "latitude": 12.9121181,
      "locality": "14th Main",
      "longitude": 77.6445548,
      "name": "Pizza Hut",
      "offer_headers": [
        "50% OFF"
      ],
      "offer_text": "50% OFF",
      "parent_id": "721",
      "rating": 4,
      "rating_text": "4.0",
      "restaurant_id": "10581",
      "restaurant_url": "https://www.swiggy.com/city/bangalore/[redacted:token]",
      "serviceability": "SERVICEABLE",
      "sla_text": "25-30 mins",
      "source_url": "[redacted:acquisition_url]",
      "total_ratings_text": "21K+"
    },
    {
      "area_name": "HSR Layout",
      "cloudinary_image_id": "RX_THUMBNAIL/IMAGES/VENDOR/2024/11/7/[redacted:token].jpg",
      "cost_for_two_minor": "₹200 for two",
      "cost_for_two_text": "₹200 for two",
      "cuisines": [
        "Bubble Tea",
        "Burger",
        "Korean"
      ],
      "cuisines_text": "Bubble Tea, Burger, Korean, Beverages, Fast Food, Juice and shake",
      "delivery_time_minutes": 22,
      "image_url": "https://media-assets.swiggy.com/swiggy/image/upload/RX_THUMBNAIL/IMAGES/VENDOR/2024/11/7/[redacted:token].jpg",
      "is_open": true,
      "last_mile_travel_km": 0.6,
      "last_mile_travel_text": "0.6 km",
      "latitude": 12.9121181,
      "locality": "5TH SECTOR",
      "longitude": 77.6445548,
      "name": "Boba Bhai - Bubble Tea & Korean Street Food",
      "offer_headers": [
        "60% OFF"
      ],
      "offer_text": "60% OFF",
      "parent_id": "361235",
      "rating": 4.2,
      "rating_text": "4.2",
      "restaurant_id": "819617",
      "restaurant_url": "https://www.swiggy.com/city/bangalore/[redacted:token]",
      "serviceability": "SERVICEABLE",
      "sla_text": "20-25 mins",
      "source_url": "[redacted:acquisition_url]",
      "total_ratings_text": "1.2K+"
    },
    {
      "area_name": "HSR Layout",
      "cloudinary_image_id": "RX_THUMBNAIL/IMAGES/VENDOR/2026/6/18/[redacted:token].JPG",
      "cost_for_two_minor": "₹400 for two",
      "cost_for_two_text": "₹400 for two",
      "cuisines": [
        "Burgers",
        "Beverages",
        "Cafe"
      ],
      "cuisines_text": "Burgers, Beverages, Cafe, Desserts",
      "delivery_time_minutes": 26,
      "image_url": "https://media-assets.swiggy.com/swiggy/image/upload/RX_THUMBNAIL/IMAGES/VENDOR/2026/6/18/[redacted:token].JPG",
      "is_open": true,
      "last_mile_travel_km": 1.4,
      "last_mile_travel_text": "1.4 km",
      "latitude": 12.9121181,
      "locality": "HSR Layout",
      "longitude": 77.6445548,
      "name": "McDonald's",
      "offer_headers": [
        "ITEMS"
      ],
      "offer_text": "ITEMS",
      "parent_id": "630",
      "rating": 4.3,
      "rating_text": "4.3",
      "restaurant_id": "23682",
      "restaurant_url": "https://www.swiggy.com/city/bangalore/mcdonalds-hsr-layout-rest23682",
      "serviceability": "SERVICEABLE",
      "sla_text": "25-30 mins",
      "source_url": "[redacted:acquisition_url]",
      "total_ratings_text": "79K+"
    }
  ],
  "summary": {
    "latitude": 12.9121181,
    "longitude": 77.6445548,
    "source_url": "[redacted:acquisition_url]",
    "total_items": 5
  }
}
```
### Illustrative output fields

Derived from the sample above for orientation only. These fields are not a fixed response schema.

| Path | Observed type | Example |
| --- | --- | --- |
| `items` | `array` | 3 items |
| `items` | `array` | 3 items |
| `summary` | `object` | 4 fields |
| `summary.latitude` | `number` | 12.9121181 |
| `summary.longitude` | `number` | 77.6445548 |
| `summary.source_url` | `string` | [redacted:acquisition_url] |
| `summary.total_items` | `integer` | 5 |

## Execution behavior

A `200` response completed inline. A `202` response was queued; poll `GET /jobs/{id}` until the job reaches `completed` or `failed`. Use an `Idempotency-Key` when retrying must not create a duplicate logical job.

## Related documentation

- [Authentication](https://docs.upscrape.com/docs/api/authentication)
- [Jobs and results](https://docs.upscrape.com/docs/api/jobs)
- [Errors and retries](https://docs.upscrape.com/docs/api/errors)
- [Idempotency](https://docs.upscrape.com/docs/api/idempotency)
