Skip to content
OSINTtools.io

CourtListener RECAP Archive API

Free Law Project's searchable archive of millions of PACER dockets and documents shared by RECAP extension users.

Base URL
https://www.courtlistener.com/api/rest/v4
Sign-in
API key
Format
REST
Endpoints
7

Compiled by OSINTtools.io editors from courtlistener.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

CourtListener's REST API (v4) exposes the Free Law Project's collections: case law, the RECAP archive of federal court dockets, filings, parties and attorneys from PACER, judges, oral arguments and more. This reference covers the search endpoint and the RECAP docket endpoints.

An investigator uses it to find federal cases and filings by name, to read a docket's entries, and to list the parties and attorneys on a case. Dockets do not include entries, parties or attorneys; those come from their own endpoints, filtered by docket ID. Send an OPTIONS request to an endpoint to see its fields and filters.

Send the token in the Authorization header as Token <token>. JSON is the default; results are paged with a cursor in the next URL. Sub-pages for other areas (citations, judges, alerts, financial disclosures) are in the official docs.

Quick start

  1. Get a key

    Create an account with CourtListener RECAP Archive and copy your api key. Where to get it

  2. Make your first request

    Search opinions, federal dockets, filings, judges or oral arguments.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://www.courtlistener.com/api/rest/v4/search/' \
      -H 'Authorization: Token YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "count": 1,
      "next": null,
      "previous": null,
      "results": [
        {
          "caseName": "Example v. Example Corp",
          "court_id": "dcd",
          "dateFiled": "2020-01-10",
          "docketNumber": "1:20-cv-00001",
          "docket_id": 1000001,
          "absolute_url": "/docket/1000001/example-v-example-corp/"
        }
      ]
    }

Authentication

Send your API key in the Authorization header of every request, after Token.

The token is on your CourtListener profile.

Get a key from CourtListener RECAP Archive

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Authenticated users: 5 requests per minute, 50 per hour and 125 per day, rolling windows; the most restrictive applies. Membership or partnership can expand access.

Errors

StatusMeaning
401Authentication required or missing
405Method not allowed (for example on api-usage)

PACER data

  • Passive: the target is not contacted

Docket metadata only. Entries, parties and attorneys are on their own endpoints, filtered by docket.

Path parameters

idintegerrequired

CourtListener docket ID

Example: 1000001
Response fields · 8Show

idinteger

Docket ID

court_idstring

Court identifier

case_namestring

Case name

docket_numberstring

Docket number

pacer_case_idstring

PACER case ID

date_filedstring

Date filed

date_last_filingstring

Date of the last filing

blockedboolean

Whether the docket is blocked from search engines

curl 'https://www.courtlistener.com/api/rest/v4/dockets/1000001/' \
  -H 'Authorization: Token YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "id": 1000001,
  "court_id": "dcd",
  "case_name": "Example v. Example Corp",
  "docket_number": "1:20-cv-00001",
  "pacer_case_id": "100001",
  "date_filed": "2020-01-10",
  "date_last_filing": "2021-05-15",
  "blocked": false
}
  • Passive: the target is not contacted

The description field describes the whole entry and its joined documents.

Query parameters

docketintegerrequired

Docket ID to list entries for

Example: 1000001
Response fields · 2Show

nextstring

URL of the next page, or null

descriptionstring

Description of the entry

curl 'https://www.courtlistener.com/api/rest/v4/docket-entries/?docket=1000001' \
  -H 'Authorization: Token YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "next": null,
  "results": [
    {
      "description": "COMPLAINT against Example Corp."
    }
  ]
}
  • Passive: the target is not contacted

plain_text holds extracted text; check ocr_status for whether OCR was used. Omit plain_text with field selection to reduce the payload. filepath_local is set when is_available is true.

Response fields · 3Show

descriptionstring

Short description of the individual document

plain_textstring

Extracted text

filepath_localstring

Path to the file when is_available is true

curl 'https://www.courtlistener.com/api/rest/v4/recap-documents/' \
  -H 'Authorization: Token YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "results": [
    {
      "description": "Complaint",
      "plain_text": "Example extracted text",
      "filepath_local": "recap/gov.example.1000001.1.0.pdf"
    }
  ]
}
  • Passive: the target is not contacted

Set filter_nested_results=True to apply filters to the nested attorney data too.

Query parameters

docketintegerrequired

Docket ID

Example: 1000001
filter_nested_resultsboolean

Apply filters to nested attorney data

Example: True
Response fields · 4Show

idinteger

Party ID

namestring

Party name

attorney_idinteger

Attorney ID

namestring

Role, such as Plaintiff

curl 'https://www.courtlistener.com/api/rest/v4/parties/?docket=1000001' \
  -H 'Authorization: Token YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "next": null,
  "previous": null,
  "results": [
    {
      "id": 42,
      "name": "Jane Example",
      "attorneys": [
        {
          "attorney_id": 1,
          "docket_id": 1000001,
          "role": 10
        }
      ],
      "party_types": [
        {
          "docket_id": 1000001,
          "name": "Plaintiff",
          "date_terminated": null
        }
      ]
    }
  ]
}
  • Passive: the target is not contacted

Set filter_nested_results=True to apply filters to the nested parties_represented data.

Query parameters

docketintegerrequired

Docket ID

Example: 1000001
filter_nested_resultsboolean

Apply filters to nested parties_represented data

Example: True
Response fields · 5Show

idinteger

Attorney ID

namestring

Attorney name

phonestring

Phone number

emailstring

Email address

roleinteger

Role code

curl 'https://www.courtlistener.com/api/rest/v4/attorneys/?docket=1000001' \
  -H 'Authorization: Token YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "results": [
    {
      "id": 9000001,
      "name": "John Example",
      "phone": "(555) 010-0100",
      "email": "john@example.com",
      "parties_represented": [
        {
          "role": 10,
          "docket": "https://www.courtlistener.com/api/rest/v4/dockets/1000001/",
          "date_action": null
        }
      ]
    }
  ]
}

Account

  • Passive: the target is not contacted

Needs authentication; takes no parameters.

Response fields · 7Show

scopestring

user, citations, fetch or api_usage

ratestring

The limit, such as 125/day

usedinteger

Consumed in the window

remaininginteger

Limit minus used

reset_atstring

When capacity next frees up, or null

historical_usageobject

Daily request counts for the last 15 days, plus total

membershipobject

Membership level and is_active, or null

curl 'https://www.courtlistener.com/api/rest/v4/api-usage/' \
  -H 'Authorization: Token YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "current_usage": [
    {
      "scope": "user",
      "rate": "125/day",
      "used": 63,
      "limit": 125,
      "remaining": 62,
      "window_seconds": 86400,
      "reset_at": "2026-08-07T15:03:52+00:00",
      "blocked": false
    }
  ],
  "historical_usage": {
    "2026-08-06": 22,
    "2026-08-07": 41,
    "total": 63
  },
  "membership": null
}