Datos
curl --request POST \
--url https://entities.tukanmx.com/api/v1/zipcodes/latest \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"zip_codes": [
"05100",
"05110",
"05120"
]
}
'import requests
url = "https://entities.tukanmx.com/api/v1/zipcodes/latest"
payload = { "zip_codes": ["05100", "05110", "05120"] }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"count": 123,
"results": [
{
"id": "MEX_09016_11910",
"zip_code": "11910",
"state_id": "09",
"state_name": "Ciudad de México",
"neighborhoods": {
"Urban": {
"Standard neighborhood": [
"Lomas de Bezares"
]
}
},
"data": {
"socioeconomic_ab": 0.665102,
"socioeconomic_cplus": 0.187793,
"socioeconomic_c": 0.067293,
"socioeconomic_cminus": 0.037559,
"socioeconomic_dplus": 0.017214,
"socioeconomic_d": 0.014085,
"socioeconomic_e": 0
},
"error": "<string>"
}
]
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Endpoints
Datos
Regresa los datos más recientes para los códigos postales y categorías solicitadas.
POST
/
zipcodes
/
latest
Datos
curl --request POST \
--url https://entities.tukanmx.com/api/v1/zipcodes/latest \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"zip_codes": [
"05100",
"05110",
"05120"
]
}
'import requests
url = "https://entities.tukanmx.com/api/v1/zipcodes/latest"
payload = { "zip_codes": ["05100", "05110", "05120"] }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"count": 123,
"results": [
{
"id": "MEX_09016_11910",
"zip_code": "11910",
"state_id": "09",
"state_name": "Ciudad de México",
"neighborhoods": {
"Urban": {
"Standard neighborhood": [
"Lomas de Bezares"
]
}
},
"data": {
"socioeconomic_ab": 0.665102,
"socioeconomic_cplus": 0.187793,
"socioeconomic_c": 0.067293,
"socioeconomic_cminus": 0.037559,
"socioeconomic_dplus": 0.017214,
"socioeconomic_d": 0.014085,
"socioeconomic_e": 0
},
"error": "<string>"
}
]
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Autorizaciones
Token para autenticación. Formato requerido: token
Cuerpo
application/json
Lista de códigos postales (máximo 100)
Required array length:
1 - 100 elementsPattern:
^[0-9]{5}$Ejemplo:
["05100", "05110", "05120"]
Categorías de indicadores a filtrar (opcional)
Opciones disponibles:
demographic, education, employment, health, housing, socioeconomic ¿Esta página le ayudó?