Best APIs for US Federal Court Records Compared
Compare PACER, CourtListener, and commercial federal court record APIs on coverage, licensing, rate limits, and fitness for regulated AI and RAG pipelines.

For a governed legal RAG index drawing on US federal court records, the stack reduces to one authoritative source and two shapes of distributor on top: PACER itself, the nonprofit re-publisher CourtListener with its RECAP archive, and the commercial legal data vendors. Which API fits is decided by licensing and provenance terms, not coverage.
The comparison below treats PACER, CourtListener/RECAP, LexisNexis CourtLink, Thomson Reuters/Westlaw, Bloomberg Law, UniCourt, Trellis, and Docket Alarm on the axes that matter inside a regulated private AI deployment: freshness, redaction obligations, contractual restrictions on model training, bulk-access mechanics, and the audit artifacts an evidence trail actually requires.
PACER Is the Authoritative Feed, With Three Fee Problems
PACER is the Judicial Conference service that publishes docket entries, filings, opinions, and search results from the US federal courts. It remains the canonical source: anything a commercial provider shows traces back to a PACER filing event. Its two machine interfaces that matter for ingestion are the PACER Case Locator API (PCL), which returns case metadata across courts, and the per-court CM/ECF endpoints that return docket sheets and document PDFs.
Three fee and access facts constrain how it gets used in a RAG pipeline. First, PACER charges $0.10 per page for documents, docket sheets, and search results, capping single documents at $3.00 but leaving search results and reports uncapped. Second, the Judicial Conference's Executive Committee has approved raising that per-page fee to 12 cents and the quarterly exemption threshold from $30 to $40, effective January 1, 2027. Third, PACER's fees have long outpaced the cost-recovery standard set by the E-Government Act of 2002, which requires the judiciary to collect only enough revenue to cover database maintenance.
For a large RAG corpus, per-page metered pricing is the binding constraint, not the API itself. Ingesting one judicial district's civil docket in a sweep runs into tens of thousands of dollars before any model training cost is counted.
CourtListener and RECAP Lift the Cost Floor, Not the Coverage Ceiling
CourtListener is a REST API operated by Free Law Project, the 501(c)(3) that runs the RECAP extension and archive. Its corpus pairs more than 10 million judicial opinions dating back to the 1600s with the RECAP archive of PACER documents contributed by extension users each time they purchase a filing. In practice, RECAP covers a non-trivial but incomplete slice of the PACER corpus; dockets with heavy litigator traffic (large class actions, patent, antitrust) are far better represented than rarely touched district filings.
The API itself is cheap and well-documented, but the throttle floor was tightened in May 2026. Default authenticated accounts receive 5 requests per minute, 50 per hour, and 125 per day; any serious ingestion needs a membership or a commercial agreement. The REST schema includes dockets, opinions, parties, judges, citations, and oral-argument audio, and the Citation Lookup endpoint resolves string citations against the corpus with its own 60-valid-citations-per-minute throttle.
For a legal RAG index, the honest framing is that CourtListener plus RECAP is a cost-floor tool, not a coverage-ceiling tool. It eliminates PACER metering for whatever is already in the archive. It does not substitute for PACER on new, obscure, or niche filings.

Commercial Providers Sell the Layer Above the Record
LexisNexis CourtLink, Thomson Reuters/Westlaw Court Express, Bloomberg Law Dockets, UniCourt, Trellis, and Docket Alarm all resell PACER docket data with additional work on top: normalization across courts, docket entry parsing, party and judge entity resolution, alerts, and (in the CourtLink, Westlaw, and Bloomberg cases) proprietary editorial metadata such as headnotes and KeyCite/BCite citation signals. UniCourt, Trellis, and Docket Alarm emphasize state-court coverage as a differentiator, though all three also carry the federal record set.
Pricing moves to seat-based or enterprise contracts, and headline rates are seldom public; expect per-seat annual commitments from the incumbent legal publishers and consumption-tier pricing from the newer entrants. What matters for a private AI deployment is less the price than what the contract permits downstream.
A good comparison starter uses the same framing as the public data normalization work on the SEC, Census, NPPES, FDIC, and IRS feeds: treat the API surface as table stakes and read the licensing attachment carefully before any ingestion runs.
Licensing Is Where the API Choice Is Actually Made
The clause that decides whether a given feed can sit behind a legal RAG index is almost never on the API documentation page. It is in the terms of use attached to the contract.
- PACER: the content is US government work and not subject to copyright, but PACER's own Policies and Procedures prohibit automated bulk collection that evades the fee schedule. A compliant ingestion must pay per page.
- CourtListener/RECAP: content is offered under permissive licensing with attribution; bulk data downloads are supported, and the API terms contemplate research and commercial use with the rate limits noted above.
- LexisNexis, Thomson Reuters, Bloomberg Law: standard subscriber terms restrict copying, systematic retrieval, use in competing products, and, in most current contracts, use of licensed content to train or fine-tune machine learning models. Some editorial overlays (headnotes, citator signals) are copyrighted and licensed separately.
- UniCourt, Trellis, Docket Alarm: terms vary, and AI-training clauses are frequently negotiated at the enterprise tier. Read them against the specific RAG use case rather than assuming parity with a hosted LLM provider's TOS.
Treat this as a procurement artifact, not a legal footnote. A dataset licensing record that captures permitted uses, excluded fields, retention limits, and derivative-work rules per source is what lets a platform team defend a RAG deployment later.
The Audit Artifacts a Regulated Deployment Actually Needs
Running federal court records through a private LLM is defensible only if the pipeline produces artifacts a reviewer can inspect without re-litigating the ingestion. At minimum, that is the per-document provenance chain (source API, request timestamp, PACER docket ID, RECAP document ID where applicable), the license identifier that authorized the retrieval, the redaction pass applied before indexing, and the policy decisions made at query time.
Federal filings routinely contain information covered by Federal Rule 5.2 privacy-redaction obligations: minors' names, financial account numbers, taxpayer identification numbers, and birth dates. Court-issued redactions are generally reliable on recent filings; older paper-scanned PDFs are not, which is why a PII classifier run during ingestion is a load-bearing step rather than a defensive flourish.
Policy enforcement at query time is the other half. A legal RAG index that returns a sealed docket excerpt or a non-redacted social security number to a user who should not see it fails the same control test whether the answer came from a model or a classic search tool. This is the same argument made for keeping access control out of the prompt: policy belongs in the retrieval and response layer, not the model instruction.
Matching the API to the Deployment Model
Three sensible stacks emerge once licensing and audit requirements are honest:
- PACER (direct) plus RECAP (cost reduction), with in-house normalization and classification, for teams that will own the parsing and redaction work and need the broadest possible docket coverage. Fee cost is the main risk.
- A single commercial provider as the primary feed, with PACER called only for missing documents, where the contract explicitly permits model training or retrieval-augmented generation on the licensed content. Vendor lock-in is the main risk.
- Commercial editorial content (headnotes, citator signals) licensed under tightly scoped terms for display only, paired with PACER/RECAP primary filings for retrieval. This is the stack most consistent with a governed private AI platform running in an on-prem or air-gapped environment, because the editorial layer stays outside the index.
The trade-off is explicit. Pulling primary records straight from PACER and RECAP costs money on the fee side and engineering time on the parsing and redaction side, and the commercial editorial overlays most useful to lawyers sit behind licenses that forbid putting them into a model at all. What that discipline buys is an evidence trail that survives scrutiny: a legal RAG index whose every answer traces to a docket entry, a license, and a redaction pass that a reviewer can see.
Nate Nead is the founder of Data.co. He has spent more than fifteen years building and running digital businesses, and has founded and grown more than a dozen brands. Data.co came out of a problem he kept running into: organizations want the leverage of AI, but the data that makes it useful is exactly the data they can least afford to lose control of. He writes here about where AI governance actually lives — in identities, policies and audit trails rather than in prompts — and about what it takes to run private models inside infrastructure a company controls.