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_birthstringDate of birth in ISO-8601 format (YYYY-MM-DD).
endorsementsarray<unknown>Optional array of passport endorsements or restrictions.
expiry_datestringPassport expiration date in ISO-8601 format (YYYY-MM-DD).
given_namesstringGiven names (first and middle names) as printed.
issue_datestringPassport issue date in ISO-8601 format (YYYY-MM-DD).
issuing_authoritystringAuthority or agency that issued the passport (e.g., "U.S. Department of State").
mrz_line_1stringFirst line of Machine Readable Zone (MRZ) if legible.
mrz_line_2stringSecond line of Machine Readable Zone (MRZ) if legible.
nationalitystringNationality or country of citizenship (default "USA").
passport_numberstringUnique passport number as printed on the biographical page.
place_of_birthstringCity and state (or country if born abroad) of birth.
sexstringSex or gender as indicated on passport (M, F, or X).
surnamestringFamily name or surname as printed.
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.