Spanish CIF OCR API
Extract NIF/CIF with check-digit verification, legal company name (razón social), tax and social addresses, AEAT codes, and CSV from Spanish tax ID cards. Automate Spanish KYB onboarding, invoice validation, and ERP vendor creation.


Try it out
Experience the power of our OCR. Upload a document and see the results instantly.
Drop document or click to upload
Supports PDF, PNG, JPG (max 10MB)
By uploading a document, you agree to our terms. We do not store your data.
Tax identification number (Número de Identificación Fiscal / CIF)
Whether the NIF control character has been mathematically verified
Legal name of the company (Razón social)
Registered social address of the company (Domicilio social)
Tax address of the company (Domicilio fiscal)
Code of the AEAT (Agencia Estatal de Administración Tributaria) office that issued the document
Name or location of the issuing AEAT office
Date on which the document was issued (Fecha de emisión)
Whether the document is a provisional (temporary) certificate
Electronic verification code of the document (Código electrónico)
Secure verification code (Código Seguro de Verificación - CSV)
Common questions
Quick answers to common questions about our Spanish CIF OCR API.
What is extracted from the Spanish CIF card?
NIF/CIF (with mathematical check-digit verification), company legal name, social and tax addresses, AEAT office code and location, issue date, provisional vs definitive status, electronic code and CSV when present.
Does it verify the NIF check character?
Yes. The extractor returns nif_verified after validating the control character of the Spanish tax ID.
Can it tell provisional from definitive certificates?
Yes. The is_temporary field indicates whether the card is a provisional (provisional) or definitive CIF certificate.
Integrate our API in seconds
Start extracting data from your documents in seconds with our ready-to-use OCR API.
curl -X POST "https://api.tiny-idp.com/api/extractors/run/es-cif" \ -H "x-api-key: YOUR_API_KEY" \ -F "files=@/path/to/your/document.jpg"
const formData = new FormData();
const fileInput = document.querySelector('input[type="file"]');
formData.append('files', fileInput.files[0]);
const response = await fetch("https://api.tiny-idp.com/api/extractors/run/es-cif", {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY'
},
body: formData
});
const result = await response.json();
console.log(result);import requests
url = "https://api.tiny-idp.com/api/extractors/run/es-cif"
headers = {"x-api-key": "YOUR_API_KEY"}
files = {"files": open("document.jpg", "rb")}
response = requests.post(url, headers=headers, files=files)
print(response.json())<?php
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => "https://api.tiny-idp.com/api/extractors/run/es-cif",
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'x-api-key: YOUR_API_KEY',
'Accept: application/json'
],
CURLOPT_POSTFIELDS => [
'files' => new CURLFile('/path/to/your/document.jpg')
]
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;Integrate with your coding agent
Copy instructions for Claude Code, Cursor, ChatGPT, and other agents to integrate Tiny IDP.
Ready to build?
Get your free API key and start extracting data from documents in minutes. No credit card required for the free tier.
Common use cases
Discover how businesses are using our OCR API to automate their workflows.
KYB & Spanish B2B onboarding
Read NIF/CIF, razón social and tax domicile to open merchant, supplier or SaaS accounts under Spanish KYB checks in seconds.
Invoice & e-invoicing validation
Match counterparty CIF and company name from the AEAT card against Facturae / Verifactu flows before booking payables.
Marketplace seller verification
Verify Spanish sellers with checksum-validated NIF, provisional vs definitive status, and electronic verification codes.
Accounting & ERP master data
Seed ERP vendor/customer records with domicilio social, domicilio fiscal and AEAT office codes without retyping cards.
Simple, Transparent Pricing
No hidden fees. No monthly minimums. Pay only for what you extract.
Usage-Based
Simple pay-as-you-go pricing. No monthly commitment.
- Unlimited extractors
- Pre-built & custom extractors
- OCR and AI technology
- GDPR compliant
- EU-hosted infrastructure
- Standard support
Enterprise
Tailored pricing for high-volume scenarios. Get SLA guarantees, on-premise deployment, and dedicated support — reach out and we'll put together a plan that fits your scale.
- Custom pricing models
- SLA guarantees
- On-premise deployment options
- Custom integration support
- 24/7 dedicated support
- Priority feature requests
All prices exclude VAT. Volume discounts apply automatically.
Enterprise-grade Compliance & Security
We take data privacy seriously. Tiny IDP is built from the ground up to meet the strictest European data protection standards.
Zero Data Retention
We don't store your documents, images, or predictions. Data is processed in-memory and immediately discarded.
GDPR Compliant
Full compliance with European data protection regulations (GDPR) for your peace of mind.
EU-Based Infrastructure
All data is processed and hosted exclusively in secure European data centers.
Do you need a custom OCR?
Need custom document extraction? Define your own JSON schema to extract structured data from any document format in seconds.