# 2s Law Opinion Lookup

> 2s Law Opinion Lookup is a paid API for AI agents from 2s.io, paid per call via x402, $0.0048/call, status unknown (last checked 2026-09-14).

Retrieves court opinion records by citation string or numeric opinion ID from a legal database

## Facts

- Endpoint: POST https://2s.io/api/law/opinion
- Price: $0.0048/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-law-opinion-lookup-635b0245
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6WnGd-Znrm__nq5fI6cSR

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-law-opinion-lookup-635b0245 -d '<json body>'
```

Example prompt: Can you pull up the court opinion for citation '410 U.S. 113' — I need the full opinion record including the source and license info.

## When to prefer this

Use this endpoint when you need to retrieve a specific court opinion by its citation string (e.g. '410 U.S. 113') or a known numeric opinion ID, and want a pay-per-call approach with no API key or subscription. Prefer this over subscription legal databases when cost-per-call is preferable to monthly fees, or when integrating into an agent pipeline that needs on-demand legal lookups.

## Known failure modes

- No matching opinion found returns empty items array with total null or 0
- Invalid citation format or missing both citation and opinionId may result in error or empty result
- opinionId of 0 is excluded (exclusiveMinimum:true), submitting 0 may cause validation error
- Upstream legal data provider unavailable returns non-ok response
- Payment failure via x402 blocks request before reaching the API

## How this service works

The (most) everything API: 575+ pay-per-call endpoints for AI agents — ground-truth data, a full AI gateway, and agent infrastructure (storage, queues, watchers). USDC via x402, no signup, no API keys, and upto billing: pay actual usage, not the quote.

## Output

Returns a JSON object with ok:true, a meta block echoing the query parameters, an items array of matching opinion records (with arbitrary fields), a nullable total count of matching rows, and a source object identifying the upstream provider, URL, and license.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "citation": {
   "type": "string",
   "maxLength": 500,
   "minLength": 2
  },
  "opinionId": {
   "type": "integer",
   "minimum": 0,
   "exclusiveMinimum": true
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-law-opinion-lookup-635b0245/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)
