# Get delivery serviceability

Resolve a delivery location and fetch restaurant-specific serviceability, ordering availability, ETA, minimum order, and status metadata.

- Platform: [Zomato](https://docs.upscrape.com/docs/platforms/zomato)
- Capability ID: `zomato.restaurant.delivery`
- 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": {
    "latitude": 28.625789,
    "longitude": 77.210276,
    "restaurant_id": "18365882"
  },
  "capability": "zomato.restaurant.delivery"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `latitude` | `number` | Yes | Delivery-location latitude. |
| `longitude` | `number` | Yes | Delivery-location longitude. |
| `res_id` | `string` | No | Compatibility alias for restaurant_id. |
| `restaurant_id` | `string` | No | Canonical numeric Zomato restaurant identifier. |

### Example input

```json
{
  "latitude": 28.625789,
  "longitude": 77.210276,
  "restaurant_id": "18365882"
}
```

## 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
{
  "delivery_available": true,
  "fetched_at": "2026-09-24T10:13:15Z",
  "location": {
    "city_id": "1",
    "city_name": "Delhi NCR",
    "delivery_subzone_id": "514",
    "entity_name": "Ywca, Ashoka Rd, Hanuman Road Area, Connaught Place, New Delhi",
    "entity_type": "subzone",
    "latitude": 28.625789,
    "longitude": 77.210276
  },
  "online_ordering": true,
  "res_id": "18365882",
  "restaurant_id": "18365882",
  "serviceable": true,
  "source_url": "https://www.zomato.com/ncr/behrouz-biryani-connaught-place-new-delhi/order"
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `delivery_available` | `boolean` | true |
| `fetched_at` | `string` | 2026-09-24T10:13:15Z |
| `location` | `object` | 7 fields |
| `location.city_id` | `string` | 1 |
| `location.city_name` | `string` | Delhi NCR |
| `location.delivery_subzone_id` | `string` | 514 |
| `location.entity_name` | `string` | Ywca, Ashoka Rd, Hanuman Road Area, Connaught Place, New Delhi |
| `location.entity_type` | `string` | subzone |
| `location.latitude` | `number` | 28.625789 |
| `location.longitude` | `number` | 77.210276 |
| `online_ordering` | `boolean` | true |
| `res_id` | `string` | 18365882 |
| `restaurant_id` | `string` | 18365882 |
| `serviceable` | `boolean` | true |
| `source_url` | `string` | https://www.zomato.com/ncr/behrouz-biryani-connaught-place-new-delhi/or… |

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