search case law and dockets via the courtlistener / recap api

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

Steps

  1. Register for a free CourtListener account at free.law to obtain an API token; include it as Authorization: Token <token> on all requests.
  2. Search opinions via GET /api/rest/v4/search/ with q (full-text query), type=o (opinions), and optional filters such as court, filed_after, filed_before.
  3. Search PACER dockets via type=r (RECAP) in the same search endpoint; filter by docket_number or party name.
  4. Fetch a specific docket with all its entries via GET /api/rest/v4/dockets/{id}/ and follow the docket_entries array to retrieve individual filing documents.
  5. Download opinion or document text via the download_url or plain_text fields; full PDFs may redirect to PACER and require a PACER account with prepaid balance.

Known gotchas

Related routes

Retrieve case law and legal citations via the CourtListener and Caselaw Access Project APIs
courtlistener.com · 6 steps · unrated
Retrieve a federal docket's entries and RECAP documents via CourtListener's v4 REST API using cursor-based pagination
courtlistener.com · 6 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