SOC2GDPR

Verify US Passport Extractor — KYC Ready

KYC compliance requires processing thousands of identity documents. Manual verification creates bottlenecks and increases fraud risk.

18
Fields Extracted
180s
Max Processing

What This Template Does

AI-powered extraction using gemini-2.5-flash. Part of 113 production-ready templates.

Capabilities

  • Identity Extraction
  • Mrz Parsing
  • Passport Verification
  • Passport
  • Kyc

Output Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "US Passport Extraction Schema",
  "description": "JSON Schema for extracted data from United States passports",
  "type": "object",
  "required": [
    "document_type",
    "passport_number",
    "surname",
    "given_names",
    "nationality",
    "date_of_birth",
    "sex",
    "expiry_date"
  ],
  "properties": {
    "document_type": {
      "type": "string",
      "const": "us_passport",
      "description": "Document type
...

Quick Start

$ pip install doclayer
$ doclayer process document.pdf --agent identity.us-passport

See It In Action

Real extraction example showing input document and structured output.

Input Document
[US PASSPORT DATA PAGE IMAGE]

UNITED STATES OF AMERICA
PASSPORT

Type: P
Code: USA
Passport No: 567891234

Surname: ANDERSON
Given Names: MICHAEL JAMES

Nationality: UNITED STATES
Date of Birth: 22 JUL 1988
Sex: M
Place of Birth: CHICAGO, ILLINOIS, U.S.A.

Date of Issue: 15 MAR 2022
Date of Expiration: 14 MAR 2032

Authority: United States Department of State

[Photo of holder]
[Biometric chip symbol visible]

MRZ:
P<USAANDERSON<<MICHAEL<JAMES<<<<<<<<<<<<<<<<<
5678912347USA8807221M3203140<<<<<<
Extracted Data
{
  "document_type": "us_passport",
  "passport_number": "567891234",
  "book_number": "",
  "surname": "ANDERSON",
  "given_names": "MICHAEL JAMES",
  "full_name": "MICHAEL JAMES ANDERSON",
  "nationality": "UNITED STATES",
  "date_of_birth": "1988-07-22",
  "sex": "M",
  "place_of_birth": "CHICAGO, ILLINOIS, U.S.A.",
  "issue_date": "2022-03-15",
  "expiry_date": "2032-03-14",
  "issuing_authority": "United States Department of State",
  "mrz_line_1": "P<USAANDERSON<<MICHAEL<JAMES<<<<<<<<<<<<<<<<<",
  "mrz_line_2": "5678912347USA8807221M3203140<<<<<<<<<<<<<<02",
  "mrz_valid": true,
  "endorsements": "",
  "document_status": "valid"
}

Valid US passport with 10-year validity period and clear biometric data. Tests extraction of standard US passport information with MRZ code and security features intact.

Frequently Asked Questions

What documents can US Passport Extractor process?

The US Passport Extractor template processes identity documents including various formats and layouts. See the instructions for specific document types supported.

How accurate is the US Passport Extractor extraction?

The US Passport Extractor template uses Gemini 2.5 Flash for high-accuracy extraction. Results include confidence scores for each field.

Can I customize the US Passport Extractor template?

Yes, you can modify the extraction schema, add custom fields, or adjust the instructions to match your specific requirements.

Start Extracting Data Today

Process your first document in under 5 minutes. No credit card required.