CourtListener Scraper — US Case Law & Opinions avatar

CourtListener Scraper — US Case Law & Opinions

Pricing

from $3.00 / 1,000 results

Go to Apify Store
CourtListener Scraper — US Case Law & Opinions

CourtListener Scraper — US Case Law & Opinions

Search US case law and court opinions (plus judges, oral arguments, dockets) by keyword, court and date. Case name, court, date filed, citations, docket, judges and status. Powered by CourtListener. Keyless, no anti-bot.

Pricing

from $3.00 / 1,000 results

Rating

0.0

(0)

Developer

Haketa

Haketa

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

12 days ago

Last modified

Categories

Features

Limited permissions

Share

CourtListener Scraper — US Case Law, Opinions, Dockets & Judges

Apify Actor Maintenance Data Format Deep Pagination Data Extraction Legal Intelligence

Search US case law, court opinions, federal dockets, and judicial records in bulk. This CourtListener scraper lets you scrape CourtListener — the comprehensive legal repository maintained by the Free Law Project — across every jurisdiction, court level, and filing date with zero coding. Extract full case names, court designations, reporter citations, docket numbers, precedential status, authoring judges, text snippets, and direct links straight into JSON, CSV, or Excel.

Whether you are performing empirical legal research, tracking precedents across federal circuits, building AI legal assistants (RAG), or monitoring docket activity, this actor automates multi-query searches and deep cursor pagination seamlessly.


⚡ At a glance

FeatureDetails
Data SourceCourtListener public legal database & case repository
Search TypesOpinions (case law), Judges / People, Oral arguments, Dockets (RECAP)
PaginationAutomatic cursor-based pagination (supports 1,000+ results per query)
FilteringFull-text keywords, boolean operators, court ID, date filed ranges
Data EnrichmentNormalized citations, citation counts, docket IDs, PDF links, panel judges
Export FormatsDataset (JSON, CSV, Excel, XML, RSS), Key-Value store, API endpoints
Execution SpeedFast multi-query concurrency with automated proxy distribution
AuthenticationShared public access bundled; optional user token for higher rate limits
Rate Limit HandlingAutomatic exponential backoff and transparent error recovery
Platform IntegrationDirect webhooks, Python SDK, Node.js SDK, Make, Zapier, n8n

🔎 Why scrape CourtListener?

CourtListener is one of the premier free and open legal repositories in the United States, hosting tens of millions of judicial opinions from the Supreme Court, federal appellate circuits, district courts, bankruptcy courts, and state supreme courts.

Manually looking up cases or navigating search pages one by one is impractical when analyzing large-scale litigation trends, tracking regulatory interpretations, or assembling training data for legal machine learning models.

Primary applications for CourtListener scraping:

  • Case law research at scale: Pull every precedential opinion referencing specific statutes, privacy frameworks, or patent disputes across all 50 states and federal jurisdictions.
  • Precedent & influence scoring: Use citation counts (citeCount) and reporter volume citations to identify landmark rulings and persuasive precedent in specific courts.
  • AI & RAG legal knowledge bases: Feed clean, structured case metadata and contextual text snippets into LLM retrieval-augmented generation pipelines.
  • Litigation tracking & competitive intelligence: Monitor lawsuits and court proceedings involving specific corporations, regulatory bodies, or patent owners.
  • Empirical legal scholarship: Gather historical datasets of opinions, judge assignments, and docket timelines to evaluate systemic judicial patterns.
  • Judicial profiling: Extract decisions, panel memberships, and opinion histories of specific judges across different circuits.
  • Mergers & acquisitions due diligence: Investigate active litigation exposure, historical case filings, and judicial outcomes involving corporate targets.

⚖️ Comparative overview: Why use this scraper?

RequirementManual ResearchLexisNexis / WestlawCourtListener Scraper
Bulk Data Export❌ Manual copy-paste only⚠️ Restricted per contract / expensive✅ Unlimited automated JSON/CSV/Excel
API & Automation❌ None⚠️ High enterprise cost✅ Full REST API, webhooks & SDKs
Deep Pagination❌ Click through 20 items/page⚠️ UI query caps apply✅ 1,000+ records auto-cursor pagination
Direct PDF Links🟡 Page by page🟡 Proprietary viewer format✅ Direct source PDF links where available
AI / RAG Integration❌ Impossible⚠️ Walled garden APIs✅ Clean flattened JSON with snippets
Cost Efficiency❌ Hundreds of manual hours❌ $500–$2,000+/user/month✅ Pay only for lightweight compute

✨ Key features

  • 🏛️ Full Court Hierarchy: Search opinions across federal courts (Supreme Court, 1st–11th Circuits, D.C. Circuit, Federal Circuit, District Courts) and state supreme courts.
  • 🔄 Unlocked 1,000+ Pagination: Automatic cursor traversal handles large result sets seamlessly. Retrieve deep archives without getting truncated.
  • 🎯 Advanced Query Syntax: Use boolean operators, exact quotation matching ("qualified immunity"), wildcard tokens, and judicial title filters.
  • 📅 Granular Date Ranges: Restrict results with dateFiledAfter and dateFiledBefore parameters to monitor recent filings or extract historical eras.
  • ⚡ Multi-Query Concurrency: Run multiple search queries in parallel with automatic rate limit backoff and proxy rotation.
  • 📑 Rich Field Extraction: Normalizes citations, panel judges, procedural postures, natures of suit, and opinion text snippets.
  • 🔗 Direct Document Links: Output contains direct links to CourtListener case pages as well as source PDF download URLs where available.
  • 🛡️ Zero Setup Friction: Operates immediately out of the box with default legal queries and seamless public access.
  • 📊 Multiple Output Schemas: Built-in Apify dataset views for instant interactive preview in table format, alongside raw JSON/CSV download.

📥 Input parameters

The scraper accepts customizable query filters, court identifiers, and pagination parameters. All settings are optional, with helpful defaults provided.

FieldTypeDefaultDescription
queriesArray of strings["data privacy"]List of legal search phrases or topics (e.g., "patent infringement", "section 230").
searchTypeString (select)"o"Search mode: o (Opinions/Case Law), p (Judges), oa (Oral Arguments), r (Dockets).
courtString""Optional court filter code (e.g., scotus, ca9, ca2, cand, nysd). Leave empty for all.
dateFiledAfterString""Filter for opinions filed on or after this date (format: YYYY-MM-DD).
dateFiledBeforeString""Filter for opinions filed on or before this date (format: YYYY-MM-DD).
maxItemsPerQueryInteger0Maximum items per query. Set to 0 for unlimited / auto pagination.
apiTokenString (secret)""Optional personal CourtListener API token for high-volume custom quota.
maxConcurrencyInteger3Number of simultaneous queries to execute concurrently.
proxyConfigurationObject{ "useApifyProxy": true }Apify Proxy configuration for request routing.

🏛️ Supported Court Codes Reference

When specifying a target jurisdiction in the court field, you can use any valid CourtListener court identifier. Below is a reference of the most frequently queried federal and state courts:

Court CodeCourt NameJurisdiction Type
scotusSupreme Court of the United StatesFederal Supreme
ca1U.S. Court of Appeals for the First CircuitFederal Appellate
ca2U.S. Court of Appeals for the Second CircuitFederal Appellate
ca3U.S. Court of Appeals for the Third CircuitFederal Appellate
ca4U.S. Court of Appeals for the Fourth CircuitFederal Appellate
ca5U.S. Court of Appeals for the Fifth CircuitFederal Appellate
ca6U.S. Court of Appeals for the Sixth CircuitFederal Appellate
ca7U.S. Court of Appeals for the Seventh CircuitFederal Appellate
ca8U.S. Court of Appeals for the Eighth CircuitFederal Appellate
ca9U.S. Court of Appeals for the Ninth CircuitFederal Appellate
ca10U.S. Court of Appeals for the Tenth CircuitFederal Appellate
ca11U.S. Court of Appeals for the Eleventh CircuitFederal Appellate
cadcU.S. Court of Appeals for the D.C. CircuitFederal Appellate
cafcU.S. Court of Appeals for the Federal CircuitFederal Appellate
nysdU.S. District Court for the Southern District of New YorkFederal District
candU.S. District Court for the Northern District of CaliforniaFederal District
txedU.S. District Court for the Eastern District of TexasFederal District
calSupreme Court of CaliforniaState Supreme
nyNew York Court of AppealsState Supreme
texSupreme Court of TexasState Supreme
illSupreme Court of IllinoisState Supreme
flasupctSupreme Court of FloridaState Supreme

🔍 Advanced Search Syntax & Query Tips

The actor supports full boolean logic and search modifiers to help refine your dataset:

  • Exact Phrase Matching: Surround terms with quotation marks to find exact legal phrases.
    • Example: "qualified immunity", "fair use", "arbitrary and capricious"
  • Boolean Operators: Use uppercase AND, OR, and NOT (or minus prefix -) to combine concepts.
    • Example: "data breach" AND negligence NOT healthcare
  • Statutory Citations: Search by statutory code citations directly.
    • Example: "17 U.S.C. 107", "42 U.S.C. 1983", "18 U.S.C. 1030"
  • Proximity & Wildcard: Use asterisks for root variations.
    • Example: copyright* AND stream*

📋 Extracted data fields

The actor outputs clean, flat records suitable for tabular analysis and spreadsheet export.

🏛️ Court & case identification

FieldDescriptionCoverage
caseNamePrimary name or caption of the lawsuit / decision🟢 High (98%+)
caseNameFullFull formal case caption including extended parties🟡 Conditional (75%)
courtName of the deciding court or jurisdiction🟢 High (99%)
courtIdCourtListener unique court abbreviation (e.g., ca9, scotus)🟢 High (99%)
courtCitationCourt citation abbreviation or standard reporter series🟡 Conditional (65%)
jurisdictionLevel and jurisdiction code (e.g., F, S, FD)🟢 High (95%)
docketNumberPrimary court docket tracking number🟢 High (92%)
clusterIdCourtListener unique cluster ID grouping related opinions🟢 High (99%)
opinionIdUnique record ID for the specific opinion🟢 High (95%)

📅 Dates & citations

FieldDescriptionCoverage
dateFiledOfficial filing / decision date (YYYY-MM-DD)🟢 High (98%)
dateArguedOral argument date when recorded🟡 Conditional (45%)
citationStandard legal reporter citations (e.g., 598 U.S. 123)🟢 High (85%)
neutralCiteModern neutral citation format when designated🟡 Conditional (35%)
citeCountNumber of subsequent judicial opinions citing this decision🟢 High (95%)

⚖️ Judicial details & text snippets

FieldDescriptionCoverage
judgeAuthoring judge or per curiam designation🟡 Conditional (70%)
panelNamesFull judicial panel participating in the appellate decision🟡 Conditional (60%)
statusPrecedential status (e.g., Published, Unpublished)🟢 High (90%)
suitNatureNature of suit code or classification category🟡 Conditional (55%)
postureProcedural posture or appeal stage🟡 Conditional (50%)
attorneyCounsel of record and law firms representing parties🟡 Conditional (60%)
snippetContextual text snippet matching query keywords🟢 High (85%)
downloadUrlDirect link to original source PDF document🟡 Conditional (50%)
urlCanonical CourtListener web URL for the opinion🟢 High (100%)
scrapedAtISO 8601 timestamp of data extraction🟢 High (100%)

💡 Example output record

{
"query": "data privacy",
"searchType": "o",
"caseName": "TransUnion LLC v. Ramirez",
"caseNameFull": "TransUnion LLC v. Sergio L. Ramirez",
"court": "Supreme Court of the United States",
"courtId": "scotus",
"courtCitation": "U.S.",
"jurisdiction": "F",
"dateFiled": "2021-06-25",
"dateArgued": "2021-03-30",
"citation": "141 S. Ct. 2190; 210 L. Ed. 2d 568",
"neutralCite": "2021 WL 2599472",
"citeCount": "1842",
"docketNumber": "20-297",
"clusterId": "4883109",
"opinionId": "4883109",
"judge": "Kavanaugh",
"panelNames": "Roberts, Thomas, Breyer, Alito, Sotomayor, Kagan, Gorsuch, Kavanaugh, Barrett",
"status": "Precedential",
"suitNature": "Civil Rights",
"posture": "On Writ of Certiorari",
"attorney": "Paul D. Clement argued the cause for petitioner...",
"snippet": "Article III standing requires a concrete injury even in the context of a statutory violation of data reporting laws...",
"downloadUrl": "https://storage.courtlistener.com/pdf/2021/06/25/transunion_llc_v._ramirez.pdf",
"url": "https://www.courtlistener.com/opinion/4883109/transunion-llc-v-ramirez/",
"scrapedAt": "2026-11-10T16:30:00.000Z"
}

🛠️ Step-by-step usage guide

  1. Configure Search Terms: Add one or more legal phrases into the queries field (e.g., antitrust, "fair use", cryptocurrency securities).
  2. Select Jurisdiction (Optional): If you only need decisions from a particular court, provide its ID in the court field (e.g., scotus, ca2, ca9, txed).
  3. Set Date Boundaries (Optional): Use dateFiledAfter (e.g., 2024-01-01) to focus on recent precedent.
  4. Define Limit: Set maxItemsPerQuery to the number of records you need per query, or leave at 0 for deep exhaustive pagination.
  5. Run the Actor: Click Save & Run. Results begin streaming immediately into the Apify dataset.
  6. Export & Integrate: Download your dataset as CSV, Excel, or JSON, or set up scheduled recurring runs with webhooks to Slack, Google Sheets, or internal CRM systems.

🎯 High-impact applications

Litigation teams can schedule recurring weekly runs to capture newly published opinions involving their active topics or opposing counsel across specific district and circuit courts.

Building a conversational legal AI or semantic search tool requires structured, citation-linked case metadata. This scraper outputs clean JSON records with snippet text and direct opinion links ready for vector embedding.

3. Quantitative judicial analytics

Corporate counsel can extract years of decisions from specific judges to analyze plaintiff-versus-defendant win rates, summary judgment grant frequencies, and citation patterns in patent or commercial litigation.

4. Regulatory compliance research

Compliance officers in fintech, healthcare, and privacy can track judicial interpretations of evolving statutory frameworks like HIPAA, GDPR, or state consumer privacy statutes.


💻 Integration Examples

Python with Apify Client

from apify_client import ApifyClient
# Initialize client with your API token
client = ApifyClient("YOUR_APIFY_TOKEN")
# Prepare input
run_input = {
"queries": ["\"patent eligibility\" software", "section 101 alice"],
"court": "cafc",
"dateFiledAfter": "2023-01-01",
"maxItemsPerQuery": 500
}
# Run actor and wait for completion
run = client.actor("haketa/courtlistener-scraper").call(run_input=run_input)
# Fetch dataset items
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(f"{item['dateFiled']} | {item['caseName']} | Cited by: {item['citeCount']}")

Node.js with Apify Client

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({
token: 'YOUR_APIFY_TOKEN',
});
const input = {
queries: ['"trade secret misappropriation"'],
court: 'cand',
maxItemsPerQuery: 200,
};
const run = await client.actor('haketa/courtlistener-scraper').call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Fetched ${items.length} court records.`);

cURL / Direct REST API

curl "https://api.apify.com/v2/acts/haketa~courtlistener-scraper/runs" \
-X POST \
-H "Authorization: Bearer YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"queries": ["\"statutory damages\" copyright"],
"maxItemsPerQuery": 100
}'

🛡️ Reliability, Throttling & Architectural Safety

Operating against legal information infrastructure requires strict compliance with upstream availability guidelines:

  • Polite Concurrency Control: The actor caps parallel search queries at reasonable defaults to avoid degrading public servers.
  • Dynamic Proxy Distribution: Requests cycle across Apify's datacenter proxy network to mitigate regional IP throttling.
  • Cursor State Preservation: In long-running jobs extracting thousands of records, cursors progress deterministically so no duplicate cases are processed.
  • Fault-Tolerant Record Mapping: Missing fields (such as dissenting judges or unassigned nature of suit classifications) are safely represented as empty strings without breaking schema parsers.

❓ Frequently Asked Questions (FAQ)

Do I need to create a CourtListener account?

A shared default access token is bundled with the actor so it runs out of the box with zero setup. If you plan to scrape tens of thousands of records frequently, you can optionally register for a free account at CourtListener and input your personal API token to utilize your own dedicated quota.

How does pagination work for large queries?

The scraper uses automated cursor-based page traversal. When maxItemsPerQuery is set to 0, it will paginate through all available pages returned by the search engine until no further results exist.

Can I search by court circuit?

Yes. Use standard CourtListener court identifiers in the court input field. Common identifiers include scotus (Supreme Court), ca1 through ca11 (Circuits 1 to 11), cadc (D.C. Circuit), cafc (Federal Circuit), and state courts like cal (Supreme Court of California) or ny (New York Court of Appeals).

What export formats are supported?

You can export results in all formats supported by the Apify Platform, including JSON, CSV, Microsoft Excel (XLSX), XML, and RSS feeds.

How does the actor handle rate limits?

The actor features exponential backoff retry logic. If the upstream service responds with HTTP 429 or temporary 5xx errors, requests are paused and retried automatically using rotating proxy IPs.

Can I monitor new case filings automatically?

Yes. You can schedule the actor to run on a daily or weekly schedule on Apify with dateFiledAfter set relative to current date, or connect it to Zapier/Make webhooks to push alert digests straight to Slack or an email inbox.

Does this include full judicial opinions or just summaries?

The scraper returns full case metadata, judicial panel details, citations, precedential status, and matched snippet excerpts. Direct links to the original full opinion web page and PDF source documents are included for each record.

How are citation counts calculated?

The citeCount metric reflects the number of times subsequent court opinions in CourtListener's database have cited the decision. It is an industry-standard proxy for precedent importance and judicial weight.

Can I run multiple search topics in one run?

Yes. Simply specify multiple search terms in the queries array. The scraper processes them concurrently according to your maxConcurrency setting and tags each output record with the corresponding query.


📋 Changelog

Version 1.2 (2026-11)

  • Deep 1,000+ pagination: Removed pagination caps on maxItemsPerQuery; setting 0 now triggers full auto-pagination through all available cursor pages.
  • Enhanced query concurrency: Optimized multi-query batching with polite throttling for seamless high-volume extraction.
  • Field normalization: Added standardized citation strings, neutral citation parsing, and source document URL resolution.
  • Fast prefill configuration: Optimized default input schema to produce representative legal research datasets in under 30 seconds.

Version 1.1

  • Added support for bundled fallback authentication tokens to ensure out-of-the-box zero-config execution.
  • Added procedural posture and nature of suit classification fields.

Version 1.0

  • Initial release supporting Opinions, Judges, Oral Arguments, and Docket search via CourtListener REST v4.