Short answer: To run a Peru DNI lookup against RENIEC by API, send a GET to https://api.verifik.co/v3/pe/cedula with documentType=DNI, the 8-digit number in documentNumber and your Bearer token. Verifik returns the full name, date of birth, sex, civil status, address and a timestamped signature. Each lookup is paid with smartCHECK credits, from $49 a month.
Updated: November 14, 2026 · checked against the official API documentation.
Asking a user for their DNI is easy; confirming that the number exists and matches the name they typed is another matter. With Verifik’s Peruvian citizen API you do it in 1 call: GET /v3/pe/cedula takes the DNI and returns identity data that, according to the documentation, comes from official sources of Peru’s National Registry of Identification and Civil Status (RENIEC). If you need the surnames split and the address broken down, there is a second route, GET /v3/pe/cedula/extra.
Peru DNI lookup API: what it returns in 2026
The standard lookup returns a data object with 12 fields, plus a Verifik signature and a lookup ID:
| Field | What it holds |
|---|---|
fullName, firstName, lastName | Full name, given names and surnames |
arrayName | Each name as an item in a list |
documentType, documentNumber | Always DNI and the number you queried |
verificationDigit | The DNI check digit |
dateOfBirth | Date of birth in DD-MM-YYYY (not ISO) |
sex, civilStatus | Sex and civil status |
address, ubigeoReniec | Address and ubigeo code |
signature, id | Date and time with the message “Certified by Verifik.co” and an ID for your audit trail |
Watch the date: it arrives as DD-MM-YYYY (for example, 19-12-1995), so convert it before calculating ages.
You can try what this Peru DNI lookup API guide covers in your own account: create a Verifik account.
Peru DNI lookup API: standard vs full-ID endpoint
Both routes take the same parameters but return different data:
Standard /v3/pe/cedula | Full ID /v3/pe/cedula/extra | |
|---|---|---|
| Best for | Identity checks at onboarding | Forms that store surnames separately or the district |
| Extra fields | — | paternalLastName, maternalLastName, province, area, homeDistrict |
ubigeoReniec and verificationDigit | Populated in the documentation example | Return not_available |
| Photo, issue and expiry dates | No | Present as not_available; photo not offered |
Rule of thumb: if you only match name and DNI, use the standard lookup. If you need paternal and maternal surnames in separate fields, use /extra (Peru – Full ID documentation).
How to call the Peru DNI lookup API: parameters and code
You need your Verifik token in the Authorization: Bearer header and two required parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
documentType | string | Yes | Only allowed value: DNI |
documentNumber | string | Yes | 8-digit DNI, no spaces |
All three examples run the same standard lookup; for the full ID, add /extra to the URL. Keep the token in a server-side environment variable.
cURL
curl -G "https://api.verifik.co/v3/pe/cedula" \
-H "Accept: application/json" \
-H "Authorization: Bearer $VERIFIK_TOKEN" \
--data-urlencode "documentType=DNI" \
--data-urlencode "documentNumber=12345678"Node.js
import axios from "axios";
try {
const { data } = await axios.request({
method: "GET",
url: "https://api.verifik.co/v3/pe/cedula",
params: { documentType: "DNI", documentNumber: "12345678" },
headers: {
Accept: "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`,
},
});
console.log(data.data.fullName, data.id);
} catch (error) {
console.error(error.response?.status, error.response?.data);
}Python
import os, requests
url = "https://api.verifik.co/v3/pe/cedula" # add /extra for the full-ID route
headers = {
"Accept": "application/json",
"Authorization": f"Bearer {os.getenv('VERIFIK_TOKEN')}",
}
params = {"documentType": "DNI", "documentNumber": "12345678"}
r = requests.get(url, headers=headers, params=params, timeout=30)
print(r.status_code, r.json())Peru DNI lookup API response: JSON examples
This is a 200 response from the standard lookup (fictitious data, same structure as the documentation):
{
"data": {
"address": "AV. EJEMPLO 123",
"arrayName": [
"MARIA",
"ELENA",
"QUISPE",
"ROJAS"
],
"civilStatus": "SOLTERO",
"dateOfBirth": "19-12-1995",
"documentNumber": "12345678",
"documentType": "DNI",
"firstName": "MARIA ELENA",
"fullName": "MARIA ELENA QUISPE ROJAS",
"lastName": "QUISPE ROJAS",
"sex": "F",
"ubigeoReniec": "150101",
"verificationDigit": "2"
},
"signature": {
"dateTime": "November 14, 2026 9:20 AM",
"message": "Certified by Verifik.co"
},
"id": "PE01A"
}And this is the shape of the /extra response. Note the fields that currently arrive as not_available:
{
"data": {
"address": "LIMA-LIMA-MIRAFLORES",
"arrayName": [
"MARIA",
"ELENA",
"QUISPE",
"ROJAS"
],
"civilStatus": "SOLTERO",
"dateOfBirth": "19-12-1995",
"documentNumber": "12345678",
"documentType": "DNI",
"expeditionDate": "not_available",
"expirationDate": "not_available",
"firstName": "MARIA ELENA",
"fullName": "MARIA ELENA QUISPE ROJAS",
"lastName": "QUISPE ROJAS",
"maternalLastName": "ROJAS",
"paternalLastName": "QUISPE",
"photo": "not_available",
"sex": "F",
"ubigeoReniec": "not_available",
"verificationDigit": "not_available",
"province": "LIMA",
"area": "LIMA",
"homeDistrict": "MIRAFLORES"
},
"signature": {
"dateTime": "November 14, 2026 9:21 AM",
"message": "Certified by Verifik.co"
},
"id": "PE02B"
}Peru DNI lookup API error codes
These are the cases the documentation shows. None of them should become an automatic rejection: a 404 can simply be a mistyped number.
| Code | Response | What to do |
|---|---|---|
| 200 | Successful lookup | Match the name and store id and signature |
| 404 | NotFound: “Record not found.” | Ask the user to confirm the DNI or send the case to manual review |
| 409 | MissingParameter: “missing documentNumber” (or “missing documentType” on /extra) | Send both parameters |
| 409 | MissingParameter: “documentNumber maximum length: 8” | Strip spaces, dots and dashes; accept 8 digits only |
| 409 | MissingParameter: “documentType must be one of: [DNI]” (/extra) | Use DNI; the foreigner ID card has its own endpoint |
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "documentNumber maximum length: 8\n"
}Business rules for onboarding in Peru
- Pre-validation: accept only 8 digits in the DNI field. It saves 409 errors and credits.
- Name match: compare
fullNamewith the name the user typed. UsearrayNameto tolerate different order, missing middle names or accents. - Minimum age: convert
dateOfBirthfromDD-MM-YYYYand calculate age on your server. - Unavailable fields: on
/extra, treatnot_availableas missing data, never as a valid value. - Ownership: the lookup confirms the DNI exists and whose it is; to know the person signing up is the holder, add liveness detection with a face match.
- Evidence: keep the
idandsignatureof every response.
For full KYC in Peru, combine the DNI with the driver’s licence check by DNI and the RUC lookup at SUNAT for companies. Our Peru KYC API guide brings DNI, foreigner ID, biometrics and RUC together in one flow.
Personal data: what Verifik’s terms say
Name, date of birth, civil status and address are personal data. The smartCHECK terms and conditions state that when you look up a third party’s information, your company acts as the data Controller and Verifik as the Processor. In that case you must:
- Collect, store, use, share and delete the data in line with applicable law.
- Obtain each holder’s authorization and keep proof of it.
- Notify Verifik of updates, corrections, revoked authorizations and deletion requests.
This article is not legal advice: check your use case with your legal team.
How much the Peru DNI lookup costs with Verifik
Each lookup is deducted from your smartCHECK plan credits. According to the smartCHECK pricing page:
- Starter: $49 a month, or $490 a year with $588 in credits.
- Basic: $129 a month, or $1,290 a year with $1,548 in credits.
- Plus: $299 a month, or $2,990 a year with $3,588 in credits.
- Business: $649 a month, or $6,490 a year with $7,788 in credits.
Annual plans include 2 free months, and smartCHECK covers more than 90 APIs from over 15 countries. For the exact cost per call, ask when you book a meeting.
If you’re a business, you can get the Peru DNI check for USD $0.15 per query on the Smart Business plan.
Start looking up Peruvian DNIs today
Automating DNI lookups saves manual reviews and leaves a signed response for every check. Read the endpoint documentation and pick the route your form needs.
Ready to start? Create your free Verifik account or book a demo to see how to add DNI validation to your onboarding.




