# List all restaurants

Crawl a Zomato city grid and stream deduplicated delivery restaurants. Supports city presets, explicit bounds, or center+radius.

- Platform: [Zomato](https://docs.upscrape.com/docs/platforms/zomato)
- Capability ID: `zomato.restaurants.all`
- 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 $UPSCRAPE_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "center_latitude": 28.6315,
    "center_longitude": 77.2167,
    "city": "ncr",
    "max_restaurants": 100,
    "radius_km": 5
  },
  "capability": "zomato.restaurants.all"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `center_latitude` | `number` | No | From -90 to 90. |
| `center_longitude` | `number` | No | From -180 to 180. |
| `city` | `string` | No | City name. Default: `ncr`. |
| `max_latitude` | `number` | No | From -90 to 90. |
| `max_longitude` | `number` | No | From -180 to 180. |
| `max_restaurants` | `integer` | No | From 1 to 5000. Default: `500`. |
| `min_latitude` | `number` | No | From -90 to 90. |
| `min_longitude` | `number` | No | From -180 to 180. |
| `radius_km` | `number` | No | From 0.001 to 100. |

### Example input

```json
{
  "center_latitude": 28.6315,
  "center_longitude": 77.2167,
  "city": "ncr",
  "max_restaurants": 100,
  "radius_km": 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 example shows one response. Values and optional fields vary with the data available.

```json
{
  "items": [
    {
      "aggregate_rating": 3.9,
      "fetched_at": "2026-09-24T08:48:44Z",
      "name": "Hira Sweets",
      "query_context": {
        "latitude": 28.6315,
        "longitude": 77.2167
      },
      "res_id": "300658",
      "restaurant_id": "300658",
      "slug": "hira-sweets-connaught-place-new-delhi",
      "source_url": "https://www.zomato.com/ncr/delivery",
      "url": "https://www.zomato.com/ncr/hira-sweets-connaught-place-new-delhi/order",
      "votes": 15
    }
  ],
  "summary": {
    "city": "ncr",
    "fetched_at": "2026-09-24T08:48:44Z",
    "source_url": "https://www.zomato.com/ncr/delivery",
    "total_items": 1
  }
}
```
### 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` | 1 items |
| `items` | `array` | 1 items |
| `summary` | `object` | 4 fields |
| `summary.city` | `string` | ncr |
| `summary.fetched_at` | `string` | 2026-09-24T08:48:44Z |
| `summary.source_url` | `string` | https://www.zomato.com/ncr/delivery |
| `summary.total_items` | `integer` | 1 |

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