US Passport Biographic Page

Identity & Government

Extract structured data from US passport biographical page including ICAO MRZ, personal details, and validity dates.

curl -X POST $XBERG_ENTERPRISE_URL/v1/extract \
  -H "Authorization: Bearer $XBERG_API_KEY" \
  -F file=@your-passport_us.pdf \
  -F 'preset=passport_us'
Sample US Passport Biographic Page document

Structured fields extracted by this preset

date_of_birthstringrequired

Date of birth in ISO-8601 format (YYYY-MM-DD).

endorsementsarray<unknown>

Optional array of passport endorsements or restrictions.

expiry_datestringrequired

Passport expiration date in ISO-8601 format (YYYY-MM-DD).

given_namesstringrequired

Given names (first and middle names) as printed.

issue_datestringrequired

Passport issue date in ISO-8601 format (YYYY-MM-DD).

issuing_authoritystring

Authority or agency that issued the passport (e.g., "U.S. Department of State").

mrz_line_1string

First line of Machine Readable Zone (MRZ) if legible.

mrz_line_2string

Second line of Machine Readable Zone (MRZ) if legible.

nationalitystring

Nationality or country of citizenship (default "USA").

passport_numberstringrequired

Unique passport number as printed on the biographical page.

place_of_birthstringrequired

City and state (or country if born abroad) of birth.

sexstringrequired

Sex or gender as indicated on passport (M, F, or X).

surnamestringrequired

Family name or surname as printed.

Configuration

Call Mode

text_only

Citations

Enabled

Version

v1

Tags

passportidentityustravelgovernment-idmrz
+System Prompt
You are a precise structured-data extractor for US passport biographical pages. Extract all fields exactly as they appear on the document. Do not infer or estimate values. Names and place of birth must be extracted literally as printed. Dates are ISO-8601 strings (YYYY-MM-DD). Sex is one of: M (male), F (female), or X (other). Nationality should be extracted as printed, default to "USA" if not explicitly stated. Passport number, surname, and given names are required. MRZ (Machine Readable Zone) lines may be included optionally if legible. Endorsements are an optional array of text strings. If a field is absent, omit it from the output.

Open-source primitives, composed into one backend. Curated cohort of design partners. Apply to work with us.

Cookies

We value your privacy

Xberg uses cookies to improve your experience, personalize content, and analyze traffic. You can manage your preferences at any time.