Peru · lookupDni

Lookup by DNI

GET https://api.latinfo.dev/pe/dni/{dni}

Converts DNI (8-digit national ID) to RUC using check digit algorithm, then returns company data.

EV
Evidence-first response

Latinfo identifies the originating government dataset and preserves source evidence and freshness when the publisher exposes them. Verify material decisions with that institution.

Authentication required. REST requests use a Latinfo API key. The interactive console builds the authorization header and does not store the key.

Parameters

dnistringpathrequired

DNI number (8 digits)

Example: 12345678

Request example

curl https://api.latinfo.dev/pe/dni/12345678 \
  -H "Authorization: Bearer $LATINFO_API_KEY"

Responses

200Person found
Content-Type: application/json
400Invalid DNI format
No response body documented.
401Missing or invalid API key
No response body documented.
404DNI not found
No response body documented.
429Rate limit exceeded
No response body documented.

Example JSON

{
  "ruc": "20100047218",
  "razon_social": "BANCO DE CREDITO DEL PERU",
  "estado": "ACTIVO",
  "condicion": "HABIDO",
  "ubigeo": "150114",
  "tipo_via": "JR.",
  "nombre_via": "CENTENARIO",
  "codigo_zona": "URB.",
  "tipo_zona": "LADERAS DE MELGAREJO",
  "numero": "156",
  "interior": "-",
  "lote": "-",
  "departamento": "-",
  "manzana": "-",
  "kilometro": "-"
}

Provenance and limitations

Coverage varies by country and public source. A missing field is not evidence that the underlying fact does not exist. Public registries may be delayed or contain source errors; inspect the returned evidence and source date before relying on a result.