Search
publicly-accessible
Get auto-completed search terms
Changed onProvides auto-completed search terms for restaurants, cuisines and products available in a given location.
get/search/autocomplete/{tenant}
Request
- Base URLhttps://uk.api.just-eat.io
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
tenantstring required
A valid country code, e.g. "uk".
Query parameters
searchTermstring required
User's search term - at least one character required
latlongnumber[] required
The latitude and longitude coordinates of the location in which to search. Specify the coordinates as latitude,longitude.
limitnumber
Limit the number of auto-completed terms returned by the API. Defaults to 7. Valid values 1 - 10
Response
Success
Example response
{
"terms": [
{
"term": "Pizza Palace",
"classification": "Restaurant"
},
{
"term": "Pizza",
"classification": "Cuisine"
},
{
"term": "Large Hawaiian",
"classification": "Dish"
}
]
}Changes
- warning
the optional response header
Retry-Afterremoved for the status500
- warning