# Place Details

Resolve a Zepto place ID to coordinates and address components.

- Platform: [Zepto](https://docs.upscrape.com/docs/platforms/zepto)
- Capability ID: `zepto.place.details`
- 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":{"place_id":"ChIJkQN3GKQWrjsRNhBQJrhGD7U"},"capability":"zepto.place.details"}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `place_id` | `string` | Yes | Google Maps place ID to look up. |

### Example input

```json
{
  "place_id": "ChIJkQN3GKQWrjsRNhBQJrhGD7U"
}
```

## 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_type": "APPROXIMATE",
  "longitude": 77.6408356,
  "place_id": "ChIJkQN3GKQWrjsRNhBQJrhGD7U",
  "source_url": "https://bff-gateway.zepto.com/api/v1/maps/place/details/?place_id=ChIJkQN3GKQWrjsRNhBQJrhGD7U&session_token=2ef912dc-b111-4590-9d01-96bc40bbb47e",
  "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_type` | `string` | APPROXIMATE |
| `longitude` | `number` | 77.6408356 |
| `place_id` | `string` | ChIJkQN3GKQWrjsRNhBQJrhGD7U |
| `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.details/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.details/llm.md)
