Reference codebooks · lookupReferencePeIneiUbigeo
OpenAPI

Peru district geography codebook

GET 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

Kailangan ng authentication. Gumagamit ang REST request ng Latinfo api key. Idinaragdag ng console ang authorization header at hindi iniimbak ang key.

Mga parameter

codestringpathkailangan

Use 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.
Content-Type: application/json

Mga field ng tugon

ubigeo string kailangan
departamento string kailangan

Published department name.

provincia string kailangan

Published province name.

distrito string kailangan

Published district name.

latitude string kailangan

District reference latitude; not the company coordinates.

longitude string kailangan

District 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
Walang nakadokumentong response body.
401Nawawala o hindi wastong api key
Walang nakadokumentong response body.
404Code not in this reference snapshot
Walang nakadokumentong response body.
429Request limit exceeded
Walang nakadokumentong response body.
503Reference source unavailable
Walang nakadokumentong response body.
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.