Autosuggest API
Get intelligent place suggestions based on partial text input with location bias. Returns places sorted by relevance and proximity.
Try in Playground →Endpoint
GET
/v5/autosuggest.jsonAuthentication
Include your token in the request header:
X-Authorization-Token: your_token
Parameters
| Name | Type | Description |
|---|---|---|
| query | string | Partial text to search for |
| latitude | number | Center latitude for proximity bias |
| longitude | number | Center longitude for proximity bias |
| state_bias | boolean | Bias results to the same state (default: true) |
Code Examples
curl "https://apihub.latlong.ai/v5/autosuggest.json?query=VALUE&latitude=VALUE&longitude=VALUE" \ -H "X-Authorization-Token: YOUR_TOKEN"
Example Response
JSON
{
"status": "success",
"code": 1001,
"data": [
{
"name": "Indiranagar, Bangalore, Karnataka",
"Coordinates": {
"latitude": 12.9784,
"longitude": 77.6408
}
},
{
"name": "Indiranagar 100 Feet Road, Bangalore",
"Coordinates": {
"latitude": 12.9780,
"longitude": 77.6395
}
}
]
}Notes
- Results are ranked by relevance and distance from the provided coordinates.
- Set
state_bias=falsefor nationwide results. - Minimum 3 characters required for results.

