OCR for International ID Document API
Extract data from any international identity document instantly. High-accuracy International ID OCR API built for developers. Get your JSON response in seconds. Try for free today.




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.
Type of identity document (e.g. passport, national ID card, residence permit)
Whether the document type has been verified against the MRZ
Unique identifier of the document
Whether the document number has been verified against the MRZ
Holder's nationality as an ISO 3166-1 alpha-3 country code
Whether the nationality has been verified against the MRZ
Holder's given name(s)
Whether the given names have been verified against the MRZ
Holder's first (paternal) surname
Whether the first surname has been verified against the MRZ
Holder's second (maternal) surname
Whether the second surname has been verified against the MRZ
Holder's date of birth
Whether the date of birth has been verified against the MRZ
Holder's place of birth
Holder's gender as a single letter (M, F, or X)
Whether the gender has been verified against the MRZ
Date on which the document was issued
Whether the issuing date has been verified against the MRZ
Date on which the document expires
Whether the expiry date has been verified against the MRZ
Authority that issued the document
Personal number or national identification number of the holder
Whether the personal number has been verified against the MRZ
Whether a Machine Readable Zone (MRZ) was detected on the document
First line of the holder's registered address
Second line of the holder's registered address
City of the holder's registered address
State or region of the holder's registered address
Country of the holder's registered address
ZIP or postal code of the holder's registered address

Common questions
Quick answers to common questions about our International ID Document OCR.
What types of documents can this OCR process?
It can extract key data from any international identity document including Passports, ID Cards, Travel Documents, and Residence Permits from over 190 countries.
Does it support MRZ (Machine Readable Zone)?
Yes, it fully supports TD1, TD2, and TD3 MRZ types. This covers most international travel documents, including Passports (TD3) and ID cards (TD1/TD2).
Does it extract the address from the document?
Yes, it extracts address information whenever available on the document. The data is structured into specific fields such as street address, city, state, zip code, and country for easy integration.
Does it support local and national ID documents?
Yes, the extractor is not limited to any specific document type or shape. Any national or international document will work. While it works best with documents containing an MRZ for optimal results, it can process any ID document regardless of its origin.
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/generic-id-document" \ -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/generic-id-document", {
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/generic-id-document"
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/generic-id-document",
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;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.
Automated Onboarding
Extract data from documents to streamline user registration and KYC processes.
Data Verification
Instantly verify document details against your records or third-party databases.
International Documents
Process identity documents from over 190 countries with high accuracy.
Workflow Automation
Eliminate manual data entry by piping structured document data directly into your CRM or ERP.
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.
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.
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?
We support custom extractors! Define your own fields, rules, and logic to extract data from any type of document.