⚖️

LAWS

laws.4bots.ai

US federal case law search via CourtListener. Structured citations, jurisdiction filtering, and "not legal advice" disclaimers — all in clean JSON.

Live Free — 10/day CourtListener x402 Native MCP Compatible

US federal case law. One query.

Your agent needs to find US federal court opinions. Normally that means hitting CourtListener's API, parsing their response, and handling authentication. LAWS does it all in one call and returns structured results with citations.

⚖️ CourtListener API

US federal case law — SCOTUS, Circuit Courts, District Courts. Searchable, filterable, with structured metadata including citation, court, date, and docket info.

🔒 Server-side jurisdiction gating

Free tier is US-only. Paid tier is also US-only at launch. CanLII (Canadian) integration is pending API authorization — watch this space.

⚡ Smart caching

24-hour cache on every query. Case law doesn't change hourly — cache hit = instant response, zero upstream calls.

📝 Legal disclaimer

Every response includes a "not legal advice" disclaimer injected server-side. No client-side tricks, no bypassable metadata.

Open legal data. Clean delivery.

CourtListener is part of the Free Law Project — a nonprofit dedicated to making legal documents freely accessible. Our API provides a clean, structured layer on top of their raw data.

Primary

CourtListener API

Free API key required. Covers US federal courts: SCOTUS, Circuit Courts, District Courts. Search syntax supports Boolean, fielded search, and date ranges.

Future

CanLII (Canadian)

Pending API authorization. Will add Canadian federal and provincial case law. Watch for updates.

One endpoint. Full case law.

GET /v1/free/laws/search?q=...

Search CourtListener. Free tier: 10/day/IP, US only, max 5 results.

curl "https://laws.4bots.ai/v1/free/laws/search?q=insider+trading&jurisdiction=us&limit=5"

Example response:

{
  "query": "insider trading",
  "jurisdiction": "us",
  "sources": ["courtlistener"],
  "results": [
    {
      "title": "United States v. Martha Stewart",
      "court": "Second Circuit",
      "citation": "433 F.3d 368",
      "url": "https://www.courtlistener.com/opinion/12345678/usa-v-martha-stewart/",
      "date": "2006-01-06",
      "jurisdiction": "us",
      "snippet": "...insider trading in ImClone stock...",
      "relevance": 0.89,
      "type": "case",
      "language": "en"
    }
  ],
  "total_found": 42,
  "cached": false,
  "disclaimer": "Results for informational purposes only. Not legal advice.",
  "free_remaining": 7
}

GET /v1/paid/laws/search?q=...

Paid tier: $0.003/search, up to 20 results, full raw text.

curl "https://laws.4bots.ai/v1/paid/laws/search?q=insider+trading&jurisdiction=us&limit=20"

Same schema. More results. Raw text snippets for paid.

GET /health

Health check. Always free, always returns 200.

curl "https://laws.4bots.ai/health"

Free to try. Pennies to scale.

10 free searches per day covers development and light agent workloads. Paid tier unlocks more results per query.

Free
$0 / month
No wallet required
  • 10 searches / day
  • CourtListener (US only)
  • 5 results per query
  • 24-hour cache
  • JSON output
Paid
$0.003 / search
via x402 USDC on Base
  • Unlimited searches
  • CourtListener (US only)
  • 20 results per query
  • Full raw text snippets
  • Same consistent JSON schema

Search US federal case law now.

No signup. No API key. Just send a request.

Try the API → How x402 works