Court Records API: Case Law, Opinions, PACER Dockets, Judges avatar

Court Records API: Case Law, Opinions, PACER Dockets, Judges

Pricing

from $5.00 / 1,000 search hit or courts

Go to Apify Store
Court Records API: Case Law, Opinions, PACER Dockets, Judges

Court Records API: Case Law, Opinions, PACER Dockets, Judges

Search US court records and case law: court opinions with full text, opinion clusters and citations, PACER dockets, docket entries and RECAP documents, federal and state judges, courts and oral argument audio through the CourtListener REST API v4. Bring your own key.

Pricing

from $5.00 / 1,000 search hit or courts

Rating

0.0

(0)

Developer

Nabeel Hassan

Nabeel Hassan

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a month ago

Last modified

Features

Limited permissions

Share

Search and export US court records, court opinions with full text, PACER dockets, docket entries, judges and oral argument recordings from the CourtListener REST API v4, as clean dataset rows. Bring your own API key.

What it does

  • Legal search across the CourtListener search engine: case law opinions, PACER cases, PACER filing documents, judges and oral argument audio, with the same query syntax and filters as the courtlistener.com search page.
  • Case law: opinion clusters (decisions with parallel citations, panel, precedential status and citation count) and individual opinions with their full text (lead opinion, concurrences, dissents).
  • PACER data from the RECAP Archive: dockets with nature of suit, cause, assigned judge and filing dates; docket entries and RECAP documents for one docket.
  • Judges: federal and state judges and justices with birth date, birthplace, gender and positions.
  • Courts: more than 3,000 courts and jurisdictions with IDs, names and citation strings.
  • Oral arguments: recordings with case name, docket, judges, duration and an MP3 link.
  • Filters by court ID, docket number, filing date range, case name, judge, citation, precedential status, minimum citation count, nature of suit and more.
  • Record ID lookups: give docket, cluster, opinion or judge IDs and get those exact records.
  • Read only. The actor never buys PACER documents, never uploads to RECAP and never creates alerts.
  • Pay per result, and only for rows that carry a real record. Empty answers and refused lookups are free.

Bring your own API key

This actor calls CourtListener with your own token, so your requests count against your own CourtListener limits.

  1. Create a free account at courtlistener.com and sign in.
  2. Open your profile page at courtlistener.com/profile/api-token/ and copy the token.
  3. Paste it into the CourtListener API token field (just the token, without the word Token), or set it as the DATA_API_KEY secret.

Free tokens allow 5 requests a minute, 50 an hour and 125 a day on a rolling window. A Free Law Project membership raises those limits, and Free Law Project offers commercial agreements for product use. If the token's allowance is used up, the run ends cleanly with a status message and charges nothing more. Without a token the run ends at once with instructions and makes no request.

Input

FieldUsed byWhat it does
What to readallLegal search, dockets, clusters, opinions, docket entries, RECAP documents, courts, judges or oral arguments.
CourtListener API tokenallYour own token. Stored as a secret.
Search querysearchKeywords or advanced operators such as caseName:(roe AND wade) or court_id:ca9, sent as q.
Search typesearcho case law, r PACER cases with filings, rd PACER filings, d PACER cases, p judges, oa oral arguments.
Search ordersearchRelevance, filing date, citation count, argument date, name or birth date, depending on the type.
Case name, Judge, CitationsearchFielded search filters.
Precedential statusessearch, clustersPublished, Unpublished, Errata, Separate, In chambers, Relating to, Unknown. Case law search returns only published opinions unless you pick statuses.
Semantic searchsearchPlain language case law search ranked by meaning.
Court IDssearch and most database modesSuch as scotus, ca9, nysd, cal.
Docket numbersearch, dockets, clusters, opinionsSuch as 1:16-cv-00745. Add a court too, since docket numbers repeat across courts.
Filed on or after, Filed on or beforesearch, dockets, clusters, docket entriesYYYY-MM-DD. For oral argument search these are argument dates.
Record IDsdatabase modesExact records by ID, one request each.
Docket IDclusters, docket entries, RECAP documents, oral argumentsRequired for docket entries and RECAP documents.
Cluster ID, Author judge IDopinionsEvery opinion in one decision, or every opinion by one judge.
Minimum citation countclustersOnly decisions cited at least this often.
Nature of suit, PACER case IDdocketsPACER case filters.
Include full textopinions, RECAP documentsTurn off for smaller, cheaper rows without text.
Court jurisdictions, Only courts in usecourtsFederal Appellate, Federal District, State Supreme and the other jurisdiction types.
Judge name prefixes, birth statejudgesFind judges by name.
Database orderdatabase modesSuch as -date_filed or -citation_count.
Maximum rows, Requests per minuteallRun size and pacing. Defaults of 20 rows and 5 requests a minute fit a free token.

Example input:

{
"mode": "search",
"query": "qualified immunity",
"searchType": "o",
"courts": ["scotus", "ca9"],
"filedAfter": "2020-01-01",
"searchOrderBy": "citeCount desc",
"maxResults": 20
}

Output

Every row has mode, recordType, query, found, id, flat columns for the record type, a url on courtlistener.com and the full CourtListener record in record. A legal search hit looks like this (shortened, values from the CourtListener documentation example):

{
"mode": "search",
"recordType": "searchResult",
"searchType": "o",
"query": "foo",
"found": true,
"id": "6613686",
"caseName": "Foo v. Foo",
"court": "Hawaii Intermediate Court of Appeals",
"courtId": "hawapp",
"dateFiled": "2003-01-10",
"docketNumber": "24158",
"citation": "101 Haw. 235; 65 P.3d 182",
"status": "Published",
"citeCount": 0,
"snippet": "Affirmed in part, reversed in part, vacated and remanded",
"url": "https://www.courtlistener.com/opinion/6613686/foo-v-foo/",
"note": null,
"record": { "cluster_id": 6613686, "opinions": [] }
}

A docket row:

{
"mode": "dockets",
"recordType": "docket",
"found": true,
"id": "4214664",
"caseName": "NATIONAL VETERANS LEGAL SERVICES PROGRAM v. United States",
"courtId": "dcd",
"dateFiled": "2016-04-21",
"dateLastFiling": "2024-05-15",
"docketNumber": "1:16-cv-00745",
"pacerCaseId": "178502",
"natureOfSuit": "Other Statutory Actions",
"cause": "28:1346 Tort Claim",
"judge": "Paul L. Friedman",
"url": "https://www.courtlistener.com/docket/4214664/national-veterans-legal-services-program-v-united-states/"
}

Opinion rows add opinionType, clusterId, judge (author), text (plain text, or the cited HTML stripped to text) and textLength. Judge rows add name, born, died, birthPlace and gender. Oral argument rows add durationSeconds and audioUrl.

Pricing

EventPriceWhen
Search hit or court0.005 USDEach legal search hit and each court row.
Court record0.01 USDEach docket, cluster, docket entry, judge or oral argument record, and each opinion or RECAP document read without text.
Opinion or document with full text0.02 USDEach opinion or RECAP document that carries its text.

Rows with found set to false (no match, or a lookup CourtListener refused) are never charged.

FAQ

What is CourtListener?

CourtListener is a free legal research website and REST API run by Free Law Project, a 501(c)(3) non-profit. It holds millions of US court opinions, the RECAP Archive of PACER dockets and filings, a database of federal and state judges, and the largest collection of oral argument recordings online.

Do I need a CourtListener account?

Yes. A free CourtListener account gives you an API token on your profile page. This actor uses only your token and never creates accounts or shares tokens. CourtListener's terms ask that you keep your token to yourself and respect the rate limits of your access level.

How many records can I read with a free token?

A free token allows 5 requests a minute, 50 an hour and 125 a day. One request returns about 20 search hits or list rows, and a record ID lookup is one request per record. A Free Law Project membership or a commercial agreement raises the limits.

Can this actor download PACER documents or buy them from PACER?

No. It reads only what is already in the RECAP Archive and the CourtListener database. It never calls the RECAP fetch, upload or Pray and Pay endpoints, so it never spends PACER fees.

Why does the docket entries or RECAP documents mode say access was refused?

CourtListener opens some PACER endpoints only to select users. If your token gets HTTP 403 there, the run ends cleanly with that message; ask Free Law Project for access, or use legal search with type r or rd, which returns PACER cases and filings to every token.

How do I get every opinion in a Supreme Court case?

Search case law with the court ID scotus and your query, take the cluster id of the decision, then run the opinions mode with that cluster ID. You get the lead opinion, concurrences and dissents, each with full text.

Can I use this data to screen people for jobs, credit or housing?

No. Free Law Project is not a consumer reporting agency, and its terms forbid using CourtListener data for any purpose covered by the Fair Credit Reporting Act, such as employment, credit, insurance or housing eligibility.

Is court opinion text public domain?

Judicial opinions are generally in the public domain in the United States, which is why CourtListener can publish them. Some filings in the RECAP Archive may quote copyrighted works, so check before you republish a document.

Routes and verification

The actor calls only GET routes documented on courtlistener.com/help/api/rest/ (v4.7): /api/rest/v4/search/, /dockets/, /clusters/, /opinions/, /docket-entries/, /recap-documents/, /courts/, /people/ and /audio/, plus /<endpoint>/<id>/ for record IDs. Filter names come from the query refinement guide and the endpoints' published filter sets. Every route answered HTTP 401 "Invalid token" to a probe with a fake token, while invented routes answered 404. The actor is not live tested with a real token; the request building, paging, row shaping and error handling are covered by offline tests.

Powered by the CourtListener API from Free Law Project. This actor is independent and is not produced or endorsed by Free Law Project. Data is provided as is; verify anything you rely on against the primary court record.

Keyword map

court records API, case law API, court opinions API, legal data API, PACER API, PACER docket search, RECAP Archive, federal court dockets, state court opinions, Supreme Court opinions, judge database, judicial data, oral argument audio, legal research automation, citation search, CourtListener API, Free Law Project.