International ID
The Node.js SDK supports the Mindee V1 International ID API.
Product Specifications
Endpoint Name
international_id
Recommended Version
v2.2
Supports Polling/Webhooks
✔️ Yes
Support Synchronous HTTP Calls
❌ No
Geography
🌐 Global
Quick-Start
Using the sample below, we are going to illustrate how to extract the data that we want using the SDK.

Sample Code
Sample Output (rST)
Standard Fields
These fields are generic and used in several products.
Basic Field
Each prediction object contains a set of fields that inherit from the generic Field class.
A typical Field object will have the following attributes:
value (
number | string): corresponds to the field value. Can beundefinedif no value was extracted.confidence (
number): the confidence score of the field prediction.boundingBox (
[Point, Point, Point, Point]): contains exactly 4 relative vertices (points) coordinates of a right rectangle containing the field in the document.polygon (
Point[]): contains the relative vertices coordinates (Point) of a polygon containing the field in the image.pageId (
number): the ID of the page, alwaysundefinedwhen at document-level.reconstructed (
boolean): indicates whether an object was reconstructed (not extracted as the API gave it).
Aside from the previous attributes, all basic fields have access to a toString() method that can be used to print their value as a string.
Classification Field
The classification field ClassificationField does not implement all the basic Field attributes. It only implements value, confidence and pageId.
Date Field
Aside from the basic Field attributes, the date field DateField also implements the following:
dateObject (
Date): an accessible representation of the value as a JavaScript object.
String Field
The text field StringField only has one constraint: its value is a string (or undefined).
Attributes
The following fields are extracted for International ID V2:
Address
address (StringField): The physical address of the document holder.
Birth Date
birthDate (DateField): The date of birth of the document holder.
Birth Place
birthPlace (StringField): The place of birth of the document holder.
Country of Issue
countryOfIssue (StringField): The country where the document was issued.
Document Number
documentNumber (StringField): The unique identifier assigned to the document.
Document Type
documentType (ClassificationField): The type of personal identification document.
Possible values include:
'IDENTIFICATION_CARD'
'PASSPORT'
'DRIVER_LICENSE'
'VISA'
'RESIDENCY_CARD'
'VOTER_REGISTRATION'
Expiration Date
expiryDate (DateField): The date when the document becomes invalid.
Given Names
givenNames (StringField[]): The list of the document holder's given names.
Issue Date
issueDate (DateField): The date when the document was issued.
MRZ Line 1
mrzLine1 (StringField): The Machine Readable Zone, first line.
MRZ Line 2
mrzLine2 (StringField): The Machine Readable Zone, second line.
MRZ Line 3
mrzLine3 (StringField): The Machine Readable Zone, third line.
Nationality
nationality (StringField): The country of citizenship of the document holder.
Personal Number
personalNumber (StringField): The unique identifier assigned to the document holder.
Sex
sex (StringField): The biological sex of the document holder.
State of Issue
stateOfIssue (StringField): The state or territory where the document was issued.
Surnames
surnames (StringField[]): The list of the document holder's family names.
Last updated
Was this helpful?

