🇪🇸Ciudadano Español

Servicio para consultar ciudadanos españoles mediante el DNI (Documento Nacional de Identidad) o el NIE (Número de Identificación de Extranjero).

Información del residente español para el DNI o NIE

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

El servicio de información de residentes en España te permite verificar fácilmente la validez de documentos de identidad españoles (DNI/NIE) proporcionando el número del documento y la fecha de caducidad. La respuesta incluye el tipo de documento, el número de documento, el nombre completo, el nombre, los apellidos y un array con los nombres.

Implementación

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Query Parameters

Name
Type
Required?
Description
Example

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 {
  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