Address and Location AutoComplete
Search for addresses, cities, neighborhoods, and other location types with autocomplete functionality. Supports various search types including addresses, streets, cities, neighborhoods, counties, APNs, states, and ZIP codes.
Body
Required
AutoComplete search request
-
The search query string (minimum 2 characters)
Minimum length is
2
, maximum length is100
. -
Latitude to bias the search results
Minimum value is
-90
, maximum value is90
. -
Longitude to bias the search results
Minimum value is
-180
, maximum value is180
. -
Number of precision digits for coordinates
Minimum value is
1
, maximum value is10
. Default value is3
.
POST
/v2/AutoComplete
curl \
--request POST 'https://api.realestateapi.com/v2/AutoComplete' \
--header "Content-Type: application/json" \
--header "x-api-key: string" \
--header "x-user-id: string" \
--data '{"search":"peachtree"}'
Request examples
Basic search
{
"search": "peachtree"
}
{
"search": "peachtree",
"latitude": 33.749,
"longitude": -84.388
}
{
"search": "peachtree",
"latitude": 33.749,
"longitude": -84.388,
"search_types": [
"A",
"C"
]
}
Response examples (200)
{
"data": [
{
"city": "Peachtree City",
"state": "GA",
"title": "Peachtree City, GA",
"searchType": "C"
},
{
"city": "Peachtree Corners",
"state": "GA",
"title": "Peachtree Corners, GA",
"searchType": "C"
}
],
"live": true,
"input": {
"search": "peachtree",
"latitude": 33.749,
"longitude": -84.388
},
"statusCode": 200,
"totalResults": 25,
"returnedResults": 2
}
Response examples (400)
{
"error": "Bad Request",
"message": "Invalid input parameters",
"statusCode": 400,
"details": {}
}
Response examples (401)
{
"error": "Unauthorized",
"message": "Invalid or missing API key",
"statusCode": 401
}
Response examples (500)
{
"error": "Internal Server Error",
"message": "An unexpected error occurred",
"statusCode": 500
}