Global Passport
Data Extraction

Automate identity verification with our high-precision Passport OCR API. Supports 195 countries with instant structured JSON output.

POST /v1/passport
curl -X POST 
https://api.structocr.com/v1/passport \
-H "x-api-key: Bearer sk_live_..." \
-F "img=@/path/to/passport.jpg"
RESPONSE 200 OK
{
  "success": true,
  "data": {
    "type": "P",
    "country_code": "USA",
    "nationality": "UNITED STATES",
    "passport_number": "900000001",
    // ... more fields
  }
}

Our OCR API Key Features

Enterprise Accuracy

Powered by proprietary AI models to achieve 98.5% extraction accuracy even on low-quality scans.

Sub-second Latency

Optimized for high-concurrency environments, processing global passports in under 3 seconds.

200+ Countries

Extensive support for ICAO-compliant passports, national IDs, and driver licenses worldwide.

Zero-Data Retention

Strict privacy compliance; images are purged immediately after processing with no server-side storage.

Advanced Pre-processing

Automatically handles glare, tilt, and perspective correction to ensure clean data extraction.

Structured JSON

Transforms raw document images into clean, developer-friendly JSON output for immediate use.

Bank-Grade Security

Integrated with Supabase RLS and encrypted transit to protect sensitive identity information.

Scalable Infrastructure

Serverless architecture that scales horizontally with your API traffic requirements.

How it works illustration

How it works

Integrate professional passport extraction into your app in minutes.

01

Secure Ingestion

Upload documents via API using multipart/form-data. Data is encrypted in transit and purged after processing.

02

AI Analysis

Our proprietary models handle glare, tilt, and low-light conditions to extract raw data fields automatically.

03

Structured Output

Receive standardized JSON containing all extracted identity fields ready for your production database.

response.json
{
  "success": true,
  "data": {
    "type": "P",
    "country_code": "USA",
    "nationality": "UNITED STATES",
    "passport_number": "900000001",
    "surname": "DOE",
    "given_names": "JOHN",
    "sex": "M",
    "date_of_birth": "1990-01-01",
    "date_of_expiry": "2030-01-01",
    "date_of_issue": "2020-01-01",
    "place_of_issue": "PASSPORT AGENCY"
  }
}
Data Output

Standard Data Fields You Can Extract

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

...and more meta data

Trusted by Industry Leaders

Developers 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.

Sarah Chen
CTO, TravelTech Solutions
Travel & Hospitality

We process 50,000+ passports monthly with zero manual verification. StructOCR's consistency across different document conditions is unmatched.

Michael Rodriguez
Lead Engineer, GlobalVerify
Identity Verification

The passport extraction is flawless. We've eliminated manual data entry errors completely, which was a game-changer for our compliance team.

Priya Sharma
Head of Engineering, FinanceFlow
FinTech

Why Developers Prefer Our
OCR API for Passport Extraction

We prioritize developer experience without compromising on power, providing the tools needed to embed intelligent document recognition into any stack.

Accelerate Deployment

Streamline your workflow with a plug-and-play setup designed to slash weeks off your production timeline.

Enterprise-Scale Reliability

Experience rock-solid stability with a 99.99% uptime guarantee, engineered to grow alongside your user base.

Precision-First Extraction

Leverage industry-leading OCR precision to minimize manual reviews and ensure high-fidelity data capture.

Engineer-Centric Docs

Access deep technical guides and APIs crafted by our core team to make integration a seamless experience.

Precise Data Extraction and Seamless Integration with AI-powered OCR API.

Empower your solutions with automated data extraction by integrating best-in class StructOCR via API seamlessly.

No credit card required • Full API access included

Frequently Asked Questions