# red-web-utils Caselaw Fetch

> red-web-utils Caselaw Fetch is a paid API for AI agents from red-web-utils.agent-tools-x402.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-04).

Fetches a caselaw document by its path from a legal case database, returning structured case content for AI agents.

## Facts

- Endpoint: POST https://red-web-utils.agent-tools-x402.workers.dev/api/caselaw/fetch?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/red-web-utils-caselaw-fetch-111f07cc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__F8udzU6aNmf335Uh2RXS

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 red-web-utils-caselaw-fetch-111f07cc -d '<json body>'
```

Example prompt: Can you fetch the caselaw document at the path '/opinions/2023/smith-v-jones' so I can read the full court opinion?

## When to prefer this

Use this endpoint when an AI agent needs to retrieve a specific caselaw document by a known path identifier, particularly in pay-per-call agentic workflows using x402/USDC micropayments on Base. Prefer this over free caselaw APIs when operating in an autonomous agent context that already handles x402 payments, or when other free sources are unavailable or rate-limited.

## Known failure modes

- Invalid or non-existent path returns an error or empty response
- Malformed path string causes a 400-level error
- Payment failure (insufficient USDC balance) results in a 402 response before the document is returned
- Network timeout on the upstream caselaw data source
- Rate limiting if too many requests are made in rapid succession

## How this service works

Pay-per-call web and onchain utilities for AI agents (MPP + x402, USDC on Base).

## Output

Returns the content of the requested caselaw document, likely including the full text of the court opinion, case metadata such as parties and date, and any associated legal findings. The response is scoped to the document identified by the provided path.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "path"
 ],
 "properties": {
  "path": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/red-web-utils-caselaw-fetch-111f07cc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from red-web-utils.agent-tools-x402.workers.dev](https://www.zero.xyz/host/red-web-utils.agent-tools-x402.workers.dev/llms.txt)
