# AutoScrape CourtListener Legal Opinions API

> AutoScrape CourtListener Legal Opinions API is a paid API for AI agents from autoscrape-api-seven.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Search and retrieve federal and state court legal opinions from CourtListener with full-text query, citation, docket, and date filtering

## Facts

- Endpoint: GET https://autoscrape-api-seven.vercel.app/x402/v1/courtlistener-legal-opinions
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/autoscrape-courtlistener-legal-opinions-api-70ba357f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dGd9UYcP2zdo26zBo5QMp

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 autoscrape-courtlistener-legal-opinions-api-70ba357f
```

Example prompt: Search CourtListener for federal court opinions on artificial intelligence copyright infringement from the 9th Circuit, ordered by newest first, and give me up to 5 results.

## When to prefer this

Choose this endpoint when an agent needs to retrieve real case law opinions with structured metadata (citations, court, URL) from CourtListener's database. It is ideal for legal research workflows, citation lookups, docket tracking, and full-text case law queries across federal and state courts. Prefer it over raw web scraping when you need structured, machine-readable opinion records with direct links. It supports up to 10 results per call, making it suitable for focused queries rather than bulk harvesting.

## Known failure modes

- No results found for overly specific query combinations — returns empty results array with count 0
- maxResults capped at 10 regardless of input value
- Invalid court ID returns empty results or error
- Malformed date format (not YYYY-MM-DD) may be ignored or cause no results
- CourtListener upstream downtime may result in HTTP 5xx or empty response
- Payment failure via x402 results in 402 response before data is returned

## How this service works

No-key evaluation APIs for public data and utilities: business filings, permits, bankruptcy dockets, NPI providers, HTTP status checks, sitemap URL extraction, SEC EDGAR, IRS 990, WHOIS, and validation. Paid x402 access is live.

## Output

Returns a JSON object with a total count, a list of up to 10 matching opinions (each including court ID, case name, citations array, and a direct CourtListener opinion URL), and a setup status string indicating whether results were found.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "results": [
   {
    "courtId": "ca9",
    "caseName": "Example v. Example",
    "citations": [
     "123 F.4th 456"
    ],
    "opinionUrl": "https://www.courtlistener.com/opinion/example/"
   }
  ],
  "setupStatus": "found"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/autoscrape-courtlistener-legal-opinions-api-70ba357f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from autoscrape-api-seven.vercel.app](https://www.zero.xyz/host/autoscrape-api-seven.vercel.app/llms.txt)
