Search locations (statistical areas)
GET
/api/v1.1/{country_code}/search/locationsAllows searching our location taxonomy for locations / statistical areas matching a given search term q
.
Example uses for this data include creating a searching for a specific location for use in further requests, or populating a typeahead / autocomplete in a user interface.
Request
A two character code that specifies which country dataset to query.
Exclude locations / statistical areas of with a given type ID from the results.
The maximum number of matches to return in a search.
The search query.
Limit the search to locations / statistical areas of the specified type.
Request samples
Responses
The unique ID of the location / statistical area.
The name of the location / statistical area.
The official government code for the location / statistical area.
The unique ID of the location / statistical area type for this location / statistical area.
The unique ID of the country to which this location / statistical area belongs.
[
{
"id": 20,
"name": "North East (England)",
"code": "TLC",
"type_id": 20,
"country_id": 1
}
]