GET
/v4/autocomplete.jsonAutocomplete API
Get place suggestions as the user types. Returns matching places with their coordinates for fast, typo-tolerant search experiences.
Try in Playground →Authentication
Include your API token in the request header:
X-Authorization-Token: your_token_here
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| query | string | Required | Partial text to search for |
| latitude | number | Optional | Bias results near this latitude |
| longitude | number | Optional | Bias results near this longitude |
Code Examples
curl "https://apihub.latlong.ai/v4/autocomplete.json?query=VALUE" \ -H "X-Authorization-Token: YOUR_TOKEN"
Response
JSON200 OK
{
"status": "success",
"code": 1001,
"data": [
{
"name": "Koramangala, Bangalore, Karnataka",
"geoid": "abc123",
"latitude": 12.9352,
"longitude": 77.6245
},
{
"name": "Koramangala 4th Block, Bangalore",
"geoid": "def456",
"latitude": 12.9340,
"longitude": 77.6260
}
]
}Notes
- Minimum 3 characters required for results.
- Pass latitude/longitude to bias results toward a specific area.
- Use the returned
geoidwith the Search API to get full details.
Ready to try it?
Test this API interactively in the playground.

