# List restaurants

List delivery restaurants for a Zomato city.

- Platform: [Zomato](https://docs.upscrape.com/docs/platforms/zomato)
- Capability ID: `zomato.restaurants.list`
- Cost: 1 credit per request
- Maximum runtime: 60 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 $UPSCRAPE_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "city": "ncr",
    "limit": 10
  },
  "capability": "zomato.restaurants.list"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `city` | `string` | No | Zomato delivery-city slug. Default: `ncr`. |
| `latitude` | `number` | No | Latitude in decimal degrees. From -90 to 90. |
| `limit` | `integer` | No | Maximum restaurants from the public city page. From 1 to 200. Default: `50`. |
| `longitude` | `number` | No | Longitude in decimal degrees. From -180 to 180. |

### Example input

```json
{
  "city": "ncr",
  "limit": 10
}
```

## 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 example shows one response. Values and optional fields vary with the data available.

```json
{
  "city": "ncr",
  "count": 1,
  "fetched_at": "2026-09-24T08:48:44Z",
  "latitude": 28.625789,
  "longitude": 77.210276,
  "results": [
    {
      "aggregate_rating": 3.9,
      "fetched_at": "2026-09-24T08:48:44Z",
      "name": "Hira Sweets",
      "res_id": "300658",
      "restaurant_id": "300658",
      "slug": "hira-sweets-connaught-place-new-delhi",
      "url": "https://www.zomato.com/ncr/hira-sweets-connaught-place-new-delhi/order",
      "votes": 15
    }
  ],
  "source_url": "https://www.zomato.com/ncr/delivery"
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `city` | `string` | ncr |
| `count` | `integer` | 1 |
| `fetched_at` | `string` | 2026-09-24T08:48:44Z |
| `latitude` | `number` | 28.625789 |
| `longitude` | `number` | 77.210276 |
| `results` | `array` | 1 items |
| `results` | `array` | 1 items |
| `source_url` | `string` | https://www.zomato.com/ncr/delivery |

## 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)
