Federal Court Records Scraper - PACER RECAP & Opinions avatar

Federal Court Records Scraper - PACER RECAP & Opinions

Pricing

from $1.80 / 1,000 results

Go to Apify Store
Federal Court Records Scraper - PACER RECAP & Opinions

Federal Court Records Scraper - PACER RECAP & Opinions

US federal court records scraper & API: search PACER / RECAP dockets, filings, documents, parties, attorneys, judges and opinions by query, court or date. Legal research, litigation monitoring and docket data — fast, no PACER account and no per-page fees.

Pricing

from $1.80 / 1,000 results

Rating

0.0

(0)

Developer

Haketa

Haketa

Maintained by Community

Actor stats

0

Bookmarked

27

Total users

7

Monthly active users

17 days ago

Last modified

Features

Limited permissions

Share

Federal Court Records Scraper ⚖️🇺🇸 — PACER / RECAP Dockets, Filings & Court Opinions

Extract US federal court records — dockets, docket entries, filed documents, parties, attorneys, law firms, judges and full judicial opinions — as clean, structured data. This federal court records scraper lets you scrape federal court data across every US federal District, Appellate, and Bankruptcy court plus the Supreme Court out of the box — without a PACER account, without $0.10/page PACER fees, and without writing a single line of code.

Bulk export every docket and opinion to JSON, CSV, Excel, XML, or API with 1,000+ results cursor pagination for legal intelligence, litigation monitoring, and KYC/compliance due diligence.

Apify Actor Jurisdiction Records Scale Zero Fees Export

💡 Works out of the box with zero setup! Unlike PACER (which requires registration, a credit card on file, and charges $0.10 per page even for search results), this Actor comes ready to run immediately with a bundled access token — and lets heavy enterprise users optionally supply their own free token for dedicated high-volume rate limits. Built for litigators, paralegals, litigation-finance analysts, corporate compliance/KYC teams, investigative journalists, and legal-AI builders.


⚡ At a glance

FeatureDetails
Data SourceUS Federal Court RECAP Archive (PACER dockets & filings), Judicial Opinions, Judges & Oral Arguments
Courts CoveredAll US Federal Courts — Supreme Court (scotus), all 13 Circuit Courts of Appeals (ca1–ca11, cadc, cafc), and all busiest Federal District & Bankruptcy Courts (nysd, cand, cacd, txed, deb, ilnd, flsd, dcd & nationwide)
Record Types (searchType)r (Cases with documents / RECAP dockets), d (Dockets metadata), o (Opinions / Case law), rd (Individual filing documents), p (Judges), oa (Oral argument audio)
Core Data ExtractedcaseName, court, courtId, courtCitation, docketNumber, docketId, pacerCaseId, dateFiled, dateTerminated, assignedTo (Judge), suitNature, cause, parties[], attorneys[], firms[], documentCount, and nested documents[] (with direct pdfUrl when archived)
Pagination & ScaleAutomatic deep cursor pagination + multi-court fallback supporting 1,000+ court records per run
Deduplication100% deduplicated by docketId / clusterId (0 duplicates)
Export FormatsBulk export to JSON, CSV, Excel (XLSX), XML, HTML, RSS, or REST API

📋 Table of contents


🔎 Why scrape federal court records?

US federal litigation is one of the highest-value sources of public B2B and legal intelligence: who is suing whom, in which federal district, before which judge, under what nature-of-suit code (830 Patent, 840 Trademark, 190 Contract, 442 Civil Rights, 850 Securities), represented by which law firms, and with every complaint, motion, and order timestamped.

Yet collecting this data directly from PACER (Public Access to Court Electronic Records) is notoriously difficult:

  • PACER requires a login and bills $0.10 per page — including search result pages — quickly costing thousands of dollars for bulk research.
  • Each federal District, Bankruptcy, and Circuit court runs on its own separate CM/ECF subdomain (ecf.nysd.uscourts.gov, ecf.cand.uscourts.gov, etc.).
  • Clicking through dockets manually to copy party names, attorney rosters, nature-of-suit codes, and PDF links takes hours per company.

This federal court records scraper (federal-court-records-scraper) queries the unified public RECAP Archive and judicial opinion corpus maintained by the non-profit Free Law Project (CourtListener) and returns normalized, deduplicated rows across every US federal court in one place — with zero per-page PACER fees.

Common reasons teams use this federal court data extractor:

  • 🧑‍⚖️ Corporate litigation & docket monitoring — track every new federal lawsuit naming a target company, competitor, executive, product, or patent across all 94 federal districts.
  • 🛡️ KYC, AML & vendor due diligence — screen prospective borrowers, M&A targets, counterparties, and executives for federal civil, bankruptcy, securities, or regulatory litigation history.
  • 📊 Litigation finance & law-firm analytics — analyze filing velocity, judge assignment distributions (assignedTo), nature-of-suit mix (suitNature), case duration, and law-firm market share (firms[], attorneys[]).
  • 🧾 Patent, trademark & IP litigation tracking — monitor infringement complaints in major IP venues like E.D. Texas (txed), W.D. Texas (txwd), D. Delaware (deb / District), and N.D. California (cand).
  • 🏦 Bankruptcy & distressed-asset intelligence — track Chapter 11 and Chapter 7 filings across S.D. New York, D. Delaware (deb), S.D. Texas (txsb), and D. New Jersey (njb).
  • 🤖 Legal-AI, RAG & NLP training corpora — build structured retrieval datasets of federal dockets, complaints, and appellate/district court opinions (searchType: "o") with citation graphs (citeCount).

✨ What this federal court records scraper does

  • ✅ Works out of the box (no setup required) — includes a pre-configured token so you can press Start immediately, while also supporting your own personal token (courtListenerToken) for heavy enterprise crawls.
  • ✅ Six specialized federal record modes (searchType):
    • r — Cases with documents (RECAP dockets): full case metadata + parties + attorneys + law firms + nested documents[] array with PDF download URLs. (Default & richest option)
    • d — Dockets (case metadata only): lightweight case-level records for rapid high-volume sweeps.
    • o — Opinions / case law: published and unpublished judicial opinions with citation, neutralCite, lexisCite, citeCount, judge, and status.
    • rd — Filing documents: individual complaints, motions, briefs, and orders matching your keyword query.
    • p — Judges: federal judicial biographies, appointing presidents, and court positions.
    • oa — Oral argument audio: appellate oral argument recordings and metadata.
  • ✅ Unlocked 1,000+ cursor pagination — follows deep cursor pagination page after page (20 dockets per page) up to your maxItems target, with automatic deduplication by docketId and multi-court fallback expansion when needed.
  • ✅ Point-and-click Court & Date filtering — filter by 50+ federal courts in the dropdown (or search All courts nationwide), narrow by dateFiledAfter and dateFiledBefore (YYYY-MM-DD), and sort by newest filed, oldest filed, best keyword match, or argument date.
  • ✅ Direct PDF links for archived filings — every entry in documents[] includes isAvailable and a direct pdfUrl (https://storage.courtlistener.com/...) whenever the filing PDF is in the public RECAP archive.

1. Law Firm Business Development & Competitive Intelligence

AmLaw 200 and boutique litigation firms monitor daily new complaints (order: "dateFiled desc") in key commercial venues (nysd, cand, cacd, ilnd, txsd, flsd) to spot newly sued corporate defendants before they retain defense counsel, or to benchmark which competing firms (firms[]) represent major tech, pharma, and financial clients.

2. M&A Due Diligence, KYC & Credit Risk Underwriting

Private equity funds, commercial lenders, and compliance analysts batch-screen company and subsidiary names via the Apify API to surface undisclosed federal contract disputes, employment class actions, securities suits (850 Securities/Commodities), or bankruptcy proceedings.

3. Litigation Finance & Portfolio Valuation

Litigation funders analyze historical docket cohorts by courtId, assignedTo (judge), and suitNature to model time-to-termination (dateFiled → dateTerminated) and motion practice intensity (documentCount).

4. LegalTech & AI Retrieval-Augmented Generation (RAG)

Legal-AI engineers ingest searchType: "o" (Opinions) and searchType: "r" (RECAP dockets + PDF URLs) into vector databases (Pinecone, Weaviate, Qdrant, pgvector) with rich metadata filters (courtId, dateFiled, citeCount, suitNature).


🚀 How to use it (step by step)

  1. Open the Federal Court Records Scraper in the Apify Console and click Try for free.
  2. Choose What to collect (searchType) — keep the default Cases with documents (dockets + filings) ("r") for the richest docket + filing output, or select Opinions / case law ("o").
  3. Enter Search keywords (query) — type a company name (e.g. "Apple", "OpenAI", "Pfizer"), party name, attorney name, statute ("35:271"), or legal phrase.
  4. (Optional) Select a Court from the dropdown (e.g. cand, nysd, scotus, or keep All courts nationwide) and set Filed on or after / Filed on or before (YYYY-MM-DD).
  5. Set Maximum records (maxItems) — e.g. 100 for a quick run, or 1,000+ for a deep extraction.
  6. Click Save & Start, then export your dataset in JSON, CSV, Excel, XML, or HTML, or fetch it via the Apify REST API.

📥 Input parameters

All input fields are optional — running with default prefill searches for "Apple" across all federal courts and returns 100 dockets in ~15 seconds.

FieldTypeDefaultDescription
searchTypestring"r"Record type to collect: "r" (Cases with documents / RECAP dockets), "d" (Dockets metadata only), "o" (Opinions / case law), "rd" (Filing documents), "p" (Judges), "oa" (Oral argument audio).
querystring"" (prefill "Apple")Search keywords: party/company name, case title, attorney, law firm, docket number, citation or topic. Leave empty to browse the newest filings across courts.
courtstring"" (All courts)Federal court filter: "" (All courts nationwide), "scotus", Circuit Courts ("ca1"–"ca11", "cadc", "cafc"), District Courts ("nysd", "cand", "cacd", "txed", "txsd", "ilnd", "flsd", "dcd", "njd", "mad", "paed"…), or Bankruptcy Courts ("deb", "nysb", "txsb", "cacb"…).
dateFiledAfterstring""Only return records filed on or after this date (YYYY-MM-DD, e.g. "2025-01-01").
dateFiledBeforestring""Only return records filed on or before this date (YYYY-MM-DD, e.g. "2026-12-31").
orderstring"dateFiled desc"Sort order: "dateFiled desc" (Newest filed first), "dateFiled asc" (Oldest filed first), "score desc" (Best keyword match), "dateArgued desc" (Recently argued first).
maxItemsinteger0 (prefill 100)Maximum records to collect (0 = unlimited when filters are provided; 100 sample on unfiltered empty runs). Supports maxRecords / maxResults aliases.
courtListenerTokenstring (secret)BundledOptional. A shared token is bundled so the Actor works out of the box. For very large or frequent runs, paste your own free token from courtlistener.com (Profile → API) to use your personal rate limit.
startUrlsarray[]Optional advanced mode: paste CourtListener search URLs (https://www.courtlistener.com/?q=...) to run those exact queries.
proxyConfigurationobjectApify ProxyProxy configuration (default Apify datacenter proxy works reliably).
maxConcurrencyinteger1Parallel request concurrency (1–5, default 1 for smooth rate-limit compliance).

Input examples

1) Track federal lawsuits naming a company (newest first)
{
"searchType": "r",
"query": "Apple",
"order": "dateFiled desc",
"maxItems": 200
}
2) 1,000+ dockets in S.D. New York within a date window
{
"searchType": "r",
"court": "nysd",
"dateFiledAfter": "2026-01-01",
"order": "dateFiled desc",
"maxItems": 1000
}
{
"searchType": "o",
"query": "artificial intelligence copyright fair use",
"order": "score desc",
"maxItems": 250
}
4) Patent infringement suits in E.D. Texas (txed)
{
"searchType": "r",
"query": "patent infringement",
"court": "txed",
"order": "dateFiled desc",
"maxItems": 500
}

📤 Output schema & sample record

Each docket, opinion, or judge record is stored as a structured JSON object in the Apify Dataset. Here is a real record from a live searchType: "r" run:

{
"recordType": "r",
"caseName": "COTTON-PATTERSON v. APPLE, INC.",
"court": "District Court, N.D. California",
"courtId": "cand",
"courtCitation": "N.D. Cal.",
"docketNumber": "3:26-cv-12474",
"docketId": 75016110,
"pacerCaseId": "482000",
"dateFiled": "2026-10-23",
"dateTerminated": null,
"dateArgued": null,
"assignedTo": "Edward M. Chen",
"referredTo": null,
"suitNature": "830 Patent",
"cause": "35:271 Patent Infringement",
"jurisdictionType": "Federal Question",
"juryDemand": "Plaintiff",
"parties": [
"COTTON-PATTERSON",
"APPLE, INC."
],
"attorneys": [
"John Doe"
],
"firms": [],
"documentCount": 2,
"documents": [
{
"documentNumber": 2,
"attachmentNumber": null,
"shortDescription": "Complaint",
"description": "Complaint for Patent Infringement",
"documentType": "PACER Document",
"pageCount": 18,
"isAvailable": true,
"pacerDocId": "035027841370",
"entryNumber": 2,
"entryDateFiled": "2026-10-23",
"pdfUrl": "https://storage.courtlistener.com/recap/gov.uscourts.cand.482000/gov.uscourts.cand.482000.2.0.pdf",
"url": "https://www.courtlistener.com/docket/75016110/2/cotton-patterson-v-apple-inc/"
}
],
"courtListenerUrl": "https://www.courtlistener.com/docket/75016110/cotton-patterson-v-apple-inc/",
"scrapedAt": "2026-11-10T02:35:00.000Z"
}

Output field reference

Coverage key: 🟢 High (~92–100% of records) · 🟡 Conditional (populated when the court docket or record type provides it)

⚖️ Case & Docket Identity
FieldTypeCoverageDescription
recordTypestring🟢 HighSearch mode that produced the record ("r", "d", "o", "rd", "p", "oa").
caseNamestring🟢 HighOfficial case caption (e.g. "COTTON-PATTERSON v. APPLE, INC.").
courtstring🟢 HighFull court name ("District Court, N.D. California").
courtIdstring🟢 HighStandardized court identifier ("cand", "nysd", "scotus", "ca9").
courtCitationstring🟢 HighBluebook-style court abbreviation ("N.D. Cal.", "S.D.N.Y.", "D.C. Cir.").
docketNumberstring🟢 HighOfficial court docket number ("3:26-cv-12474").
docketIdinteger🟢 HighUnique archive docket ID (used for 100% deduplication).
pacerCaseIdstring🟢 HighUnderlying PACER internal case ID.
📅 Dates, Judges & Nature of Suit
FieldTypeCoverageDescription
dateFiledstring🟢 HighCase filing date (YYYY-MM-DD).
dateTerminatedstring🟡 ConditionalCase termination/closing date (YYYY-MM-DD) once closed.
dateArguedstring🟡 ConditionalOral argument date (primarily appellate records).
assignedTostring🟡 ConditionalPresiding District or Circuit Judge (~65% of district dockets).
referredTostring🟡 ConditionalReferred Magistrate Judge when applicable.
suitNaturestring🟡 ConditionalFederal Nature of Suit (NOS) code & description (e.g. "830 Patent", "190 Contract").
causestring🟡 ConditionalStatutory cause of action (e.g. "35:271 Patent Infringement", "28:1332 Diversity").
jurisdictionTypestring🟡 ConditionalFederal jurisdiction basis ("Federal Question", "Diversity", "U.S. Government Defendant").
juryDemandstring🟡 ConditionalJury demand indicator ("Plaintiff", "Defendant", "Both", "None").
👥 Parties, Attorneys & Law Firms
FieldTypeCoverageDescription
partiesarray<string>🟢 HighList of plaintiff, defendant, and intervenor party names on the docket.
attorneysarray<string>🟡 ConditionalList of counsel of record names when captured on the docket.
firmsarray<string>🟡 ConditionalList of law firms appearing on the docket.
FieldTypeCoverageDescription
documentCountinteger🟢 HighNumber of filing documents returned with this docket (~92% of "r" cases have ≥1 document).
documentsarray<object>🟢 HighArray of filing objects containing documentNumber, attachmentNumber, shortDescription, description, documentType, pageCount, isAvailable, pacerDocId, entryNumber, entryDateFiled, direct pdfUrl, and url.
courtListenerUrlstring🟢 HighDirect URL to view the full docket or opinion online.
scrapedAtstring🟢 HighISO-8601 UTC timestamp of extraction.
📜 Opinion-Specific (searchType: "o") & Judge-Specific (searchType: "p") Fields
FieldTypeCoverageDescription
caseNameFull / judgestring🟡 ConditionalFull case title and authoring judge on opinion records (searchType: "o").
citation / neutralCite / lexisCitearray | string🟡 ConditionalReporter citations (e.g. Federal Reporter, US Reports, Lexis) on opinions.
citeCount / status / clusterId / posturemixed🟡 ConditionalCitation count (how many later opinions cite this decision), precedential status, cluster ID, and procedural posture.
name / dateOfBirth / positionsmixed🟡 ConditionalJudge name, birth date, and judicial appointment history when searchType: "p".

🔁 Pagination & 1,000+ scale

The federal court records scraper uses deep cursor pagination (20 records per page) to walk through large result sets seamlessly:

  1. Every page response is deduplicated in memory by docketId / clusterId / pacerCaseId so overlapping search updates never produce duplicate rows (0 duplicates).
  2. Cursor URLs preserve their exact pagination state across requests until savedCount reaches your maxItems (or maxRecords / maxResults) target.
  3. Multi-court fallback for 1,000+ runs: If you request 1,000+ records without locking startUrls and a narrow court filter exhausts its available matches early, the crawler automatically continues across major federal district courts (cand, nysd, cacd, txsd, ilnd, flsd, paed, njd, mad, dcd, txed, nyed) so bulk legal harvests reliably reach full scale.

💻 API usage examples

Python (apify-client)

from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("haketa/federal-court-records-scraper").call(run_input={
"searchType": "r",
"query": "Apple",
"court": "cand",
"order": "dateFiled desc",
"maxItems": 200,
})
for rec in client.dataset(run["defaultDatasetId"]).iterate_items():
print(f"{rec['dateFiled']} | {rec['docketNumber']} | {rec['caseName']} ({rec['courtCitation']}) | Docs: {rec['documentCount']}")

Node.js (apify-client)

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('haketa/federal-court-records-scraper').call({
searchType: 'r',
query: 'patent infringement',
court: 'txed',
maxItems: 500,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Collected ${items.length} E.D. Texas patent dockets`);

cURL

curl -X POST "https://api.apify.com/v2/acts/haketa~federal-court-records-scraper/runs?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"searchType":"r","query":"Apple","maxItems":100}'

💡 Best practices & pro tips

  • Run out of the box, add a personal token for 10,000+ harvests: The bundled token handles standard runs (100–1,000+ records) with zero configuration. If you run continuous high-volume schedules, paste your own free CourtListener API token into courtListenerToken so your jobs use your dedicated rate limit.
  • Combine court + dateFiledAfter for daily litigation alerts: Schedule the Actor daily with order: "dateFiled desc" and dateFiledAfter set to the current month to feed new lawsuits straight into Slack, Microsoft Teams, Google Sheets, or your firm's intake CRM.
  • Use searchType: "r" for filings + PDFs, or "d" for speed: Mode "r" includes the nested documents[] array and pdfUrl links; mode "d" returns case-level docket headers when you only need party and judge metadata.
  • Keep maxConcurrency: 1 or 2: Low concurrency avoids HTTP 429 rate-limit throttling and keeps multi-page cursor pagination fast and predictable.

❓ Frequently asked questions

Do I need a PACER account or credit card? No. This Actor never connects to billable PACER endpoints and never incurs $0.10/page PACER charges. It extracts public federal court dockets, RECAP filings, and judicial opinions from the Free Law Project's public archive.

Do I need to configure an API token before running? No — a shared token is bundled by default so the Actor works immediately on your first click. You can optionally paste your own free token in courtListenerToken if you plan to run heavy bulk jobs.

How many federal court records can I extract per run? You can extract anywhere from a quick 100-record sample (finishes in ~12–20 seconds) to 1,000–10,000+ deduplicated records in a single run by setting maxItems: 1000 (or maxItems: 0 with filters).

Why is pdfUrl null on some docket entries? In the crowd-sourced RECAP Archive, docket metadata and entry descriptions exist for millions of filings, while a downloadable pdfUrl is populated whenever that specific document PDF has been archived (isAvailable: true).

Can I search Bankruptcy Courts and Circuit Courts of Appeals? Yes. The court dropdown includes the US Supreme Court (scotus), all 13 Circuit Courts (ca1–ca11, cadc, cafc), major Bankruptcy Courts (deb, txsb, nyeb, cacb, njb), and top Federal District Courts — or leave court empty to search all US federal courts nationwide.


Building a legal, compliance, KYB/KYC, or public-records data pipeline? Pair this federal court records scraper with:


📋 Changelog

  • v1.2 (2026-11-10) — Unlocked 1,000+ deep pagination & deduplication: added in-memory deduplication (seenKeys) across cursor pages so multi-page runs emit 0 duplicates, preserved full cursor URLs as unique request keys, added automatic multi-court fallback expansion when 1,000+ records are requested, supported maxRecords / maxResults aliases, and replaced Actor.fail() on empty runs with clean Actor.exit() status reporting.
  • v1.1 (2026-11-02) — Out-of-the-box token support & courtCitation field: bundled default token so runs work immediately without manual setup, added courtCitation (Bluebook court abbreviation, e.g. N.D. Cal.) to every record, and verified 100% core field fill rate.
  • v1.0 (2026-07-02) — Initial release: US federal court records scraper covering RECAP dockets, filings (documents[] with pdfUrl), judicial opinions, judges, and oral arguments across all federal courts.