Illustration of a Peru DNI lookup with RENIEC data: an ID card with the Peruvian flag linked to a verified data panel

Peru DNI Lookup API with RENIEC (2026): 2 Endpoints, 12 Fields and a Response Example

Table of Contents
Share this article

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:

FieldWhat it holds
fullName, firstName, lastNameFull name, given names and surnames
arrayNameEach name as an item in a list
documentType, documentNumberAlways DNI and the number you queried
verificationDigitThe DNI check digit
dateOfBirthDate of birth in DD-MM-YYYY (not ISO)
sex, civilStatusSex and civil status
address, ubigeoReniecAddress and ubigeo code
signature, idDate 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/cedulaFull ID /v3/pe/cedula/extra
Best forIdentity checks at onboardingForms that store surnames separately or the district
Extra fields—paternalLastName, maternalLastName, province, area, homeDistrict
ubigeoReniec and verificationDigitPopulated in the documentation exampleReturn not_available
Photo, issue and expiry datesNoPresent 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:

ParameterTypeRequiredDescription
documentTypestringYesOnly allowed value: DNI
documentNumberstringYes8-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.

CodeResponseWhat to do
200Successful lookupMatch the name and store id and signature
404NotFound: “Record not found.”Ask the user to confirm the DNI or send the case to manual review
409MissingParameter: “missing documentNumber” (or “missing documentType” on /extra)Send both parameters
409MissingParameter: “documentNumber maximum length: 8”Strip spaces, dots and dashes; accept 8 digits only
409MissingParameter: “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

  1. Pre-validation: accept only 8 digits in the DNI field. It saves 409 errors and credits.
  2. Name match: compare fullName with the name the user typed. Use arrayName to tolerate different order, missing middle names or accents.
  3. Minimum age: convert dateOfBirth from DD-MM-YYYY and calculate age on your server.
  4. Unavailable fields: on /extra, treat not_available as missing data, never as a valid value.
  5. 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.
  6. Evidence: keep the id and signature of 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.

Miguel Treviño - Co-founder and CTO, Verifik

Frequently Asked Questions (FAQs)

➖

What do I need to look up a DNI against RENIEC by API?

A Verifik account with its Bearer token and two parameters: documentType=DNI and documentNumber with the 8 DNI digits, no spaces or dashes.

➕

What's the difference between /v3/pe/cedula and /v3/pe/cedula/extra?

The standard lookup returns 12 fields, with ubigeo and check digit populated. The /extra route adds paternal and maternal surnames, province, area and district, but currently returns not_available for ubigeo, check digit, photo and issue and expiry dates.

➕

Does the API return the DNI photo?

No. The documentation says the photo is not offered on these endpoints; on /extra the photo field comes back as not_available.

➕

What format is the date of birth in?

DD-MM-YYYY, for example 19-12-1995, not ISO. Convert it on your server before calculating the user's age.

➕

What happens if I send a 9-digit DNI?

The API answers 409 MissingParameter with the message “documentNumber maximum length: 8”. Strip spaces, dots and dashes in your form and accept 8 digits only.

➕

What does a 404 mean in a DNI lookup?

No record was found for that number (NotFound, “Record not found.”). It is usually a typo: ask the user to confirm it or send the case to manual review instead of rejecting it.

➕

Does the DNI lookup confirm the person signing up is the holder?

Not on its own: it confirms the DNI exists and whose it is. To know the person is the holder, combine it with liveness detection and a face match.

Explore more articles