Location lookup
GET
/location/v1/locations
Resolves a complete location from a country, state, city and postal code, returning the four
normalised entities in a single response. Use it to validate an address without walking the
hierarchy level by level; it answers 404 when the combination does not exist.
Autorizaciones
OAuth2
OAuth2 security scheme
clientCredentials Flow
URL del token
"/api/v2/auth/token"Scopes:
"zertiban-api"Access to the API
Parámetros
Query Parameters
country*
ISO 3166 alpha-2 country code.
Tipo
Requeridostring
Ejemplo
"ES"postal_code*
Postal code of the city.
Tipo
Requeridostring
Ejemplo
"33010"state_code*
State code, as returned by the state list endpoint.
Tipo
Requeridostring
Ejemplo
"ES-AS"city_code*
City code, as returned by the city list endpoint.
Tipo
Requeridostring
Ejemplo
"ES-AS-OV"Respuestas
Location information
application/json
JSON "country": { "code": "ES", "name": "Spain" }, "state": { "code": "ES-AS", "name": "Asturias" }, "city": { "code": "ES-AS-OV", "name": "Oviedo" }, "postalCode": { "code": "33010" }
{
}