Validate NIF, NIE, CIF and IBAN with a single API call. Works in any programming language. No setup required. Valida NIF, NIE, CIF e IBAN con una sola llamada API. Compatible con cualquier lenguaje de programación. Sin configuración.
Get Free API Key Obtener API Key Gratis Interactive Docs Documentación InteractivaNew. Pass any document — type is detected automatically. Nuevo. Pasa cualquier documento — el tipo se detecta automáticamente.
Validate Spanish NIF for individuals. Handles K, L, M special cases. Valida el NIF español para personas físicas. Gestiona los casos especiales K, L, M.
Validate NIE for foreign residents. X, Y, Z prefix support. Valida el NIE para residentes extranjeros. Soporta prefijos X, Y, Z.
Validate company CIF. Returns entity type: S.A., S.L., Cooperative... Valida el CIF de empresa. Devuelve el tipo de entidad: S.A., S.L., Cooperativa...
Validate IBAN for 77 countries. Returns bank name for Spanish accounts. Valida IBAN de 77 países. Devuelve el nombre del banco para cuentas españolas.
# Python
import requests
r = requests.get(
"https://spain-document-validator1.p.rapidapi.com/validate/cif",
params={"value": "A28015865"},
headers={
"X-RapidAPI-Key": "YOUR_KEY",
"X-RapidAPI-Host": "spain-document-validator1.p.rapidapi.com"
}
)
print(r.json())
# {'valid': True, 'type': 'CIF', 'entity_type': 'Sociedad Anonima'}
{
"input": "ES9121000418450200051332",
"valid": true,
"type": "IBAN",
"country": "ES",
"formatted": "ES91 2100 0418 4502 0005 1332",
"bank_code": "2100",
"branch_code": "0418",
"bank_name": "CaixaBank"
}
NIF (Número de Identificación Fiscal) is the tax ID for Spanish individuals. Format: 8 digits + 1 control letter (e.g. 12345678Z). El NIF (Número de Identificación Fiscal) es el identificador fiscal de los particulares españoles. Formato: 8 dígitos + 1 letra de control (ej. 12345678Z).
CIF (Código de Identificación Fiscal) is the tax ID for Spanish companies. The API also returns the entity type: S.A., S.L., Cooperative, etc. El CIF (Código de Identificación Fiscal) es el identificador fiscal de las empresas españolas. La API también devuelve el tipo de entidad: S.A., S.L., Cooperativa, etc.
Yes. The IBAN validator supports 77 countries using the standard mod-97 algorithm. Bank name lookup is only available for Spanish accounts. Sí. El validador de IBAN soporta 77 países mediante el algoritmo mod-97 estándar. El nombre del banco solo está disponible para cuentas españolas.
Yes, a free RapidAPI account is required to get your API key. The free tier includes 500 requests/month with no credit card needed. Sí, se requiere una cuenta gratuita de RapidAPI para obtener tu API key. El tier gratuito incluye 500 peticiones/mes sin tarjeta de crédito.
Any language that can make HTTP GET requests. RapidAPI provides code snippets for JavaScript, Python, PHP, Ruby, Go, Java, Swift and more. Cualquier lenguaje que pueda hacer peticiones HTTP GET. RapidAPI proporciona snippets de código para JavaScript, Python, PHP, Ruby, Go, Java, Swift y más.
Need to validate UK documents too? VAT numbers, NINO, Company Numbers and UTR — same free tier, same simple API. ¿También necesitas validar documentos del Reino Unido? IVA (VAT), NINO, números de empresa y UTR — mismo tier gratuito, misma API sencilla.
View UK Validator → Ver validador UK →