# Place Autocomplete

Find Zepto-supported address and place suggestions.

- Platform: [Zepto](https://docs.upscrape.com/docs/platforms/zepto)
- Capability ID: `zepto.place.autocomplete`
- 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":{"limit":3,"query":"Indiranagar Bengaluru"},"capability":"zepto.place.autocomplete"}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | `integer` | No | Maximum number of autocomplete suggestions to return. |
| `query` | `string` | Yes | Partial place name or address to autocomplete. |

### Example input

```json
{
  "limit": 3,
  "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
{
  "count": 3,
  "query": "Indiranagar Bengaluru",
  "results": [
    {
      "description": "Indiranagar, Bengaluru, Karnataka, India",
      "main_text": "Indiranagar",
      "place_id": "ChIJkQN3GKQWrjsRNhBQJrhGD7U",
      "rank": 1,
      "secondary_text": "Bengaluru, Karnataka, India",
      "source_url": "https://bff-gateway.zepto.com/api/v1/maps/place/autocomplete/?place_name=Indiranagar+Bengaluru&session_token=fd238724-f981-4bed-9318-1225ca084feb",
      "types": "geocode political sublocality sublocality_level_1"
    },
    {
      "description": "Indiranagar, Chinmaya Mission Hospital Road, Binnamangala, Stage 1, Indiranagar, Bengaluru, Karnataka, India",
      "main_text": "Indiranagar",
      "place_id": "ChIJZbZd-qQWrjsRe7G5a9GUZ9U",
      "rank": 2,
      "secondary_text": "Chinmaya Mission Hospital Road, Binnamangala, Stage 1, Indiranagar, Bengaluru, Karnataka, India",
      "source_url": "https://bff-gateway.zepto.com/api/v1/maps/place/autocomplete/?place_name=Indiranagar+Bengaluru&session_token=fd238724-f981-4bed-9318-1225ca084feb",
      "types": "establishment point_of_interest subway_station transit_station"
    },
    {
      "description": "Indiranagar, 6th Block, Koramangala, Bengaluru, Karnataka, India",
      "main_text": "Indiranagar, 6th Block, Koramangala",
      "place_id": "ChIJXTaHq0UUrjsRXCmRVp-vx3I",
      "rank": 3,
      "secondary_text": "Bengaluru, Karnataka, India",
      "source_url": "https://bff-gateway.zepto.com/api/v1/maps/place/autocomplete/?place_name=Indiranagar+Bengaluru&session_token=fd238724-f981-4bed-9318-1225ca084feb",
      "types": "geocode political sublocality sublocality_level_3"
    }
  ],
  "source_url": "https://bff-gateway.zepto.com/api/v1/maps/place/autocomplete/?place_name=Indiranagar+Bengaluru&session_token=fd238724-f981-4bed-9318-1225ca084feb"
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `count` | `integer` | 3 |
| `query` | `string` | Indiranagar Bengaluru |
| `results` | `array` | 3 items |
| `results` | `array` | 3 items |
| `source_url` | `string` | https://bff-gateway.zepto.com/api/v1/maps/place/autocomplete/?place_nam… |

## 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.autocomplete/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.autocomplete/llm.md)
