For AI agents: read the machine-readable documentation index at /llms.txt or the single-file full reference at /llms-full.txt.
Black Friday: $25 off forming an LLC in any stateLLC formation, through Dec. 1.See the deal →

State statutes API · state law API

State statutes API: every state, one search

Statutes for 50 states plus DC, with the US Code and CFR, in one search. Partial for Georgia, Hawaii and Tennessee.

Calls that work

One state's statutes, without its cities

curl -H "Authorization: Bearer $CORPUS_API_KEY" \
  "https://corpuslaw.us/api/v1/search?q=mobile+food+vendor+license&jurisdiction=AZ&local=exclude"

Federal law only

curl -H "Authorization: Bearer $CORPUS_API_KEY" \
  "https://corpuslaw.us/api/v1/search?q=overtime+exemption&jurisdiction=US"

Full text of a result

curl -H "Authorization: Bearer $CORPUS_API_KEY" \
  "https://corpuslaw.us/api/v1/node/{nodeId}"

What to know

  • Each result carries its official citation, and the full text comes with its provenance: the source Corpus read it from.
  • Leave jurisdiction off to search every state at once and compare how states handle the same question.
  • No case law. For court opinions, use CourtListener, which is free.
  • Free to start: 250 searches a month with no key, 1,000 with a free key, then $0.005 a search from prepaid credits (down to $0.004). For steady volume, monthly plans start at $49 for 100,000 searches ($249 for 600,000).

Questions

How current is it?

The coverage list gives each jurisdiction's as-of date. Check the official site before relying on a recent amendment.

Can I search one code, such as a state's vehicle code?

Yes. Pass codeBody with jurisdiction; the coverage list names each code body.