# Resolve Place

Resolve an address or place ID to coordinates, address details, and Zepto store serviceability.

- Platform: [Zepto](https://docs.upscrape.com/docs/platforms/zepto)
- Capability ID: `zepto.place.resolve`
- Cost: 1 credit per request
- Maximum runtime: 180 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":{"query":"Indiranagar Bengaluru"},"capability":"zepto.place.resolve"}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `place_id` | `string` | No | Google Maps place ID to resolve directly. |
| `query` | `string` | No | Place name or address to search for. |

### Example input

```json
{
  "query": "Indiranagar Bengaluru"
}
```

## 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
{
  "city": "Bengaluru",
  "country": "India",
  "country_code": "IN",
  "district": "Bengaluru Urban",
  "formatted_address": "Indiranagar, Bengaluru, Karnataka, India",
  "latitude": 12.9783692,
  "locality": "Indiranagar",
  "location_eta_in_minutes": 12,
  "location_eta_serviceable": true,
  "location_latitude": 12.9783692,
  "location_longitude": 77.6408356,
  "location_serviceable": true,
  "location_source_url": "https://bff-gateway.zepto.com/lms/api/v2/get_page?latitude=12.9783692&longitude=77.6408356&page_type=HOME&version=v2&show_new_eta_banner=true&page_size=3&enforce_platform_type=DESKTOP",
  "location_store_id": "5b1796e1-36c2-4ae9-83a0-c03c25cac05a",
  "location_store_ids": [
    "5b1796e1-36c2-4ae9-83a0-c03c25cac05a"
  ],
  "location_type": "APPROXIMATE",
  "longitude": 77.6408356,
  "place_id": "ChIJkQN3GKQWrjsRNhBQJrhGD7U",
  "query": "Indiranagar Bengaluru",
  "source_url": "https://bff-gateway.zepto.com/api/v1/maps/place/details/?place_id=ChIJkQN3GKQWrjsRNhBQJrhGD7U&session_token=aae244b8-7164-42ab-a0de-671480b892c2",
  "state": "Karnataka",
  "state_code": "KA",
  "types": "political sublocality sublocality_level_1"
}
```
### 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` | Bengaluru |
| `country` | `string` | India |
| `country_code` | `string` | IN |
| `district` | `string` | Bengaluru Urban |
| `formatted_address` | `string` | Indiranagar, Bengaluru, Karnataka, India |
| `latitude` | `number` | 12.9783692 |
| `locality` | `string` | Indiranagar |
| `location_eta_in_minutes` | `integer` | 12 |
| `location_eta_serviceable` | `boolean` | true |
| `location_latitude` | `number` | 12.9783692 |
| `location_longitude` | `number` | 77.6408356 |
| `location_serviceable` | `boolean` | true |
| `location_source_url` | `string` | https://bff-gateway.zepto.com/lms/api/v2/get_page?latitude=12.9783692&l… |
| `location_store_id` | `string` | 5b1796e1-36c2-4ae9-83a0-c03c25cac05a |
| `location_store_ids` | `array` | 1 items |
| `location_store_ids` | `array` | 1 items |
| `location_type` | `string` | APPROXIMATE |
| `longitude` | `number` | 77.6408356 |
| `place_id` | `string` | ChIJkQN3GKQWrjsRNhBQJrhGD7U |
| `query` | `string` | Indiranagar Bengaluru |
| `source_url` | `string` | https://bff-gateway.zepto.com/api/v1/maps/place/details/?place_id=ChIJk… |
| `state` | `string` | Karnataka |
| `state_code` | `string` | KA |
| `types` | `string` | political sublocality sublocality_level_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.

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/zepto/zepto.place.resolve/openapi.json)
- [Platform OpenAPI 3.1](https://upscrape.com/scrapers/zepto/openapi.json)
- [Focused coding-agent prompt](https://upscrape.com/scrapers/zepto/capabilities/zepto.place.resolve/llm.md)
