Federal Court Records Scraper - PACER RECAP & Opinions
Pricing
from $1.80 / 1,000 results
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
Maintained by CommunityActor stats
0
Bookmarked
27
Total users
7
Monthly active users
17 days ago
Last modified
Categories
Features
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.
💡 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
| Feature | Details |
|---|---|
| Data Source | US Federal Court RECAP Archive (PACER dockets & filings), Judicial Opinions, Judges & Oral Arguments |
| Courts Covered | All 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 Extracted | caseName, 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 & Scale | Automatic deep cursor pagination + multi-court fallback supporting 1,000+ court records per run |
| Deduplication | 100% deduplicated by docketId / clusterId (0 duplicates) |
| Export Formats | Bulk export to JSON, CSV, Excel (XLSX), XML, HTML, RSS, or REST API |
📋 Table of contents
- Why scrape federal court records?
- What this federal court records scraper does
- Use cases & legal B2B intelligence
- How to use it (step by step)
- Input parameters
- Output schema & sample record
- Pagination & 1,000+ scale
- API usage examples
- Best practices & pro tips
- Frequently asked questions
- Related scrapers
- Changelog
🔎 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 + nesteddocuments[]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 withcitation,neutralCite,lexisCite,citeCount,judge, andstatus.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 yourmaxItemstarget, with automatic deduplication bydocketIdand 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
dateFiledAfteranddateFiledBefore(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[]includesisAvailableand a directpdfUrl(https://storage.courtlistener.com/...) whenever the filing PDF is in the public RECAP archive.
🎯 Use cases & legal B2B intelligence
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)
- Open the Federal Court Records Scraper in the Apify Console and click Try for free.
- 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"). - Enter Search keywords (
query) — type a company name (e.g."Apple","OpenAI","Pfizer"), party name, attorney name, statute ("35:271"), or legal phrase. - (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). - Set Maximum records (
maxItems) — e.g.100for a quick run, or1,000+for a deep extraction. - 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.
| Field | Type | Default | Description |
|---|---|---|---|
searchType | string | "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). |
query | string | "" (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. |
court | string | "" (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"…). |
dateFiledAfter | string | "" | Only return records filed on or after this date (YYYY-MM-DD, e.g. "2025-01-01"). |
dateFiledBefore | string | "" | Only return records filed on or before this date (YYYY-MM-DD, e.g. "2026-12-31"). |
order | string | "dateFiled desc" | Sort order: "dateFiled desc" (Newest filed first), "dateFiled asc" (Oldest filed first), "score desc" (Best keyword match), "dateArgued desc" (Recently argued first). |
maxItems | integer | 0 (prefill 100) | Maximum records to collect (0 = unlimited when filters are provided; 100 sample on unfiltered empty runs). Supports maxRecords / maxResults aliases. |
courtListenerToken | string (secret) | Bundled | Optional. 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. |
startUrls | array | [] | Optional advanced mode: paste CourtListener search URLs (https://www.courtlistener.com/?q=...) to run those exact queries. |
proxyConfiguration | object | Apify Proxy | Proxy configuration (default Apify datacenter proxy works reliably). |
maxConcurrency | integer | 1 | Parallel 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}
3) Federal court opinions / case law on artificial intelligence & copyright
{"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
| Field | Type | Coverage | Description |
|---|---|---|---|
recordType | string | 🟢 High | Search mode that produced the record ("r", "d", "o", "rd", "p", "oa"). |
caseName | string | 🟢 High | Official case caption (e.g. "COTTON-PATTERSON v. APPLE, INC."). |
court | string | 🟢 High | Full court name ("District Court, N.D. California"). |
courtId | string | 🟢 High | Standardized court identifier ("cand", "nysd", "scotus", "ca9"). |
courtCitation | string | 🟢 High | Bluebook-style court abbreviation ("N.D. Cal.", "S.D.N.Y.", "D.C. Cir."). |
docketNumber | string | 🟢 High | Official court docket number ("3:26-cv-12474"). |
docketId | integer | 🟢 High | Unique archive docket ID (used for 100% deduplication). |
pacerCaseId | string | 🟢 High | Underlying PACER internal case ID. |
📅 Dates, Judges & Nature of Suit
| Field | Type | Coverage | Description |
|---|---|---|---|
dateFiled | string | 🟢 High | Case filing date (YYYY-MM-DD). |
dateTerminated | string | 🟡 Conditional | Case termination/closing date (YYYY-MM-DD) once closed. |
dateArgued | string | 🟡 Conditional | Oral argument date (primarily appellate records). |
assignedTo | string | 🟡 Conditional | Presiding District or Circuit Judge (~65% of district dockets). |
referredTo | string | 🟡 Conditional | Referred Magistrate Judge when applicable. |
suitNature | string | 🟡 Conditional | Federal Nature of Suit (NOS) code & description (e.g. "830 Patent", "190 Contract"). |
cause | string | 🟡 Conditional | Statutory cause of action (e.g. "35:271 Patent Infringement", "28:1332 Diversity"). |
jurisdictionType | string | 🟡 Conditional | Federal jurisdiction basis ("Federal Question", "Diversity", "U.S. Government Defendant"). |
juryDemand | string | 🟡 Conditional | Jury demand indicator ("Plaintiff", "Defendant", "Both", "None"). |
👥 Parties, Attorneys & Law Firms
| Field | Type | Coverage | Description |
|---|---|---|---|
parties | array<string> | 🟢 High | List of plaintiff, defendant, and intervenor party names on the docket. |
attorneys | array<string> | 🟡 Conditional | List of counsel of record names when captured on the docket. |
firms | array<string> | 🟡 Conditional | List of law firms appearing on the docket. |
📄 Filed Documents (documents[]) & Links
| Field | Type | Coverage | Description |
|---|---|---|---|
documentCount | integer | 🟢 High | Number of filing documents returned with this docket (~92% of "r" cases have ≥1 document). |
documents | array<object> | 🟢 High | Array of filing objects containing documentNumber, attachmentNumber, shortDescription, description, documentType, pageCount, isAvailable, pacerDocId, entryNumber, entryDateFiled, direct pdfUrl, and url. |
courtListenerUrl | string | 🟢 High | Direct URL to view the full docket or opinion online. |
scrapedAt | string | 🟢 High | ISO-8601 UTC timestamp of extraction. |
📜 Opinion-Specific (searchType: "o") & Judge-Specific (searchType: "p") Fields
| Field | Type | Coverage | Description |
|---|---|---|---|
caseNameFull / judge | string | 🟡 Conditional | Full case title and authoring judge on opinion records (searchType: "o"). |
citation / neutralCite / lexisCite | array | string | 🟡 Conditional | Reporter citations (e.g. Federal Reporter, US Reports, Lexis) on opinions. |
citeCount / status / clusterId / posture | mixed | 🟡 Conditional | Citation count (how many later opinions cite this decision), precedential status, cluster ID, and procedural posture. |
name / dateOfBirth / positions | mixed | 🟡 Conditional | Judge 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:
- Every page response is deduplicated in memory by
docketId/clusterId/pacerCaseIdso overlapping search updates never produce duplicate rows (0 duplicates). - Cursor URLs preserve their exact pagination state across requests until
savedCountreaches yourmaxItems(ormaxRecords/maxResults) target. - Multi-court fallback for 1,000+ runs: If you request
1,000+records without lockingstartUrlsand 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 ApifyClientclient = 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
courtListenerTokenso your jobs use your dedicated rate limit. - Combine
court+dateFiledAfterfor daily litigation alerts: Schedule the Actor daily withorder: "dateFiled desc"anddateFiledAfterset 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 nesteddocuments[]array andpdfUrllinks; mode"d"returns case-level docket headers when you only need party and judge metadata. - Keep
maxConcurrency: 1or2: 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.
🔗 Related scrapers
Building a legal, compliance, KYB/KYC, or public-records data pipeline? Pair this federal court records scraper with:
- California DCA License Scraper — California Department of Consumer Affairs professional and business license lookup.
- Virginia DPOR License Scraper — Virginia occupational and contractor license verification.
- Colorado Professional License Scraper — Colorado DORA professional licensing records.
- Minnesota DLI License Scraper — Minnesota contractor and trade license database.
- Arizona ROC Contractor License Scraper — Arizona Registrar of Contractors license records.
- North Carolina General Contractor License Scraper — NC Licensing Board contractor records.
📋 Changelog
- v1.2 (2026-11-10) — Unlocked 1,000+ deep pagination & deduplication: added in-memory deduplication (
seenKeys) across cursor pages so multi-page runs emit0 duplicates, preserved full cursor URLs as unique request keys, added automatic multi-court fallback expansion when1,000+records are requested, supportedmaxRecords/maxResultsaliases, and replacedActor.fail()on empty runs with cleanActor.exit()status reporting. - v1.1 (2026-11-02) — Out-of-the-box token support &
courtCitationfield: bundled default token so runs work immediately without manual setup, addedcourtCitation(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[]withpdfUrl), judicial opinions, judges, and oral arguments across all federal courts.