Introduction
Access millions of U.S. court opinions through SQL, MCP, or API.
Midpage provides access to the most comprehensive caselaw database in the United States. Our data is collected from 2000+ courts through a network of over 300 custom-built scrapers that run 6 times daily.
Data Access Interfaces
There are three ways to access the data:
| Interface | Description |
|---|---|
| SQL Read Replica | Direct PostgreSQL access for raw queries and data exploration |
| MCP Agent | Model Context Protocol integration for AI assistants |
| REST API | HTTP endpoints for application integration |
Database Overview
The public read replica exposes the opinions schema with these tables:
| Table | Description |
|---|---|
courts |
Court definitions (2000+ courts) |
cases |
Case metadata and docket information |
docket_entries |
Individual opinion entries |
citations |
Reporter citations for opinions |
content |
Full text content in HTML format |
opinion_relations |
Citation relationships between opinions |
Coverage
- 13M+ court opinions
- 2000+ federal and state courts
- Historical coverage back to founding-era cases
Data Sources
- 300+ Home-Built Scrapers — Our custom scrapers visit court websites 6 times per day to capture new opinions, orders, and filings.
- Enhanced Metadata — Structured extraction of judges, citations, docket numbers, case types, and party information.
- Citation Graph — Cross-references between opinions enabling citation analysis and relationship discovery.