National ID
Intelligent OCR
Automate identity verification across 200+ countries. Our API features specialized extraction logic for North America, Europe, South America, and Southeast Asia, ensuring high-precision results globally.
curl -X POST
https://api.structocr.com/v1/national-id \
-H "x-api-key: Bearer sk_live_..." \
-F "img=@/path/to/romania_id.jpg"{
"success": true,
"data": {
"type": "national_id",
"country_code": "ROU",
"personal_number": "1930101450032",
"card_series": "RX",
"document_number": "654321",
"surname": "POPESCU",
"given_names": "ANDREI",
"place_of_birth": "Jud. CS Mun. Resita",
// ... smart extracted fields
}
}Why Choose Our National ID API
We don't just read text; we understand the structure of government documents, tuned for global variances from Bucharest to Bangkok.
Smart Field Logic
Advanced heuristic rules for complex IDs, automatically parsing composite fields like Place of Birth and issuing authorities.
Multi-line Address
Intelligently concatenates multi-line addresses (Region, City, Street) into a single, clean string for database storage.
Global Coverage
Optimized for diverse layouts across North America, Europe, LATAM, and APAC, supporting 200+ territories.
GDPR Compliant
Strict privacy design. Images are processed in-memory and purged immediately. Fully compliant with EU data protection laws.
Personal Number Parsing
Accurate extraction of unique identifiers (CNP, SSN, NRIC, etc.) crucial for banking and KYC duplicate checks.
Structured JSON
Transforms chaotic ID card layouts into standardized JSON with separate fields for Series, Number, and Dates.
Issuing Authority
Extracts the exact government body that issued the document, vital for fraud validation workflows.
Proprietary AI Models
Powered by our self-developed, fine-tuned AI models designed specifically for high-accuracy document understanding.

How it works
From raw scan to verified data in seconds.
Upload Document
Send the National ID image via API. We accept standard formats (JPG, PNG) up to 4.5MB.
Region-Specific Analysis
Our engine detects the country and applies specific extraction rules (e.g., parsing CNP in Romania or NRIC in Asia).
Receive Clean Data
Get a JSON response with separated fields for Series, Number, Personal ID, and full address strings.
Deep Data Extraction
Our API goes beyond basic OCR. It understands the context of fields like Place of Birth and Issuing Authority, even when they span multiple lines on the card.
Country Code
Personal Number (CNP/SSN)
Card Series
Document Number
Place of Birth
Full Address
Issuing Authority
Surname
Given Names
Sex
Date of Birth
Date of Expiry
Trusted for Global Compliance
Engineered for companies that need precise data from complex government IDs worldwide.
We expanded to Southeast Asia and Europe in the same quarter. StructOCR handled the ID variations perfectly without us needing custom models.
The accuracy on European ID cards is unmatched. It correctly identifies multi-line addresses and issuing authorities every time.
Privacy was our main concern. Knowing that StructOCR is GDPR compliant and purges data immediately sealed the deal for us.
Built for Developers,
Optimized for Compliance
We handle the complexity of global identity documents so you can focus on building your application.
Fast Integration
Plug-and-play API design. Start testing with curl in seconds and integrate into your backend in minutes.
High Reliability
Built on a scalable serverless architecture ensuring 99.9% uptime and enterprise-grade performance.
Custom Extraction Rules
Benefit from our pre-tuned logic for countries with complex ID layouts across multiple continents.
Clear Documentation
Comprehensive guides and examples for every supported field, ensuring you never have to guess the output format.
Precise Data Extraction and Seamless
Integration with AI-powered OCR API.
Empower your solutions with automated data extraction by
integrating best-in class StructOCR via API seamlessly.
No credit card required • Full API access included