*** September 2026 Major Release ***Read and watch
Document type

Extracting data from inspection reports

A regulator inspects a permitted site and writes up what it found, on a form that differs by agency. The permit holder has to answer each finding by its deadline, and a lender reads the same report as diligence. Environmental teams track thousands a year, arriving as downloads from public databases.

A compliance manager needs the permit number, the inspection date, each violation with the condition it cites and the date the fix is due. A compliance system opens an action per finding and escalates the ones that run past their deadline.

Page 1 of a sample Compliance Inspection Report, with extracted values outlined
8,845Markdown characters
47parse blocks
44fields extracted
The problem

What makes inspection reports hard

Findings cite their conditions

A violation names the permit condition it breaches, what the inspector saw, the action required and the date it falls due.

Free text inside a ruled form

A general data grid gives way to narrative background and long cells that mix bold, colored and plain text.

Photographs carry the evidence

Landscape pages of site photographs follow the findings, each captioned and stamped with a date, time and position.

How it works

Parse, extract, verify

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

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

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 compliance inspection report, end to end

About this document: A Washington State Department of Ecology inspection under a construction stormwater permit. Seven pages of mixed orientation: three portrait pages of general data, background and the enforcement notice, then four landscape pages of site photographs with GPS-stamped captions. Page 1 is featured. The only person named is the inspector, acting officially.

Processing objective: The objective is to read the record of the inspection itself: which permit, when it was inspected, whether the visit was announced and what the site discharges to. The inspection date is returned in ISO form, read out of a line that also carries the entry and exit times.

Demonstration fields: Permit number, Inspection date, Inspection type, Receiving waters, Weather at inspection

The document

4 of 7 pages
  • Page 1 of the sample Compliance Inspection ReportPage 1shown below
  • Page 2 of the sample Compliance Inspection ReportPage 2
  • Page 4 of the sample Compliance Inspection ReportPage 4
  • Page 5 of the sample Compliance Inspection ReportPage 5

Where each value came from

Page 1 of the sample Compliance Inspection Report, with every featured field outlined
Permit numberpermit_number
WAR313805
The region of the sample Compliance Inspection Report containing Permit number, with the extracted value outlined
extraction_metadata["permit_number"]
{
  "value": "WAR313805",
  "page": 1,
  "range": {
    "end": 691,
    "start": 663
  },
  "box": {
    "xmin": 0.72339,
    "ymin": 0.22447,
    "xmax": 0.94294,
    "ymax": 0.27038
  }
}
Inspection dateinspection_date
2024-12-04
The region of the sample Compliance Inspection Report containing Inspection date, with the extracted value outlined

Printed on the page as Inspection Date and Entry/Exit Time: December 4, 2024, 11:28/11:47, normalized on extraction.

extraction_metadata["inspection_date"]
{
  "value": "2024-12-04",
  "page": 1,
  "range": {
    "end": 563,
    "start": 488
  },
  "box": {
    "xmin": 0.49539,
    "ymin": 0.16858,
    "xmax": 0.72339,
    "ymax": 0.22449
  }
}
Inspection typeinspection_type
Unannounced
The region of the sample Compliance Inspection Report containing Inspection type, with the extracted value outlined
extraction_metadata["inspection_type"]
{
  "value": "Unannounced",
  "page": 1,
  "range": {
    "end": 603,
    "start": 572
  },
  "box": {
    "xmin": 0.72324,
    "ymin": 0.1686,
    "xmax": 0.94294,
    "ymax": 0.22448
  }
}
Receiving watersreceiving_waters
Groundwater
The region of the sample Compliance Inspection Report containing Receiving waters, with the extracted value outlined
extraction_metadata["receiving_waters"]
{
  "value": "Groundwater",
  "page": 1,
  "range": {
    "end": 654,
    "start": 622
  },
  "box": {
    "xmin": 0.49552,
    "ymin": 0.22448,
    "xmax": 0.72351,
    "ymax": 0.27039
  }
}
Weather at inspectionweather
39 degrees Fahrenheit, mostly cloudy with a WSW wind at 1 mph.
The region of the sample Compliance Inspection Report containing Weather at inspection, with the extracted value outlined
extraction_metadata["weather"]
{
  "value": "39 degrees Fahrenheit, mostly cloudy with a WSW wind at 1 mph.",
  "page": 1,
  "range": {
    "end": 1600,
    "start": 1507
  },
  "box": {
    "xmin": 0.05376,
    "ymin": 0.86593,
    "xmax": 0.83255,
    "ymax": 0.88326
  }
}

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.

Compare plans
Capabilities

Compliance Inspection Report processing highlights

Every agency's report form
Findings tied to permit conditions
Required actions and deadlines
Ruled general data grids
Narrative background sections
Photo logs with captions
GPS and bearing stamps
Mixed page orientation
Inspector and site details
Dates normalized to ISO
Bounding box for every value
Enforcement notices
FAQs

Questions, answered

Every finding. Define the violations as an array and each comes back with the condition it cites, the observation, the required action and its deadline.

Yes. A caption parses as text beside the photograph it belongs to, so the date, time and position stamped on a site picture come back with it.

No. Portrait and landscape pages parse in one pass, and each value comes back with the page it sits on, so a photo log in landscape stays attached to the report it evidences.

Every value comes back with its page, a bounding box and the character range in the parsed Markdown. An auditor asking why an action was opened can be shown the cell the deadline was read from.

No. A schema names the fields you want. Where they sit on the form is not part of it, so one schema reads an agency's report it has never seen.

Start extracting compliance inspection report data

Reliable, structured outputs with full traceability in minutes