API Reference/Locations

List locations

Returns bounded location typeahead results. Empty catalogue requests are rejected; use a canonical location ID for exact retrieval.

GET/v0/locations

Authentication

bearerAuth · http bearer

Organisation API key supplied only through the Authorization header.

Required scopes: catalogues:read.

Parameters

NameTypeDescription
queryrequiredstringquery

Case-insensitive typeahead text. At least 2 characters are required; empty catalogue dumps are not supported.

Schema and examples
string

Case-insensitive typeahead text. At least 2 characters are required; empty catalogue dumps are not supported.

Examples
["london"]
Maximum length
100
Minimum length
2

example-1: london

cursoroptionalstringquery

Opaque pagination cursor.

Schema and examples
string

Opaque pagination cursor.

Maximum length
1000
Minimum length
1
limitoptionalintegerquery

Maximum resources to return, from 1 to 20. Defaults to 20.

Schema and examples
integer

Maximum resources to return, from 1 to 20. Defaults to 20.

Default
20
Maximum
20
Minimum
1
typeoptionalstringquery

Restrict results to one canonical location resource kind.

Schema and examples
string

Restrict results to one canonical location resource kind.

Allowed values
["region","country","admin","metro","city"]
Examples
["metro"]

example-1: metro

parentoptionalstringquery

Restrict results to locations contained by this canonical parent ID, such as country:GB or metro:oecd:GB:london.

Schema and examples
string

Restrict results to locations contained by this canonical parent ID, such as country:GB or metro:oecd:GB:london.

Examples
["country:GB"]
Maximum length
240
Minimum length
1

example-1: country:GB

Responses

The requested catalogue resource.

application/json
Cache-Controlrequired

Public cache policy for the bounded catalogue response.

string
ETagrequired

Strong representation validator for conditional GET requests.

string
traceparentrequired

W3C trace context generated for this request attempt.

string
Pattern
^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$
X-Request-Idrequired

Unique UUIDv7 identifier for this request attempt.

string<uuid>
Format
uuid

Pagination

PropertyValue
Allows page size changetrue
Cursor ttl seconds86400
Has more pathhas_more
Items pathdata
Next cursor pathnext_cursor
Stylekeyset