Lookup by DNI
https://api.latinfo.dev/pe/dni/{dni}
Converts DNI (8-digit national ID) to RUC using check digit algorithm, then returns company data.
Latinfo identifies the originating government dataset and preserves source evidence and freshness when the publisher exposes them. Verify material decisions with that institution.
Parameters
dnistringpathrequiredDNI number (8 digits)
Example: 12345678
Request example
curl https://api.latinfo.dev/pe/dni/12345678 \
-H "Authorization: Bearer $LATINFO_API_KEY"
Responses
200Person found
application/json400Invalid DNI format
401Missing or invalid API key
404DNI not found
429Rate limit exceeded
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.