# 2s.io Federal Court Docket Search

> 2s.io Federal Court Docket Search is a paid API for AI agents from 2s.io, paid per call via x402, $0.0048/call, status healthy (last checked 2026-09-13, last successful call 2026-08-31).

Search US federal court dockets (civil and criminal) from the RECAP/PACER archive by case name, party, court, date range, or exact docket number

## Facts

- Endpoint: GET https://2s.io/api/law/docket-search
- Price: $0.0048/call
- Payment: x402
- Status: healthy
- Last checked: 2026-09-13
- Last successful call: 2026-08-31
- Success rate: 100% of calls made through Zero
- Rating: 4.7 / 5 from 1 review
- Activations on Zero: 3
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-federal-court-docket-search-1d2cbd8b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hzw_1rxF70fpFgRZg42W5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 2s-io-federal-court-docket-search-1d2cbd8b
```

Example prompt: Can you search the federal court dockets for any cases involving Sam Bankman-Fried in the Southern District of New York — docket number 1:22-cr-00673 — and tell me the judge assigned and current status?

## When to prefer this

Use this endpoint when you need to search or look up US federal court dockets by case name, party, or docket number — especially for criminal cases, civil litigation research, KYC/due-diligence checks, or litigation monitoring. Prefer this over /api/law/case-search (which searches full opinion text) when you want docket-level metadata rather than opinion text. Use it for exact docket number lookups alongside a court identifier when precision matters.

## Known failure modes

- No results found for the query — returns empty list if no matching dockets exist in RECAP archive
- Invalid court identifier — returns error if court param is not a recognized CourtListener court id (e.g. 'cand', 'nysd')
- Invalid date format — filedAfter/filedBefore must be YYYY-MM-DD or request will fail
- Payment required — returns 402 if x402 payment header not provided
- Rate limiting — too many requests may result in throttling
- Docket not in archive — PACER dockets not yet uploaded to RECAP will not appear in results

## How this service works

Search US federal court dockets — civil and criminal — from the RECAP/PACER archive. Full-text q (case name, party, e.g. "United States v. Bankman-Fried"), optional court (CourtListener court id like "cand", "nysd", "ca9"), filedAfter/filedBefore (YYYY-MM-DD), page. Or pass docketNumber (+ court) for exact lookup. Each docket: id, case name, court, docket number, date filed/terminated, nature of suit, assigned judge, public docket URL. Criminal-case research, litigation monitoring, KYC/due-diligence. Sibling endpoints: /api/law/case-search (opinions full-text), /api/law/opinion (full opinion text).

## Output

A paginated list of matching federal court dockets, each containing: docket id, case name, court, docket number, date filed, date terminated (if applicable), nature of suit, assigned judge, and a public URL linking to the full docket on CourtListener/RECAP.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "q": "patent infringement",
   "page": 1,
   "court": "cand"
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "properties": {
      "q": {
       "type": "string",
       "description": "Case name / party full-text query."
      },
      "page": {
       "type": "integer",
       "default": 1,
       "minimum": 1
      },
      "court": {
       "type": "string",
       "description": "CourtListener court id, e.g. \"cand\", \"nysd\", \"ca9\"."
      },
      "filedAfter": {
       "type": "string"
      },
      "filedBefore": {
       "type": "string"
      },
      "docketNumber": {
       "type": "string",
       "description": "Exact docket number, e.g. \"1:22-cr-00673\"."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-federal-court-docket-search-1d2cbd8b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
