Passport OCR API logo

Passport OCR API

ENDPOINTS
GET/passport/parse-url

Passport OCR From Image URL

Extract structured passport data from a passport image hosted at a public HTTPS URL. 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).

QUERY PARAMS

Public HTTPS URL of the passport image.

Supported formats: JPEG, PNG, PDF

Max size: 16 MB

Example: https://www.omkar.cloud/images/passport-sample.png

{
  "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": []
}