Case Repository
The published record of American case law, as a simple REST API.
What it is
Every published U.S. court opinion — Supreme Court, federal circuits, state courts — with full text, metadata, and citation counts, behind a clean JSON API. Search and filter cases, pull complete opinion text, or export bulk datasets as JSONL. Data is public domain, sourced from the Free Law Project.
Built for AI-assisted development
The entire API is documented in one file written for language models. Building with Claude, ChatGPT, or Cursor? Give your assistant this URL and your API key, and describe what you want:
https://caserepository.com/llms.txt
A taste
$ curl -H "Authorization: Bearer $KEY" \
"https://caserepository.com/api/v1/cases?court=scotus&min_citations=50000"
{
"cases": [
{"id": 111170, "case_name": "Strickland v. Washington",
"date_filed": "1984-06-25", "citation_count": 123578},
{"id": 107252, "case_name": "Miranda v. Arizona",
"date_filed": "1966-06-13", "citation_count": 58288},
...
Search parameters
Case searches (GET /api/v1/cases)
and bulk exports accept the same filters, combined freely:
| court=scotus | Limit to one court, by slug — see the court list below. |
| filed_after=2020-01-01 | Only cases decided on or after this date. |
| filed_before=2023-12-31 | Only cases decided on or before this date. |
| min_citations=100 | Only cases cited at least this many times by other cases. |
| per_page=20 | Results per page when browsing (max 100). |
| include_text=true | Exports only: include the full opinion text for every case. |
Results return in a stable id order; sort by date or citations on your side after fetching. Full details, pagination, and the export workflow are in llms.txt.
Supported courts
Every court in the corpus has a short slug used in the court= parameter: scotus for the Supreme Court, ca1–ca11 for the federal circuits, state slugs like mo and cal, plus district, bankruptcy, and specialty courts.
courts.txt — the complete list of every court slug with its full name. (Your app can also fetch it live: GET /api/v1/courts.)
Access
Case Repository is currently in private beta. API keys are issued personally to researchers and builders — if you'd like one, reach out.