US Passport Biographic Page

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

The fields this preset extracts.

date_of_birthstring

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

endorsementsarray<unknown>

Optional array of passport endorsements or restrictions.

expiry_datestring

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

given_namesstring

Given names (first and middle names) as printed.

issue_datestring

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_numberstring

Unique passport number as printed on the biographical page.

place_of_birthstring

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

sexstring

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

surnamestring

Family name or surname as printed.

curl
curl -X POST 'https://app.staging.xberg.io/v1/extract' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -F 'file=@your-document.pdf' \
  --form-string 'options={"preset":"passport_us"}'
Call mode
Text only
Citations
Enabled
Version
v1

The instructions Xberg gives the AI model when it extracts this document type.

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). Extract nationality only if explicitly printed. 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. If the document does not match this preset, return {}. Extract only values supported by the document. Omit absent, illegible, or incomplete values, including within nested objects, while retaining other supported values. Do not infer, guess, supply defaults, or calculate missing values. Omit dates whose complete year, month, and day are not explicit. Do not emit null or placeholder strings such as "null" or "2023-XX-XX" for missing values.

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

We value your privacy

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