Document type

Extracting data from historical immigration visas

Under the quota laws, each immigrant needed a visa from a US consulate abroad, typed onto a printed form beside a photograph. Genealogists and archives read them to trace family arrivals. The USCIS Visa Files series alone holds more than 3.1 million, reaching researchers as copies from records requests and images on genealogy sites.

A researcher needs the visa number, the consular post and the issue date, along with the bearer's name and nationality. A genealogy index matches the visa details against the passenger manifest, which lists them too, and links the immigrant into a family tree.

Page 1 of a sample Immigration Visa (Historical), with extracted values outlined
DPT-3 ProParse model
1page
2,003Markdown characters
1.1parse credits per page
10.9 sparse time
18fields extracted
The problem

What makes historical immigration visas hard

  • Values typed inside legal sentences

    The form is printed prose with blanks in it, so the nationality is typed into "who is of ___ nationality", with its caption printed underneath.

  • Photographs and stamps cover the form

    The bearer's photograph, the consular seal and the fee stamp sit across the printed text, and a handwritten signature crosses the photograph itself.

  • Copies survive as small images

    Many visas circulate as small grayscale scans posted to genealogy sites, and at that resolution the typed letters blur into each other.

How it works

Parse, extract, verify

  1. 1

    Parse

    Parse turns the document into reading-order Markdown and a hierarchy of blocks (text, tables, figures), and grounds each block to its exact location on the page.

  2. 2

    Extract

    You define the fields in a JSON schema, and Extract returns their values in a consistent, structured format, each linked back to where it appears in the Markdown.

  3. 3

    Verify

    Each value links back to where it appears, down to the character range in the Markdown, and the page and bounding box in the source document, so every result can be verified.

Worked example

One historical immigration visa, end to end

About this document: A United States Quota Immigration Visa issued by the American Consular Service at Riga, Latvia, on a Government Printing Office form. It is one page, a low-resolution grayscale image from the RootsWeb genealogy wiki, with no text layer. Typed entries fill two columns of blanks around the bearer's photograph, a fee stamp and the vice consul's signature. The form is published unredacted, as printed.

Processing objective: The objective is to record the visa as an instrument of the quota system from the typed entries and checked box on one low-resolution image. The visa number and consular post are details a passenger manifest repeats, so they tie the visa to its arrival record.

Demonstration fields: Visa number, Consular post, Quota category, Granted under

The document

1 page
  • Page 1 of the sample Immigration Visa (Historical)Page 1shown below

Where each value came from

Visa numbervisa_number
840
The region of the sample Immigration Visa (Historical) containing Visa number, with the extracted value outlined
extraction_metadata["visa_number"]
{
  "value": "840",
  "page": 1,
  "range": {
    "end": 1001,
    "start": 998
  },
  "box": {
    "xmin": 0.6926,
    "ymin": 0.23194,
    "xmax": 0.73018,
    "ymax": 0.24692
  }
}
Consular postissuing_post
RIGA, LATVIA
The region of the sample Immigration Visa (Historical) containing Consular post, with the extracted value outlined
extraction_metadata["issuing_post"]
{
  "value": "RIGA, LATVIA",
  "page": 1,
  "range": {
    "end": 57,
    "start": 45
  },
  "box": {
    "xmin": 0.41667,
    "ymin": 0.11193,
    "xmax": 0.59846,
    "ymax": 0.12959
  }
}
Quota categorypreference
Preference
The region of the sample Immigration Visa (Historical) containing Quota category, with the extracted value outlined
extraction_metadata["preference"]
{
  "value": "Preference",
  "page": 1,
  "range": {
    "end": 128,
    "start": 118
  },
  "box": {
    "xmin": 0.0866,
    "ymin": 0.28224,
    "xmax": 0.16888,
    "ymax": 0.29314
  }
}
Granted undergoverning_law
Immigration Act of 1924
The region of the sample Immigration Visa (Historical) containing Granted under, with the extracted value outlined
extraction_metadata["governing_law"]
{
  "value": "Immigration Act of 1924",
  "page": 1,
  "range": {
    "end": 1386,
    "start": 1363
  },
  "box": {
    "xmin": 0.58043,
    "ymin": 0.58945,
    "xmax": 0.77253,
    "ymax": 0.60191
  }
}
Page 1 of the sample Immigration Visa (Historical), with every featured field outlined

Performance

Parsed and extracted with v2 APIs using dpt-3-pro-20261111 and extract-20261111, at the Standard service tier.

1page
1.1parse credits per page
10.9 sparse time
19schema fields
0.053extract credits per field
161.2 sextract time
Capabilities

Historical Immigration Visa processing highlights

Typed entries on printed forms
Checked classification boxes
Captions printed under blanks
Stacked two-line passport numbers
Alternate name spellings
Nationality and passport details
Photographs described in text
Stamps and seals transcribed
Handwritten signatures
Low-resolution grayscale images
Dates normalized to ISO
Bounding box for every value
Get started

How to try it yourself

Everything on this page is reproducible. The sample, its schema, and the Parse and Extract API outputs are published. You can repeat the same two calls from whichever surface you already build on.

  • Claude Skilldescribe the job; the agent writes it
  • CLIno code at all
  • MCPexpose ADE docs as an agent tool
  • REST APIany language
  • Pythonlandingai-ade
  • TypeScriptlandingai-ade
Why LandingAI?

Documents into data

Accurate

The best accuracy on the difficult documents other tools get wrong, such as messy scans, complicated tables, checkboxes and handwriting.

Auditable

Every answer cites its sources. Values come back with an audit trail (page, bounding box, character range) so a human can review them.

Agentic

Applies multi-step reasoning, and plans before it acts. Handles documents it has never seen before and adapts to variations.

API-first

Composable APIs that drop into any tech stack and can be called from anywhere. Easy to build on and embed in your pipelines and products.

Affordable

Cost-competitive rates with complete price transparency. Spend controls before you run, and every job reports its exact cost.

Enterprise-grade

Built for production and scale from day one. Fully observable and monitored, running securely in our cloud or yours.

Built for high-volume, high-throughput production

  • Zero data retention
  • Priority rate limits
  • Enhanced support
  • VPC and on-prem deployment

Available on Team and Enterprise plans. VPC and on-prem deployment require an Enterprise plan.

Compare plans
FAQs

Questions, answered

Yes. Parsing reads the page image, so a scan or a photograph needs no embedded text. DPT-3 Pro handles scanned documents and handwriting, and grounding comes back against the image either way.

Yes. Checkboxes parse as checked or unchecked items beside their printed labels. A schema field can then return the label of the box that is checked, such as the preference class on a quota visa.

Yes. Give the second spelling a field of its own in the schema. A name typed in parentheses under the first comes back as a separate value, so an index can search on both.

A photograph parses as a figure with a generated description of what it shows. Stamps, seals and signatures parse as attestation blocks, labeled by type, with any readable text inside them transcribed.

Every value comes back with a character range in the parsed Markdown, and the Ground API turns that range into a page number and a bounding box. A reviewer sees the value outlined on the original image.

Start extracting historical immigration visa data

Reliable, structured outputs with full traceability in minutes