CourtListener Legal Case Scraper avatar

CourtListener Legal Case Scraper

Pricing

from $3.00 / 1,000 results

Go to Apify Store
CourtListener Legal Case Scraper

CourtListener Legal Case Scraper

Scrape US court opinions, RECAP federal dockets, and oral arguments from CourtListener.com with the largest free legal database with 4M+ opinions, SCOTUS to district courts. Search by keyword, court, date range, and more. No API key required.

Pricing

from $3.00 / 1,000 results

Rating

5.0

(11)

Developer

Crawler Gang

Crawler Gang

Maintained by Community

Actor stats

11

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

Extract US court opinions, federal dockets, and oral argument audio records from CourtListener.com — the largest free public legal database in the United States with 4M+ court opinions from SCOTUS down to federal district courts.

What You Can Scrape

  • Court Opinions — case names, courts, judges, filing dates, citations, cite counts, and opinion text snippets (SCOTUS to district level)
  • RECAP Federal Dockets — case filings, parties, attorneys, law firms, jurisdiction types, and document counts
  • Oral Arguments — audio metadata including case name, court, argued date, duration, and download URL

Modes

ModeDescription
opinionsSearch US court opinions / case law (default)
docketsSearch RECAP federal court dockets
oralArgumentsSearch oral argument audio recordings

Input Parameters

ParameterTypeDescription
modeSelectOne of opinions, dockets, oralArguments
searchQueryStringFull-text keyword search. Supports AND, OR, NOT, phrases in quotes
courtSelectFilter to a specific court (e.g. scotus, ca9)
dateFiledAfterStringFilter cases filed after this date (YYYY-MM-DD)
dateFiledBeforeStringFilter cases filed before this date (YYYY-MM-DD)
orderBySelectscore desc, dateFiled desc, dateFiled asc, citeCount desc
statusSelectOpinion status filter: Published, Unpublished, etc.
maxItemsIntegerMax records to return (1–500, default 50)

Output Fields

Opinion Records (recordType: opinions)

FieldTypeDescription
caseIdIntegerCourtListener cluster ID
docketIdIntegerAssociated docket ID
caseNameStringShort case name (e.g. "Roe v. Wade")
caseNameFullStringFull formal case name
courtStringCourt full name
courtIdStringCourt slug ID (e.g. scotus, ca9)
courtCitationStringOfficial citation abbreviation (e.g. "9th Cir.")
docketNumberStringDocket/case number
judgeStringAuthoring judge(s)
statusStringPublished / Unpublished / etc.
suitNatureStringNature of suit
dateFiledStringDate filed (YYYY-MM-DD)
dateArguedStringDate argued (YYYY-MM-DD)
citationsArrayCitation strings (e.g. ["123 U.S. 456"])
lexisCiteStringLexisNexis citation
neutralCiteStringNeutral citation
citeCountIntegerNumber of times cited by other opinions
snippetStringText excerpt from the opinion
attorneyStringAttorney information
caseUrlStringFull CourtListener.com URL
scrapedAtStringISO 8601 timestamp of scrape

Docket Records (recordType: dockets)

FieldTypeDescription
docketIdIntegerCourtListener docket ID
caseNameStringCase name
courtStringCourt name
courtIdStringCourt slug ID
docketNumberStringDocket number
assignedToStringAssigned judge
referredToStringReferred judge
causeStringCause of action
suitNatureStringNature of suit
jurisdictionTypeStringFederal question / Diversity / etc.
partiesArrayParty names
attorneysArrayAttorney names
firmsArrayLaw firm names
dateFiledStringDate case was filed
dateTerminatedStringDate case was terminated
documentCountIntegerNumber of RECAP documents
pacerCaseIdStringPACER case ID
caseUrlStringCourtListener docket URL
scrapedAtStringISO 8601 timestamp

Oral Argument Records (recordType: oralArguments)

FieldTypeDescription
audioIdIntegerAudio recording ID
docketIdIntegerDocket ID
caseNameStringCase name
courtStringCourt name
courtIdStringCourt slug ID
docketNumberStringDocket number
judgeStringPanel judge(s)
dateArguedStringDate argued (YYYY-MM-DD)
durationSecondsIntegerRecording duration in seconds
downloadUrlStringDirect MP3 audio download URL
snippetStringText excerpt from argument transcript
caseUrlStringCourtListener audio page URL
scrapedAtStringISO 8601 timestamp

Example Inputs

{
"mode": "opinions",
"searchQuery": "criminal defense Fourth Amendment",
"court": "scotus",
"orderBy": "citeCount desc",
"maxItems": 50
}
{
"mode": "opinions",
"searchQuery": "contract breach",
"dateFiledAfter": "2020-01-01",
"dateFiledBefore": "2024-12-31",
"status": "Published",
"maxItems": 100
}
{
"mode": "dockets",
"searchQuery": "patent infringement Apple",
"court": "cafc",
"maxItems": 30
}
{
"mode": "oralArguments",
"searchQuery": "Second Amendment gun rights",
"court": "scotus",
"maxItems": 20
}

Supported Courts

Court IDCourt Name
scotusSupreme Court of the United States
ca1ca11U.S. Courts of Appeals (1st–11th Circuits)
cadcCourt of Appeals for the D.C. Circuit
cafcCourt of Appeals for the Federal Circuit
citCourt of International Trade
bap1, bap2, bap6, bap8, bap9, bap10Bankruptcy Appellate Panels

Many more federal district courts and state courts are available — use any CourtListener court ID slug.

Search Query Syntax

CourtListener supports full-text search with boolean operators:

  • murder AND self-defense — both terms
  • "fourth amendment" OR "unreasonable search" — phrase or term
  • patent NOT copyright — exclude a term
  • "habeas corpus" — exact phrase

FAQs

Does this require a CourtListener account or API key?
No. The scraper uses CourtListener's public REST API (v4) which requires no authentication for search operations.

How many records can I fetch?
Up to 500 per run. CourtListener has 4M+ opinions, 123K+ RECAP dockets, and 9K+ oral arguments. Pagination via cursor is handled automatically.

Are opinion full texts included?
The scraper includes opinion text snippets from search results. Full opinion PDFs/text are available at the caseUrl links.

What courts are covered?
All US federal courts: SCOTUS, 13 circuit courts, 94 district courts, bankruptcy courts, and specialty courts. Some state appellate courts are also indexed.

Are oral argument MP3 files accessible?
Yes — the downloadUrl field contains direct MP3 links hosted by the court (e.g. media.ca7.uscourts.gov).

Is this data current?
CourtListener indexes opinions within days of publication. Oral arguments are typically added within a week of being argued.

Technical Notes

  • Data source: CourtListener.com public REST API v4
  • No browser automation required — pure HTTP via httpx
  • No proxy, no cookies, no authentication required
  • Cursor-based pagination for large result sets
  • Retries on 429/5xx with exponential backoff
  • Memory: 1024 MB recommended