Peru district geography codebook
https://api.latinfo.dev/pe/inei/ubigeo/{code}
A district code and administrative hierarchy with reference coordinates. Use the six-digit UBIGEO district code. Preserve leading zeros. Coordinates locate the district reference point, not a company establishment.
Kontrata ng source
- Publisher
- INEI; augmented codebook by Jose M. Castagnetto
- Saklaw
- Peruvian districts in the augmented UBIGEO codebook.
- Kahulugan ng tala
- A district code and administrative hierarchy with reference coordinates.
- Identifier
- Use the six-digit UBIGEO district code. Preserve leading zeros.
- Tinatanggap na pattern
^\d{6}$- Bilang ng mga tala
one- Lisensya
- Hindi pa nabeberipika ang pahintulot sa muling paggamit. Hindi lisensya sa muling paggamit ang pampublikong access.
Mga kilalang limitasyon
- Coordinates locate the district reference point, not a company establishment.
Kontrata ng source para sa mga agent · Dokumentasyon ng source
Mga parameter
codestringpathkailanganUse the six-digit UBIGEO district code. Preserve leading zeros.
Example: 130101
Halimbawa ng request
curl https://api.latinfo.dev/pe/inei/ubigeo/130101 \
-H "Authorization: Bearer $LATINFO_API_KEY"
Mga tugon
200Codebook entry; values and identifiers remain strings.
application/jsonMga field ng tugon
ubigeo string kailangandepartamento string kailanganPublished department name.
provincia string kailanganPublished province name.
distrito string kailanganPublished district name.
latitude string kailanganDistrict reference latitude; not the company coordinates.
longitude string kailanganDistrict reference longitude; not the company coordinates.
Response schema
{
"type": "object",
"required": [
"ubigeo",
"departamento",
"provincia",
"distrito",
"latitude",
"longitude"
],
"additionalProperties": false,
"properties": {
"ubigeo": {
"type": "string"
},
"departamento": {
"type": "string",
"description": "Published department name."
},
"provincia": {
"type": "string",
"description": "Published province name."
},
"distrito": {
"type": "string",
"description": "Published district name."
},
"latitude": {
"type": "string",
"description": "District reference latitude; not the company coordinates."
},
"longitude": {
"type": "string",
"description": "District reference longitude; not the company coordinates."
}
}
}400Invalid code format
401Nawawala o hindi wastong api key
404Code not in this reference snapshot
429Request limit exceeded
503Reference source unavailable
Halimbawang JSON
Halimbawa ng schema lamang. Hindi ito live na tugon.
{
"ubigeo": "string",
"departamento": "string",
"provincia": "string",
"distrito": "string",
"latitude": "string",
"longitude": "string"
}Pinagmulan at mga limitasyon
Nag-iiba ang saklaw ayon sa bansa at pampublikong source. Ang nawawalang field ay hindi patunay na wala ang katotohanan. Maaaring maantala o magkamali ang mga rehistro; suriin ang ebidensya at petsa bago gamitin ang resulta.