Búsqueda
curl --request GET \
--url https://entities.tukanmx.com/api/v1/zipcodes/search \
--header 'Authorization: <api-key>'import requests
url = "https://entities.tukanmx.com/api/v1/zipcodes/search"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://entities.tukanmx.com/api/v1/zipcodes/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"count": 123,
"data": [
{
"id": "<string>",
"zip_code": "<string>",
"country_id": "<string>",
"country": "<string>",
"state_id": "<string>",
"state_name": "<string>",
"municipality_id": "<string>",
"municipality_name": "<string>",
"population": 123,
"inhabited_households": 123,
"nse_predominant_level": "<string>",
"neighborhoods": [
"<string>"
],
"bbox_east": 123,
"bbox_north": 123,
"bbox_south": 123,
"bbox_west": 123,
"area_km2": 123,
"centroid_lat": 123,
"centroid_lon": 123,
"neighbors": [
"<string>"
],
"state_border": true,
"data_coverage": {
"demographic": 10,
"education": 5,
"employment": 8,
"health": 4,
"housing": 7,
"socioeconomic": 6
}
}
]
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Códigos postales
Búsqueda
Búsqueda puntual de códigos postales.
GET
/
zipcodes
/
search
Búsqueda
curl --request GET \
--url https://entities.tukanmx.com/api/v1/zipcodes/search \
--header 'Authorization: <api-key>'import requests
url = "https://entities.tukanmx.com/api/v1/zipcodes/search"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://entities.tukanmx.com/api/v1/zipcodes/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"count": 123,
"data": [
{
"id": "<string>",
"zip_code": "<string>",
"country_id": "<string>",
"country": "<string>",
"state_id": "<string>",
"state_name": "<string>",
"municipality_id": "<string>",
"municipality_name": "<string>",
"population": 123,
"inhabited_households": 123,
"nse_predominant_level": "<string>",
"neighborhoods": [
"<string>"
],
"bbox_east": 123,
"bbox_north": 123,
"bbox_south": 123,
"bbox_west": 123,
"area_km2": 123,
"centroid_lat": 123,
"centroid_lon": 123,
"neighbors": [
"<string>"
],
"state_border": true,
"data_coverage": {
"demographic": 10,
"education": 5,
"employment": 8,
"health": 4,
"housing": 7,
"socioeconomic": 6
}
}
]
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Autorizaciones
Token para autenticación. Formato requerido: token
Parámetros de consulta
Códigos postales a buscar (5 dígitos), separados por comas. Máximo 20 códigos
Pattern:
^[0-9]{5}(,[0-9]{5})*$Ejemplo:
"01000,01010,01020"
¿Esta página le ayudó?
⌘I