# 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 -X POST https://data.upscrape.com/execute \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"center_latitude":28.6315,"center_longitude":77.2167,"city":"ncr","max_restaurants":100,"radius_km":5,"step_km":2},"capability":"zomato.restaurants.all"}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `center_latitude` | `number` | No |  |
| `center_longitude` | `number` | No |  |
| `city` | `string` | No |  |
| `concurrency` | `integer` | No |  |
| `max_cells` | `integer` | No |  |
| `max_latitude` | `number` | No |  |
| `max_longitude` | `number` | No |  |
| `max_restaurants` | `integer` | No |  |
| `min_latitude` | `number` | No |  |
| `min_longitude` | `number` | No |  |
| `radius_km` | `number` | No |  |
| `step_km` | `number` | No |  |

### Example input

```json
{
  "center_latitude": 28.6315,
  "center_longitude": 77.2167,
  "city": "ncr",
  "max_restaurants": 100,
  "radius_km": 5,
  "step_km": 2
}
```

## Response

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

No committed sample output is available for this capability.


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

See [jobs and results](https://docs.upscrape.com/docs/api/jobs), [errors and retries](https://docs.upscrape.com/docs/api/errors), and [idempotency](https://docs.upscrape.com/docs/api/idempotency).

## Machine-readable contract

- [Capability OpenAPI 3.1](https://docs.upscrape.com/docs/platforms/zomato/zomato.restaurants.all/openapi.json)
- [Platform OpenAPI 3.1](https://upscrape.com/scrapers/zomato/openapi.json)
- [Focused coding-agent prompt](https://upscrape.com/scrapers/zomato/capabilities/zomato.restaurants.all/llm.md)
