# CourtListener RECAP Archive API reference

> 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…

Source: https://osinttools.io/apis/courtlistener-recap-archive/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/courtlistener-recap-archive/

- Base URL: https://www.courtlistener.com/api/rest/v4
- Authentication: API key in the `Authorization` header, after `Token`. Get a key: https://www.courtlistener.com/register/ The token is on your CourtListener profile.
- Rate limits: 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.
- Vendor docs: https://www.courtlistener.com/help/api/rest/

## Overview

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.

## Errors

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

## Search

### Search opinions, federal dockets, filings, judges or oral arguments.

`GET /search/`

- Takes: Name
- Footprint: passive (the target is not contacted)

Uses the same parameters as the website. type=r returns federal cases with up to three nested documents; rd returns PACER filings; d returns PACER dockets; o (default) returns opinions; p judges; oa oral arguments. Page with the cursor in next.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `q` | query | string | no | Search query; supports operators such as caseName:foo Example: caseName:Example |
| `type` | query | string | no | What to search Example: r One of: o, r, rd, d, p, oa |
| `order_by` | query | string | no | Sort order, as set by the website's ordering dropdown Example: score desc |
| `highlight` | query | string | no | on enables highlighting Example: on |
| `cursor` | query | string | no | Pagination token from the next URL Example: CURSOR_FROM_NEXT |

Response fields:

- `count` (integer): Total matching results
- `next` (string): URL of the next page, or null
- `previous` (string): URL of the previous page, or null
- `results[].caseName` (string): Case name
- `results[].court_id` (string): Court identifier
- `results[].dateFiled` (string): Filing date
- `results[].docketNumber` (string): Docket number
- `results[].docket_id` (integer): Docket ID
- `results[].absolute_url` (string): Path of the item on the website

```bash
curl 'https://www.courtlistener.com/api/rest/v4/search/' \
  -H 'Authorization: Token YOUR_API_KEY'
```

Example response (200):

```json
{
  "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/"
    }
  ]
}
```

## PACER data

### One federal docket by its CourtListener ID.

`GET /dockets/{id}/`

- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | integer | yes | CourtListener docket ID Example: 1000001 |

Response fields:

- `id` (integer): Docket ID
- `court_id` (string): Court identifier
- `case_name` (string): Case name
- `docket_number` (string): Docket number
- `pacer_case_id` (string): PACER case ID
- `date_filed` (string): Date filed
- `date_last_filing` (string): Date of the last filing
- `blocked` (boolean): Whether the docket is blocked from search engines

```bash
curl 'https://www.courtlistener.com/api/rest/v4/dockets/1000001/' \
  -H 'Authorization: Token YOUR_API_KEY'
```

Example response (200):

```json
{
  "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
}
```

### Docket entries of a case, filtered by docket ID.

`GET /docket-entries/`

- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `docket` | query | integer | yes | Docket ID to list entries for Example: 1000001 |

Response fields:

- `next` (string): URL of the next page, or null
- `results[].description` (string): Description of the entry

```bash
curl 'https://www.courtlistener.com/api/rest/v4/docket-entries/?docket=1000001' \
  -H 'Authorization: Token YOUR_API_KEY'
```

Example response (200):

```json
{
  "next": null,
  "results": [
    {
      "description": "COMPLAINT against Example Corp."
    }
  ]
}
```

### RECAP filing documents, with extracted text where available.

`GET /recap-documents/`

- Footprint: 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:

- `results[].description` (string): Short description of the individual document
- `results[].plain_text` (string): Extracted text
- `results[].filepath_local` (string): Path to the file when is_available is true

```bash
curl 'https://www.courtlistener.com/api/rest/v4/recap-documents/' \
  -H 'Authorization: Token YOUR_API_KEY'
```

Example response (200):

```json
{
  "results": [
    {
      "description": "Complaint",
      "plain_text": "Example extracted text",
      "filepath_local": "recap/gov.example.1000001.1.0.pdf"
    }
  ]
}
```

### Parties on a docket, with their attorneys and party types.

`GET /parties/`

- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `docket` | query | integer | yes | Docket ID Example: 1000001 |
| `filter_nested_results` | query | boolean | no | Apply filters to nested attorney data Example: True |

Response fields:

- `results[].id` (integer): Party ID
- `results[].name` (string): Party name
- `results[].attorneys[].attorney_id` (integer): Attorney ID
- `results[].party_types[].name` (string): Role, such as Plaintiff

```bash
curl 'https://www.courtlistener.com/api/rest/v4/parties/?docket=1000001' \
  -H 'Authorization: Token YOUR_API_KEY'
```

Example response (200):

```json
{
  "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
        }
      ]
    }
  ]
}
```

### Attorneys on a docket, with contact details and the parties they represent.

`GET /attorneys/`

- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `docket` | query | integer | yes | Docket ID Example: 1000001 |
| `filter_nested_results` | query | boolean | no | Apply filters to nested parties_represented data Example: True |

Response fields:

- `results[].id` (integer): Attorney ID
- `results[].name` (string): Attorney name
- `results[].phone` (string): Phone number
- `results[].email` (string): Email address
- `results[].parties_represented[].role` (integer): Role code

```bash
curl 'https://www.courtlistener.com/api/rest/v4/attorneys/?docket=1000001' \
  -H 'Authorization: Token YOUR_API_KEY'
```

Example response (200):

```json
{
  "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

### Your rate-limit consumption and 15-day request history.

`GET /api-usage/`

- Footprint: passive (the target is not contacted)

Needs authentication; takes no parameters.

Response fields:

- `current_usage[].scope` (string): user, citations, fetch or api_usage
- `current_usage[].rate` (string): The limit, such as 125/day
- `current_usage[].used` (integer): Consumed in the window
- `current_usage[].remaining` (integer): Limit minus used
- `current_usage[].reset_at` (string): When capacity next frees up, or null
- `historical_usage` (object): Daily request counts for the last 15 days, plus total
- `membership` (object): Membership level and is_active, or null

```bash
curl 'https://www.courtlistener.com/api/rest/v4/api-usage/' \
  -H 'Authorization: Token YOUR_API_KEY'
```

Example response (200):

```json
{
  "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
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
