🇪🇸Spain

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.

Spanish CIF OCR API
Start in Seconds
Sign up to get your API key and start processing your documents
State of the Art Accuracy
We use the most powerful models to ensure the highest accuracy and throughput
GDPR Compliant
We are EU Hosted, GDPR Compliant and follow Zero Data Retention by default
Just pay for what you extract
No monthly commitments or high starting tiers. Volume discounts available.

+100k requests at 4.2s avg latency in 2026

Indemnizame
Sagardobus
Swipoo
Acciona

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.

JSON Response
{
"success":
true,
"data":{
"nif":
"A28123456",
"nif_verified":
true,
"company_name":
"EMPRESA EJEMPLO S.A.",
"social_address":
"CL GRAN VIA 28, 28013 MADRID",
"tax_address":
"CL GRAN VIA 28, 28013 MADRID",
"aeat_code":
"28001",
"aeat_localization":
"MADRID",
"date":
"2023-01-15",
"is_temporary":
false,
"electronic_code":
"ABCD1234EFGH5678",
"document_csv":
"1234ABCDEFGH5678"
},
"balance":
14.5,
"cost":
0.045
}
nifstring | null

Tax identification number (Número de Identificación Fiscal / CIF)

nif_verifiedboolean

Whether the NIF control character has been mathematically verified

company_namestring | null

Legal name of the company (Razón social)

social_addressstring | null

Registered social address of the company (Domicilio social)

tax_addressstring | null

Tax address of the company (Domicilio fiscal)

aeat_codestring | null

Code of the AEAT (Agencia Estatal de Administración Tributaria) office that issued the document

aeat_localizationstring | null

Name or location of the issuing AEAT office

datestring | null

Date on which the document was issued (Fecha de emisión)

is_temporaryboolean | null

Whether the document is a provisional (temporary) certificate

electronic_codestring | null

Electronic verification code of the document (Código electrónico)

document_csvstring | null

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.

Terminal - Local File
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"
Claude CodeCursorChatGPT

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.

Pay As You Go

Usage-Based

Simple pay-as-you-go pricing. No monthly commitment.

0 – 1,000 requests/mo
Starting tier
€0.045
/request
1,000+ requests/mo22% off
Automatic discount
€0.035
/request
  • Unlimited extractors
  • Pre-built & custom extractors
  • OCR and AI technology
  • GDPR compliant
  • EU-hosted infrastructure
  • Standard support
Get Started

Enterprise

Custom

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
Contact Sales

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.

Visit Trust Center
EU Hosted
Encrypted
No Storage
GDPR

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.