DocsAPI LogoDocsAPI

Identity Documents: Extract and Verify ID Data

Extract and verify data from passports, national IDs, and driver licenses. MRZ check digits are validated, so a misread usually fails the checksum and gets flagged instead of passing silently.

MRZ
Check digits validated

Supported Identity Document Types

Passports

Extract MRZ data, printed fields and the face photo from ICAO 9303 passports, with MRZ check digits validated.

National IDs

Process national identity cards with barcode and hologram verification, supporting both electronic and traditional ID formats.

Driver Licences

Capture data from both front and back sides of driver licenses, including barcodes and security features from various jurisdictions.

Field Coverage

Comprehensive data extraction across all identity document types

Field NamePassportNational IDDriver License
document_number
full_name
dob
expiry_date
nationality
face_crop_base64
mrz_raw
barcode_data
address
gender
issue_date
issuing_authority

MRZ check digits are validated on every passport and ID that carries one.

Verification Workflow

Streamlined process for fast and accurate identity verification

1

User Uploads ID via SDK

Capture high-quality images through our mobile or web SDK with real-time quality checks and guidance.

2

AI Detects & Extracts Fields

Our AI identifies the document type and extracts the relevant fields, at about 1.1 seconds per page in our 2026 benchmark, with unclear fields flagged for review.

3

Optional Face Match & Fraud Checks

Perform biometric face matching and advanced fraud detection to ensure document authenticity and prevent identity theft.

Time and Checks

What changes when passports, national IDs and driver's licences are read by DocsAPI instead of typed in by hand

Time

Manual entryTyped field by field
DocsAPIAbout 1.1 s per page

Speed from our 2026 OCR benchmark, including the network round-trip. Capture quality matters more than processing time: a blurry photo costs the user a retake, so guide them to a clean, flat, well-lit shot.

Checks Before the Data Moves On

  • MRZ check digits validated on passports and IDs that carry one
  • Field formats checked before the data moves on
  • Low-confidence fields flagged for a reviewer instead of guessed

Fraud catch rates depend on your applicant mix and capture flow, so we would rather test on your samples than quote a number.

Compliance & Standards

Built to meet global regulatory requirements

ICAO 9303 Standards

Our OCR technology complies with International Civil Aviation Organization (ICAO) 9303 standards for machine-readable travel documents, ensuring global compatibility.

ISO 19794 Biometrics

Face biometric data extraction follows ISO 19794 standards for biometric data interchange formats, supporting interoperability with identity verification systems.

GDPR Data Controls

Built-in data retention controls and privacy-by-design principles ensure compliance with GDPR, CCPA, and other privacy regulations for sensitive identity information.

Developer Output Sample

Structured JSON response with confidence scores

{
  "document_type": "passport",
  "mrz_raw": "P<USASMITH<<JOHN<MICHAEL<<<<<<<<<<<<<<<<<<<<<\nA123456789USA8001015M2501019<<<<<<<<<<<<<<02",
  "fields": {
    "document_number": "A123456789",
    "full_name": "JOHN MICHAEL SMITH",
    "dob": "1980-01-01",
    "gender": "M",
    "nationality": "USA",
    "issuing_country": "USA",
    "expiry_date": "2025-01-01",
    "face_crop_base64": "/9j/4AAQSkZJRgABAQAA...[truncated]"
  },
  "confidence_scores": {
    "document_number": 0.998,
    "full_name": 0.995,
    "dob": 0.997,
    "expiry_date": 0.996,
    "nationality": 0.999
  },
  "verification": {
    "mrz_checksum_valid": true,
    "document_expiry_valid": true,
    "face_detected": true
  }
}

Document Metadata

Includes document type and raw MRZ data for verification and auditing purposes.

Extracted Fields

Normalized data fields with consistent formatting across all document types.

Confidence & Verification

Field-level confidence scores and built-in verification checks for data integrity.

Identity Document Processing Guides

How document intelligence applies to passports, national IDs, and KYC verification workflows.

Verify identities in seconds.

Start automating identity verification today with our industry-leading OCR technology.