Overview
Extract structured data from passport images and PDFs.
Subscribe on RapidAPIThe Passport Extractor API reads a passport from images or PDFs of its pages and returns its data as JSON, ready for identity checks, onboarding and form filling.
What you get
- From the front page (the photo/data page, required): full name, given names, surname, date and place of birth, sex, nationality, passport number, issue and expiry dates, place of issue, issuing country, and the machine readable zone (MRZ) with every check digit verified by the API.
- From the last page (optional, on passports that have an address page, such as Indian passports): father's or legal guardian's, mother's and spouse's names, address, file number and previous passport.
- Predictable JSON: every field is always present and
nullwhen it is missing or unreadable. Values are never guessed. Dates areYYYY-MM-DD.
Each page is read on its own and the results are combined. Uploaded files and extracted data are not stored.
Endpoints
| Method | Path | Purpose |
|---|---|---|
POST | /passport-extractor/v1/extract | Extract one passport from its front page and, optionally, its last page |
GET | /passport-extractor/health | Service status |
POST | /passport-extractor/mcp | MCP tool for AI assistants |
Next: Quickstart.