[Integrations](https://spiral.ai/integrations) › [Grok](https://spiral.ai/integrations/grok) › [CourtListener docket search](https://spiral.ai/integrations/grok/courtlistener-docket-search)

# How to Use CourtListener docket search in Grok

Finds federal cases in RECAP and returns case metadata such as names, docket numbers, courts, and filing dates. Use it to identify the right lawsuit before examining its individual docket entries.

|  |  |
| --- | --- |
| Model | CourtListener docket search |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with CourtListener docket search in Grok

- Use CourtListener docket search to find United States v. Google LLC, case 1:20-cv-03010 in the District of Columbia, and show its returned case metadata.
- Use CourtListener docket search to find federal cases involving Apple filed since January 1, 2025, and compare the returned courts, docket numbers, and filing dates.
- Use CourtListener docket search to find cases involving the exact phrase Epic Games filed since January 1, 2020, and help me distinguish the returned cases by court and docket number.
- Use CourtListener docket search to look this up and give me the result as a table.
- Pull the latest numbers from CourtListener docket search and tell me what changed since last week.

## How to set up CourtListener docket search in Grok

Pick the way that suits you. Each takes about two minutes.

### Use the Grok connector

1. **Add a custom connector**: In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

```text
https://api.spiral.ai/mcp
```

2. **Sign in to Spiral and approve**: Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

3. **Check that it is connected**: Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

### Use the Spiral skill

1. **Send Grok this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run CourtListener docket search**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "courtlistener-com/dockets/search_dockets",
    "input": {
      "query": "<query>"
    }
  }'
```

Then paste one of the prompts above: Grok finds CourtListener docket search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/grok

## CourtListener docket search tools and prices

- [CourtListener · Search dockets](https://spiral.ai/tools/alexandria/courtlistener-com/dockets/search_dockets) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| cause |  | — | cause |
| court |  | — | CourtListener court ids (not jurisdiction or state names) to restrict the search to, e.g. scotus, ca9, nysd, cal, calctapp, ny, nyappdiv, tex, texapp, fla. An unknown id such as texas, tx or ca matches nothing and returns zero results. List every court you need: ny does not include nyappdiv. Use the courts function to find ids (jurisdiction S / SA are state supreme and appellate courts). |
| judge |  | — | Assigned judge name. |
| query |  | — | Full-text query over docket metadata; supports fielded clauses such as party:(Google) or docketNumber:"1:20-cv-03010". |
| cursor |  | — | Not served keyless: the feeds have no further pages, so any cursor fails with a non-retryable upstream_blocked error. |
| order_by | score desc, dateFiled desc, dateFiled asc | score desc | Keyless feeds always return the newest matches first. score desc (default) and dateFiled desc are accepted; other orders need a CourtListener API token and fail with a non-retryable upstream_blocked error. |

## What can you do with CourtListener docket search in Grok?

Turn CourtListener case records into a readable litigation briefing with case identifiers and filing descriptions. A chat app can help distinguish similarly named cases and explain the sequence of activity recorded in RECAP.

### Antitrust reporting

Find federal antitrust cases involving Google or Apple, then review returned docket descriptions to identify motions and orders worth investigating.

### Corporate litigation briefings

Identify cases involving a public company and build a briefing from case metadata and recorded filing activity. Keep allegations attributed to the filing descriptions.

### Patent dispute monitoring

Locate patent disputes involving a business, then inspect docket entries for descriptions of claim-construction proceedings, motions, and orders.

### Business bankruptcy research

Find a corporate bankruptcy case and organize the returned filing descriptions into a chronology for restructuring research.

### Public-interest case timelines

Identify litigation brought by a public-interest organization and assemble a dated timeline from the available docket entries.

### Changes to a business case watchlist

Search for newly returned cases involving selected organizations and compare available entries for cases already identified. Report changes found in RECAP without claiming complete court coverage.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Grok guides](https://spiral.ai/integrations/grok)

## CourtListener docket search in other agents

- [Amp](https://spiral.ai/integrations/amp/courtlistener-docket-search)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/courtlistener-docket-search)
- [Claude](https://spiral.ai/integrations/claude-desktop/courtlistener-docket-search)
- [Claude Code](https://spiral.ai/integrations/claude-code/courtlistener-docket-search)
- [Cline](https://spiral.ai/integrations/cline/courtlistener-docket-search)
- [Codex](https://spiral.ai/integrations/codex/courtlistener-docket-search)
- [Cursor](https://spiral.ai/integrations/cursor/courtlistener-docket-search)
- [Devin](https://spiral.ai/integrations/devin/courtlistener-docket-search)
- [dots](https://spiral.ai/integrations/dots/courtlistener-docket-search)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/courtlistener-docket-search)
- [Gemini](https://spiral.ai/integrations/gemini/courtlistener-docket-search)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/courtlistener-docket-search)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/courtlistener-docket-search)
- [goose](https://spiral.ai/integrations/goose/courtlistener-docket-search)
- [Grok Build](https://spiral.ai/integrations/grok-build/courtlistener-docket-search)
- [Hermes](https://spiral.ai/integrations/hermes/courtlistener-docket-search)
- [Instinct](https://spiral.ai/integrations/instinct/courtlistener-docket-search)
- [Manus](https://spiral.ai/integrations/manus/courtlistener-docket-search)
- [Muse](https://spiral.ai/integrations/muse/courtlistener-docket-search)
- [Muse Code](https://spiral.ai/integrations/muse-code/courtlistener-docket-search)
- [n8n](https://spiral.ai/integrations/n8n/courtlistener-docket-search)
- [Notion](https://spiral.ai/integrations/notion/courtlistener-docket-search)
- [OpenClaw](https://spiral.ai/integrations/openclaw/courtlistener-docket-search)
- [opencode](https://spiral.ai/integrations/opencode/courtlistener-docket-search)
- [Perplexity](https://spiral.ai/integrations/perplexity/courtlistener-docket-search)
- [Raycast](https://spiral.ai/integrations/raycast/courtlistener-docket-search)
- [VS Code](https://spiral.ai/integrations/vscode/courtlistener-docket-search)
- [Windsurf](https://spiral.ai/integrations/windsurf/courtlistener-docket-search)
- [Zapier](https://spiral.ai/integrations/zapier/courtlistener-docket-search)

## More Grok guides

- [CourtListener docket entries](https://spiral.ai/integrations/grok/courtlistener-docket-entries)
- [CourtListener opinion search](https://spiral.ai/integrations/grok/courtlistener-opinion-search)
- [CourtListener court directory](https://spiral.ai/integrations/grok/courtlistener-court-directory)
- [Cámara de Diputados federal law catalog](https://spiral.ai/integrations/grok/c-mara-de-diputados-federal-law-catalog)
- [Cornell LII state regulation](https://spiral.ai/integrations/grok/cornell-lii-state-regulation)
- [Cámara de Diputados law articles](https://spiral.ai/integrations/grok/c-mara-de-diputados-law-articles)

## Questions about CourtListener docket search in Grok

**Can Grok use CourtListener docket search?**

Yes. Add Spiral to Grok as an MCP server, and Grok can find and run CourtListener docket search like any built-in tool.

**How much does CourtListener docket search cost in Grok?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Grok plan is separate.

**Do I need an Alexandria account to use CourtListener docket search in Grok?**

No. Spiral runs CourtListener docket search on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up CourtListener docket search in Grok?**

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

**Does Grok wait while CourtListener docket search runs?**

CourtListener docket search runs in the background. Grok starts the run, checks on it and gives you the json when it's ready.

**Which courts does RECAP cover?**

RECAP collects records from the Supreme Court and federal district, appellate, and bankruptcy courts. Its federal docket collection does not establish coverage of state trial-court litigation.

**Does RECAP contain every filing in a federal case?**

CourtListener explicitly says its coverage of new PACER activity can be incomplete. Some courts provide only selected filing types through RSS, and others provide no RSS feed.

**How current is the information for a particular case?**

Freshness depends on whether CourtListener receives updates for that case. Its documentation says valid updates can be missed when no source supplies them, so an unchanged RECAP record does not prove there was no court activity.

**Why might a filing PDF be missing?**

CourtListener may receive a PDF before it receives the docket or docket-entry metadata needed to place it. That specific processing gap can leave a contributed document unavailable until the missing metadata arrives.

**Is a docket description the same as the filing itself?**

No. CourtListener separates docket metadata, docket entries, and documents; an entry description summarizes the associated documents. It does not supply the full arguments or reasoning contained in a motion or order.

