MRZ Field Extraction
Uses the machine-readable zone as the primary source for passport number, names, nationality, sex, date of birth, date of expiry, and issuing country.
Extract MRZ and visual inspection zone (VIZ) fields from passport images and PDFs. Send Base64-encoded input through one JSON API and receive normalized passport data for KYC, travel, and onboarding workflows.
curl -X POST
https://api.structocr.com/v1/passport \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{"img": "data:image/jpeg;base64,/9j/4A..."}'{
"success": true,
"data": {
"type": "passport",
"country_code": "USA",
"nationality": "UNITED STATES",
"passport_number": "900000001",
// ... more fields
}
}No registration required. Upload a file to test the extraction.
Drop files here or click to browse
JPG · PNG · WebP · up to 500 files · max 4.5 MB each
Passport Data Extraction
StructOCR processes passport bio-data pages by combining Machine Readable Zone (MRZ) extraction with Visual Inspection Zone (VIZ) reading. Send a Base64-encoded image or PDF and receive structured passport data through a single JSON API response.
Uses the machine-readable zone as the primary source for passport number, names, nationality, sex, date of birth, date of expiry, and issuing country.
Reads the visual inspection zone for fields that may not appear in the MRZ, including place of birth, date of issue, and issuing authority.
Returns consistent field names and ISO-formatted dates so passport data can move directly into KYC, travel, or onboarding workflows.
Built as a complete identity verification software solution for FinTech KYC and travel document automation.
Submit passport images or PDFs and receive structured JSON through a synchronous API workflow designed for production integrations.
Process ICAO-compliant passports across international KYC, travel, and customer onboarding workflows.
Strict privacy compliance; images are purged immediately after processing with no server-side storage.
Automatically handles glare, tilt, and perspective correction to ensure clean data extraction.
Transforms raw document images into clean, developer-friendly JSON output for immediate use.
Combines MRZ parsing with visual-zone extraction for passport fields that are not available in the machine-readable zone.
Serverless architecture that scales horizontally with your API traffic requirements.

Integrate professional passport extraction into your app in minutes.
Send a Base64-encoded JPG, PNG, WebP, or PDF in an application/json request and authenticate with the x-api-key header.
Our proprietary models handle glare, tilt, and low-light conditions to extract raw data fields automatically.
Receive standardized JSON containing all extracted identity fields ready for your production database.
Our API automatically recognizes over 12+ specific data points from passports worldwide. The output is provided via structured JSON by default.
Document Type
Country Code
Nationality
Passport Number
Surname
Given Names
Sex
Date of Birth
Date of Expiry
Date of Issue
Place of Issue
Developer SDKs
Use the official StructOCR SDKs to handle file encoding, API authentication, and passport OCR requests while keeping your API key on the server.
Python, FastAPI, Django, and Flask
pip install --upgrade structocrView Python SDK documentationNode.js, TypeScript, Express, and Next.js
npm install structocrView Node.js SDK documentationDevelopers and CTOs choose StructOCR for mission-critical identity verification
StructOCR's Passport API reduced our onboarding time by 80%. The accuracy is phenomenal, and integration took less than a day.
We process 50,000+ passports monthly with zero manual verification. StructOCR's consistency across different document conditions is unmatched.
The passport extraction is flawless. We've eliminated manual data entry errors completely, which was a game-changer for our compliance team.
We prioritize developer experience without compromising on power, providing the tools needed to embed intelligent document recognition into any stack.
Streamline your workflow with a plug-and-play setup designed to slash weeks off your production timeline.
Integrate with documented HTTP status codes, predictable JSON responses, and clear error handling for production workflows.
Leverage industry-leading OCR precision to minimize manual reviews and ensure high-fidelity data capture.
Access deep technical guides and APIs crafted by our core team to make integration a seamless experience.
Get your API key in under a minute. New users receive 200 free credits to test Passport, VIN, Lincense Plate, Container, Receipt, HIN, Driver License, ID Card, Vehicle Registration, ATM Cassette and Invoice OCR APIs.
✓ No credit card required · ✓ Instant API key · ✓ Full API access