> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# CourtListener

> Free Law Project's US legal database: case law opinions, PACER dockets and filings, judges and oral arguments, with full-text search and citation lookup.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/courtlistener.svg?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=df7d04b7eabc7af548946f4e8738ff12)

[Web Catalog · Government](https://docs.webrouter.net/data-apis.md?category=government)

Needs&#x20;

`COURTLISTENER_API_KEY`

Endpoints

9

Auth

Key in header

[Vendor docs](https://wiki.free.law/c/courtlistener/help/api/rest/v4/overview) · Serves `courtlistener.com`

## Setup

| Variable | | What it is |
| - | - | - |
| `COURTLISTENER_API_KEY` | required | A CourtListener API token (free account, shown on your profile's API page). Sent as 'Authorization: Token \<token>'. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Default throttle for authenticated users: 5 requests per minute, 50 per hour, 125 per day, rolling windows, all applied at once. Use fields/omit to keep payloads small.
* Filters are Django-style: field=value, field\_\_gte / \_\_lte / \_\_gt / \_\_lt / \_\_range, related fields joined with \_\_ (cluster\_\_docket\_\_court=scotus), and ! to negate (court\_\_jurisdiction!=F). An OPTIONS request on an endpoint lists its filters and ordering fields.
* A case's web URL carries the cluster id, not the opinion id; look a case up on clusters. Use cluster case names, not docket names.
* Docket numbers are not unique; always add a court filter.

## Endpoints

GET

Search case law, dockets, judges or oral arguments

Full-text search with highlighted snippets; type picks opinions, RECAP dockets/documents, judges or audio.

[Open](#courtlistener-search)

GET

List opinion clusters

Cases (opinion clusters) filtered by docket, court, date and other fields.

[Open](#courtlistener-clusters-list)

GET

Get an opinion cluster

One case: names, dates, citations, judges and links to its opinions.

[Open](#courtlistener-clusters-get)

GET

List opinions

Opinions filtered by cluster, court or docket fields.

[Open](#courtlistener-opinions-list)

GET

Get an opinion

One opinion's text (html\_with\_citations is the most reliable field), type, author and the opinions it cites.

[Open](#courtlistener-opinions-get)

GET

List dockets

Dockets filtered by court, docket number and other fields.

[Open](#courtlistener-dockets-list)

GET

Get a docket

One docket's case metadata.

[Open](#courtlistener-dockets-get)

GET

List courts

Court ids, names and jurisdictions, for the court filters.

[Open](#courtlistener-courts-list)

POST

Look up citations in text

Parses legal citations out of text (or one volume/reporter/page) and resolves them to clusters.

[Open](#courtlistener-citations-lookup)

### Search case law, dockets, judges or oral arguments

GET

`/search/`

`courtlistener.search`

Full-text search with highlighted snippets; type picks opinions, RECAP dockets/documents, judges or audio.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q` required</td><td>string</td><td>query</td><td>Query; supports field operators such as caseName:foo. Example `qualified immunity`</td></tr>
    <tr><td>`type`</td><td>string</td><td>query</td><td>o case law (default), r dockets with up to 3 documents, rd RECAP documents, d dockets, p judges, oa oral arguments. One of `o`, `r`, `rd`, `d`, `p`, `oa`</td></tr>

    <tr>
      <td>
        `order_by`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Sort order; relevance by default.
      </td>
    </tr>

    <tr><td>`highlight`</td><td>string</td><td>query</td><td>on to highlight matches; off by default. One of `on`</td></tr>

    <tr>
      <td>
        `semantic`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true for semantic search (case law only).
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://wiki.free.law/c/courtlistener/help/api/rest/v4/search)

```python Python theme={null}
router.call_data_api("courtlistener.search", {'q': 'qualified immunity'})
```

```text MCP theme={null}
call_data_api(endpoint="courtlistener.search", params={"q": "qualified immunity"})
```

> [!NOTE]
>
> * Pages with the cursor in the next URL. Counts for types d and r are approximate above 2,000.
> * Results are cached for ten minutes; for monitoring, the Alert API is preferred over polling.

### List opinion clusters

GET

`/clusters/`

`courtlistener.clusters.list`

Cases (opinion clusters) filtered by docket, court, date and other fields.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`docket__court`</td><td>string</td><td>query</td><td>Court id. Example `scotus`</td></tr>
    <tr><td>`docket__docket_number`</td><td>string</td><td>query</td><td>Docket number. Example `23A994`</td></tr>
    <tr><td>`order_by`</td><td>string</td><td>query</td><td>Sort fields, comma-separated; prefix - for descending (OPTIONS lists the allowed ones). Example `-date_modified`</td></tr>

    <tr>
      <td>
        `fields`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only these fields, comma-separated; \_\_ for nested fields.
      </td>
    </tr>

    <tr>
      <td>
        `omit`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Drop these fields, comma-separated.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number; at most 100 pages. Ordering by id, date\_modified or date\_created pages with the next/previous URLs instead.
      </td>
    </tr>

    <tr><td>`count`</td><td>string</td><td>query</td><td>on returns only the total count. One of `on`</td></tr>
  </tbody>
</table>

[Vendor docs](https://wiki.free.law/c/courtlistener/help/api/rest/v4/case-law)

```python Python theme={null}
router.call_data_api("courtlistener.clusters.list", {'docket__court': 'scotus', 'docket__docket_number': '23A994', 'order_by': '-date_modified'})
```

```text MCP theme={null}
call_data_api(endpoint="courtlistener.clusters.list", params={"docket__court": "scotus", "docket__docket_number": "23A994", "order_by": "-date_modified"})
```

### Get an opinion cluster

GET

`/clusters/{id}/`

`courtlistener.clusters.get`

One case: names, dates, citations, judges and links to its opinions.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `id`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        Cluster id.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://wiki.free.law/c/courtlistener/help/api/rest/v4/case-law)

### List opinions

GET

`/opinions/`

`courtlistener.opinions.list`

Opinions filtered by cluster, court or docket fields.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`cluster__docket__court`</td><td>string</td><td>query</td><td>Court id. Example `scotus`</td></tr>

    <tr>
      <td>
        `cluster__docket__docket_number`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Docket number.
      </td>
    </tr>

    <tr><td>`order_by`</td><td>string</td><td>query</td><td>Sort fields, comma-separated; prefix - for descending (OPTIONS lists the allowed ones). Example `-date_modified`</td></tr>

    <tr>
      <td>
        `fields`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only these fields, comma-separated; \_\_ for nested fields.
      </td>
    </tr>

    <tr>
      <td>
        `omit`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Drop these fields, comma-separated.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number; at most 100 pages. Ordering by id, date\_modified or date\_created pages with the next/previous URLs instead.
      </td>
    </tr>

    <tr><td>`count`</td><td>string</td><td>query</td><td>on returns only the total count. One of `on`</td></tr>
  </tbody>
</table>

[Vendor docs](https://wiki.free.law/c/courtlistener/help/api/rest/v4/case-law)

```python Python theme={null}
router.call_data_api("courtlistener.opinions.list", {'cluster__docket__court': 'scotus', 'order_by': '-date_modified'})
```

```text MCP theme={null}
call_data_api(endpoint="courtlistener.opinions.list", params={"cluster__docket__court": "scotus", "order_by": "-date_modified"})
```

### Get an opinion

GET

`/opinions/{id}/`

`courtlistener.opinions.get`

One opinion's text (html\_with\_citations is the most reliable field), type, author and the opinions it cites.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `id`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        Opinion id.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://wiki.free.law/c/courtlistener/help/api/rest/v4/case-law)

### List dockets

GET

`/dockets/`

`courtlistener.dockets.list`

Dockets filtered by court, docket number and other fields.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`court`</td><td>string</td><td>query</td><td>Court id. Example `scotus`</td></tr>
    <tr><td>`docket_number`</td><td>string</td><td>query</td><td>Docket number. Example `23A994`</td></tr>
    <tr><td>`order_by`</td><td>string</td><td>query</td><td>Sort fields, comma-separated; prefix - for descending (OPTIONS lists the allowed ones). Example `-date_modified`</td></tr>

    <tr>
      <td>
        `fields`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only these fields, comma-separated; \_\_ for nested fields.
      </td>
    </tr>

    <tr>
      <td>
        `omit`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Drop these fields, comma-separated.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number; at most 100 pages. Ordering by id, date\_modified or date\_created pages with the next/previous URLs instead.
      </td>
    </tr>

    <tr><td>`count`</td><td>string</td><td>query</td><td>on returns only the total count. One of `on`</td></tr>
  </tbody>
</table>

[Vendor docs](https://wiki.free.law/c/courtlistener/help/api/rest/v4/case-law)

```python Python theme={null}
router.call_data_api("courtlistener.dockets.list", {'court': 'scotus', 'docket_number': '23A994', 'order_by': '-date_modified'})
```

```text MCP theme={null}
call_data_api(endpoint="courtlistener.dockets.list", params={"court": "scotus", "docket_number": "23A994", "order_by": "-date_modified"})
```

> [!NOTE]
>
> * Docket entries, parties and attorneys are not in docket responses.

### Get a docket

GET

`/dockets/{id}/`

`courtlistener.dockets.get`

One docket's case metadata.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `id`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        Docket id.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://wiki.free.law/c/courtlistener/help/api/rest/v4/case-law)

### List courts

GET

`/courts/`

`courtlistener.courts.list`

Court ids, names and jurisdictions, for the court filters.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`order_by`</td><td>string</td><td>query</td><td>Sort fields, comma-separated; prefix - for descending (OPTIONS lists the allowed ones). Example `-date_modified`</td></tr>

    <tr>
      <td>
        `fields`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only these fields, comma-separated; \_\_ for nested fields.
      </td>
    </tr>

    <tr>
      <td>
        `omit`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Drop these fields, comma-separated.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number; at most 100 pages. Ordering by id, date\_modified or date\_created pages with the next/previous URLs instead.
      </td>
    </tr>

    <tr><td>`count`</td><td>string</td><td>query</td><td>on returns only the total count. One of `on`</td></tr>
  </tbody>
</table>

[Vendor docs](https://wiki.free.law/c/courtlistener/help/api/rest/v4/case-law)

```python Python theme={null}
router.call_data_api("courtlistener.courts.list", {'order_by': '-date_modified'})
```

```text MCP theme={null}
call_data_api(endpoint="courtlistener.courts.list", params={"order_by": "-date_modified"})
```

> [!NOTE]
>
> * Changes rarely; cache it.

### Look up citations in text

POST

`/citation-lookup/`

`courtlistener.citations.lookup`

Parses legal citations out of text (or one volume/reporter/page) and resolves them to clusters.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `text`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Text to parse, up to 64,000 characters.
      </td>
    </tr>

    <tr>
      <td>
        `volume`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Volume of a single citation (with reporter and page).
      </td>
    </tr>

    <tr>
      <td>
        `reporter`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Reporter of a single citation.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Page of a single citation.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://wiki.free.law/c/courtlistener/help/api/rest/v4/citation-lookup)

```python Python theme={null}
router.call_data_api("courtlistener.citations.lookup")
```

```text MCP theme={null}
call_data_api(endpoint="courtlistener.citations.lookup")
```

> [!NOTE]
>
> * A read over POST, form-encoded. Up to 250 citations per request; 60 valid citations per minute, then 429 with a wait\_util timestamp (field name as the docs spell it).
> * Statutes, law journals, id. and supra citations are not looked up.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.