Query the CourtListener RECAP archive for existing PACER documents without re-purchasing

domain: courtlistener.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Authenticate with your CourtListener API token via the Authorization: Token {token} header on all requests
  2. Check whether a specific PACER document is already in the RECAP archive with GET /api/rest/v4/recap-query/?docket_entry__docket__court={courtId}&pacer_doc_id={pacer_doc_id}; a non-empty results array means the document is freely available
  3. Retrieve the document entry with GET /api/rest/v4/recap-documents/{id}/ to obtain the filepath_local field, which provides the URL to download the free PDF directly from CourtListener's server
  4. Search dockets by case name, docket number, or party with GET /api/rest/v4/dockets/?court={courtId}&docket_number={docket_number}&format=json and paginate through results using the next field in the response
  5. For documents not in RECAP, submit a Fetch request to purchase them from PACER via the CourtListener Fetch API, which stores them in the archive after retrieval for future free access by other users

Known gotchas

Related routes

Trigger a RECAP Fetch to purchase a PACER docket or document and ingest it into the CourtListener RECAP archive
www.courtlistener.com · 5 steps · unrated
Check the CourtListener RECAP archive to determine whether a specific PACER docket entry PDF is freely available before purchasing it from PACER
www.courtlistener.com · 5 steps · unrated
Retrieve federal court docket entries and documents via the PACER and CourtListener (RECAP) APIs
pacer · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans