Passport OCR API
/passport/parse-base64Passport OCR From Base64 Image
Extract structured passport data from a base64-encoded passport image sent in the JSON request body. Accepts raw base64 or a data URI (data:image/jpeg;base64,...). Returns the document number, given names and last name, gender, birth date and place, nationality, issuing country, issuance and expiry dates, and the full MRZ (machine-readable zone).
BODY (JSON)
{
"document_id": "S01234567",
"given_names": [
"Amelia",
"Mary"
],
"last_name": "QUEST",
"gender": "F",
"birth_date": "1987-04-23",
"birth_place": "Utopia",
"nationality": "Utopian",
"issuance_date": "2022-08-27",
"expire_date": "2032-08-26",
"issuing_state": "Upa",
"mrz": "P<UTOQUEST<AMELIA<MARY <<<<<<<<<<<<<<<<<<<<<<\nS012345674UTO8704234F3208265 <<<<<<<<<<<<<<< 2",
"image_id": [],
"image_signature": []
}