Identity Verification in Spain
Verifik's Identity Verification API helps you authenticate Spanish citizens and residents using official government data. It's designed to streamline your KYC (Know Your Customer) processes, prevent fraud, and ensure you meet all regulatory requirements effortlessly.
We built this integration for businesses that need a fast, secure, and automated way to confirm the true identity of users, employees, or customers.
What does this API validate?β
Our API connects directly with official records to validate:
- Full Name & Document Number: Supports Documento Nacional de Identidad (DNI) and NΓΊmero de Identidad de Extranjero (NIE).
- Identity Match: Confirms that the name provided matches the document number.
- Expiration Date Verification: Validates the document expiration date.
By verifying these details, you can be confident that the person you're dealing with is real and holds a valid document, significantly lowering the risk of impersonation and fraud.
API Referenceβ
Endpointβ
https://api.verifik.co/v2/es/cedula
Headersβ
| Name | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
Parametersβ
| Name | Type | Required | Description |
|---|---|---|---|
documentType | string | Yes | Document type. Allowed values: DNIES, NIE. |
documentNumber | string | Yes | Document number without spaces. |
date | string | Yes | Expiration date in DD/MM/YYYY format. |
Requestβ
- Node.js
- Python
import axios from "axios";
const { data } = await axios.get("https://api.verifik.co/v2/es/cedula", {
params: { documentType: "DNIES", documentNumber: "123456789", date: "17/07/2024" },
headers: { "Content-Type": "application/json", Authorization: `Bearer ${process.env.VERIFIK_TOKEN}` },
});
console.log(data);
import os, requests
url = "https://api.verifik.co/v2/es/cedula"
headers = {"Content-Type": "application/json", "Authorization": f"Bearer {os.getenv('VERIFIK_TOKEN')}"}
params = {"documentType": "DNIES", "documentNumber": "123456789", "date": "17/07/2024"}
r = requests.get(url, headers=headers, params=params)
print(r.json())
Responseβ
- 200
- 401
- 403
- 404
- 409
{
"data": {
"documentType": "DNIES",
"documentNumber": "123456789",
"fullName": "Juan PΓ©rez",
"names": ["Juan", "PΓ©rez"],
"status": "valid"
},
"signature": {"message": "Certified by Verifik.co", "dateTime": "January 16, 2024 3:44 PM"},
"id": "ES001"
}
{
"message": "Authentication required",
"code": "UNAUTHORIZED"
}
{
"message": "Access forbidden",
"code": "FORBIDDEN"
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"message": "\"date\" is required",
"code": "MissingParameter"
}
{
"code": "MissingParameter",
"message": "missing documentType\n"
}
{
"code": "MissingParameter",
"message": "missing documentNumber\n"
}
{
"code": "MissingParameter",
"message": "documentType must be one of: [DNIES, NIE]"
}
Notesβ
datemust follow the formatDD/MM/YYYY.
Common Use Casesβ
- Fintech & Banking: Verify identities instantly during account opening or loan applications.
- E-commerce & Delivery: Authenticate users and couriers before they become active on your platform.
- HR & Recruitment: Validate candidate documents as part of your hiring workflow.
- Insurance & Healthcare: Confirm identities before issuing policies or providing medical benefits.
Official Sources & Reliabilityβ
We connect directly with official Spanish government sources to ensure you receive verified, up-to-the-minute information. Every query is handled with strict adherence to security and regulatory standards.
Key Benefitsβ
- Automated Compliance: Streamline your KYC checks to prevent fraud without adding friction for your users.
- Instant Results: Process verifications in seconds, perfect for real-time digital onboarding.
- Trusted Data: Rely on data sourced directly from official records.
- Easy Integration: Connect easily via our REST API or use our compatible SDKs.
Compliance & Securityβ
We prioritize the safety of your data. Verifik uses advanced encryption (HTTPS/TLS 1.3) and strict privacy management standards to ensure confidentiality. Our service is monitored 24/7 for availability and offers role-based access controls to keep your team's access secure.
About Verifikβ
Verifik is a leading platform for identity verification, compliance, and fraud prevention across Latin America and Europe. Our APIs automate KYC, KYB, AML, and biometric validation processes, connecting businesses with official data sources in Colombia, Mexico, Peru, Chile, Uruguay, Argentina, Brazil, Spain, and beyond.