# Get delivery ETA

Return the current Instamart serving store and delivery ETA for a serviceable delivery address and coordinates.

- Platform: [Swiggy Instamart](https://docs.upscrape.com/docs/platforms/swiggy-instamart)
- Capability ID: `swiggy-instamart.eta`
- 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": {
    "address": "Koramangala, Bengaluru, Karnataka, India",
    "annotation": "Koramangala, Bengaluru, Karnataka, India",
    "latitude": 12.9352403,
    "longitude": 77.624532
  },
  "capability": "swiggy-instamart.eta"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `address` | `string` | Yes |  |
| `address_id` | `string` | No | Address identifier. |
| `annotation` | `string` | No |  |
| `latitude` | `number` | Yes | Latitude in decimal degrees. From -90 to 90. |
| `longitude` | `number` | Yes | Longitude in decimal degrees. From -180 to 180. |

### Example input

```json
{
  "address": "Koramangala, Bengaluru, Karnataka, India",
  "annotation": "Koramangala, Bengaluru, Karnataka, India",
  "latitude": 12.9352403,
  "longitude": 77.624532
}
```

## 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
{
  "address": "Koramangala, Bengaluru, Karnataka, India",
  "captured_at": "2026-09-28T17:31:13Z",
  "eta_minutes": 9,
  "eta_unit": "MINS",
  "eta_value": "9",
  "latitude": 12.9352403,
  "layout_id": "4987",
  "longitude": 77.624532,
  "primary_store_id": "1396284",
  "serviceability_status": "SERVICEABLE",
  "serviceability_type": "FAST_SERVICEABLE",
  "serviceable": true,
  "store_id": "1396284"
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `address` | `string` | Koramangala, Bengaluru, Karnataka, India |
| `captured_at` | `string` | 2026-09-28T17:31:13Z |
| `eta_minutes` | `integer` | 9 |
| `eta_unit` | `string` | MINS |
| `eta_value` | `string` | 9 |
| `latitude` | `number` | 12.9352403 |
| `layout_id` | `string` | 4987 |
| `longitude` | `number` | 77.624532 |
| `primary_store_id` | `string` | 1396284 |
| `serviceability_status` | `string` | SERVICEABLE |
| `serviceability_type` | `string` | FAST_SERVICEABLE |
| `serviceable` | `boolean` | true |
| `store_id` | `string` | 1396284 |

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