Verifies Spanish DNI / NIE against the Dirección General de la Policía records. Authoritative real-time identity lookup for Spain. Pay-per-call, no contracts.
Verifies Spanish DNI / NIE against the Dirección General de la Policía records. Didit exposes this service throughDocumentation Index
Fetch the complete documentation index at: https://docs.didit.me/llms.txt
Use this file to discover all available pages before exploring further.
POST /v3/database-validation/ so you can verify the submitted data against the authoritative source and receive normalized match results.
esp_dni| Field | Required | Example |
|---|---|---|
personal_number | Yes | SAMPLE-PER-12345 |
document_type | Yes | sample_value |
expiration_date | Yes | 1990-01-01 |
first_name | No | John |
last_name | No | Doe |
personal_number, document_type, expiration_datefirst_name, last_nameESPesp_dniSAMPLE-PER-12345document_type value required by this database service.Example: sample_valueexpiration_date value required by this database service.Example: 1990-01-01JohnDoepersonal_number must be exactly 9 characters long.personal_number must match ^(\d{8}[A-Za-z]|[XYZxyz]\d{7}[A-Za-z])$.source_data depend on what the registry returns. The generated example for esp_dni currently documents this normalized shape:
first_nameidentification_numberlast_name