International ID OCR
Mindee’s International ID API uses deep learning to automatically, accurately, and instantaneously parse your documents details. In a few seconds, the API extracts a set of data from your PDFs or photos of ID’s from all locations, including:
Document Type
Document Number
Surnames
Given Names
Sex
Birth Date
Birth Place
Nationality
Personal Number
Country of Issue
State of Issue
Issue Date
Expiration Date
Address
MRZ Line 1
MRZ Line 2
MRZ Line 3
Set up the API
You'll need an ID Card or a passport or any other identification document. You can use one of the sample documents provided below.

Access your document by clicking on the corresponding product card in the Document Catalog

From the left navigation, go to documentation > API Reference, you'll find sample code in popular languages and command line.
Replace my-api-key-here with your new API key, or use the select an API key feature and it will be filled automatically.
Copy and paste the sample code of your desired choice in your application, code environment, terminal etc.
Replace
/path/to/the/file.extwith the path to your input document.
Remember to replace with your V1 API key.
Run your code. You will receive a JSON response with the Id document details.
API Response
Here is the full JSON response you get when you call the API:
You can find the prediction within the prediction key found in document > inference > prediction for document-level predictions: it contains the different fields extracted at the document level, meaning that for multi-pages PDFs, we reconstruct a single receipt object using all the pages.
Detailed Field Information
Using the above Bill of Lading example, the following are the basic fields that can be extracted.
Document Type
document_type: The type of personal identification document. Classification among the following values: IDENTIFICATION_CARD, PASSPORT, DRIVER_LICENCE, VISA, RESIDENCY_CARD, VOTER_REGISTRATION
Document Number
document_number: The unique identifier assigned to the document.
Surnames
surnames: The list of document holder’s family names.
Given Names
given-names: The list of the document holder’s given names.
Sex
sex: The biological sex of the document holder.
Birth Date
birth_date: The date of birth of the document holder.
Birth Place
birth_place: The place of birth of the document holder.
Nationality
nationality: The country of citizenship of the document holder.
Personal Number
personal_number: The unique identifier assigned to the document holder.
Country of Issue
country_of_issue: The country where the document was issued.
State of Issue
state_of_issue: The state or territory where the document was issued
Issue Date
issue_date: The date when the document was issued.
Expiration Date
expiration_date: The date when the document becomes invalid.
Address
address: The physical address of the document holder.
MRZ
mrz_line1: the Machine Readable zone, first line.
mrz_line2: the Machine Readable zone, second line.
mrz_line3: the Machine Readable zone, third line.
Last updated
Was this helpful?

