🇪🇸Spain Citizen

Service to query Spanish citizens using the DNI (National Identity Document) or NIE (Foreigner Identification Number).

Spanish Resident Information for DNI or NIE

GET - https://api.verifik.co/v2/es/cedula

The Spanish resident information service you can easily verify the validity of Spanish Identity Cards (DNI/NIE) by providing the document number and the expiration date. The response includes the document type, document number, full name, first name, last name, and an array of names.

Implementation

Headers

NameValue

Content-Type

application/json

Authorization

Bearer <token>

Query Parameters

NameTypeRequired?DescriptionExample

documentType

String

True

Document type. Allowed parameter: DNIES, NIE.

DNIES

documentNumber

String

True

Document number of the person to consult without spaces.

123456789

date

String

True

The date on which the document to be consulted expires. Valid format: DD/MM/YYYY.

17/07/2024

Request

import axios from 'axios';

const options = {
  method: 'GET',
  url: '<https://api.verifik.co/v2/es/cedula>',
  params: {
		  documentType: 'DNIES', 
		  documentNumber: '12345678H', 
		  date: '17/07/2024'
				  },
  headers: {
    Accept: 'application/json',
    Authorization: 'jwt <tu_token>'
  }
};

try {
 notFou const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}

Response

{
    "data": {
        "documentType": "DNIES",
        "documentNumber": "53578667Y",
        "fullName": "CARMEN BEATRIZ ROMERO RODRIGUEZ",
        "firstName": "CARMEN BEATRIZ",
        "lastName": "ROMERO RODRIGUEZ",
        "arrayName": [
            "ROMERO",
            "RODRIGUEZ",
            "CARMEN",
            "BEATRIZ"
        ]
    },
    "signature": {
        "dateTime": "March 12, 2024 9:16 PM",
        "message": "Certified by Verifik.co"
    },
    "id": "UCEJG"
}

Last updated