US Statutes API: USC, CFR & State Codes

The complete US Code, the CFR, and every state and territory code (5M+ sections) through one self-serve API: REST, MCP or SQL. Every section cited and linked to its official source.

The hard way

Build the pipeline yourself

  • ✗All 52 government sites, each in its own format
  • ✗PDFs and XML with broken tables and footnotes
  • ✗Section hierarchy, amendments, and metadata
  • ✗A search index you build and keep in sync
  • ✗Re-scrape it all, forever, as the law changes

Weeks of setup. Maintenance that never ends.

The API

Or make one call

POST /api/v1/us/statutes/search
  • ✓Indexed and normalized to one schema
  • ✓Cited, with a link to the official source
  • ✓Relevance-ranked, filter by state or corpus
  • ✓Refreshed on a per-source schedule

One API key. Live today.

We open-sourced the hard part: the scrapers

Clean, structured bulk access to the compiled state codes has never existed in the open. Open US Law publishes that missing layer and the scrapers that build it: every state statutory code plus the US Code, the CFR, regulations, constitutions, and court rules, normalized to JSONL from official government sources. Scripts are Apache-2.0; the compiled data is CC BY 4.0. Clone it to self-host, or use the hosted API below to skip the pipeline entirely.

Sections of US primary law
5M+Sections of US primary law
US jurisdictions: federal, 50 states, DC and Puerto Rico
53US jurisdictions: federal, 50 states, DC and Puerto Rico
Indexed retrieval passages
19M+Indexed retrieval passages

One request, cited results.

request.sh
curl -X POST https://api.vaquill.ai/api/v1/us/statutes/search \
  -H "Authorization: Bearer $VAQUILL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "qualified immunity", "corpusType": "USC", "limit": 5}'
response.json
{
  "total": 3,
  "creditsConsumed": 4,
  "results": [
    {
      "actId": "USC_T6_C4_S1104",
      "citation": "6 U.S.C. § 1104 (2024)",
      "title": "Immunity for reports of suspected terrorist activity",
      "corpusType": "USC",
      "state": "federal",
      "year": 2024,
      "relevanceScore": 0.73,
      "excerpt": "Any person who, in good faith...",
      "displayPath": "Title 6 > Chapter 4 > § 1104",
      "htmlUrl": "https://statutes-us.vaquill.ai/...htm",
      "pdfUrl": "https://statutes-us.vaquill.ai/...pdf",
      "externalUrl": "https://www.govinfo.gov/app/details/..."
    }
  ]
}

Everything the API covers

One schema over every layer of US primary law: 5M+ sections across every US jurisdiction, each cited and linked to its official source.

60,170

US Code sections

53 titles, weekly

222,430

CFR sections

49 active titles, daily

196,237

Federal Register rules

final + proposed, 1994 to present

429,297

Statutes at Large sections

federal law as enacted, 1789 to date

80,276

Statute compilation sections

2,556 acts, currency stated per document

100,920

Agency adjudication decisions

7 federal bodies, no good-law verdict

312,132

CFR annual edition sections

31 published editions of the same regulations, not extra breadth

17,616

Federal Register notices

curated 2.3% slice: notices acting on a rulemaking

1.93M+

State statute sections

all 52 jurisdictions

1.46M+

State regulation rules

all 52 jurisdictions

3,777

Executive orders

+ proclamations & memos

97,025

Agency guidance documents

53 named sources across 26 agencies

12.7K+

State constitution sections

51 jurisdictions

53K+

State court rules

46 jurisdictions

589

Federal Rules of Procedure

FRCP, FRCrP, FRE, FRAP, FRBP + SCOTUS Rules

13,350

State agency guidance (bulletins)

49 jurisdictions

74

US Constitution sections

articles + amendments

Federal: the US Code and CFR

The complete codified federal corpus, with in-force counts and historical (repealed, omitted, transferred) sections preserved for reproducible research.

CorpusSectionsIn forceTitles
US Code (statutes)60,17050,79853
CFR (regulations)222,430221,87149
USC + CFR282,421272,669102

Bracketed entries are citation patterns, not placeholders: California, New York and Texas divide their statutes into subject-matter codes, so a citation names the subject (Cal. Penal Code, N.Y. Penal Law, Tex. Penal Code).

Plus the Federal Register (196,237 rules, final and proposed, 1994 to present), 3,777 executive orders, the US Constitution, the Federal Rules of Procedure, 97,025 agency guidance documents across 26 agencies, the US Sentencing Guidelines, and US tax treaties.

State: all 52 statute codes

Every state code in the same schema as federal. Scope a query to one jurisdiction with state: "tx", or resolve a citation like Tex. Penal Code § 19.02 straight to its section. Plus state regulations (1.46M+ rules, all 52 jurisdictions), state constitutions (51 jurisdictions), state court rules (46 jurisdictions), and state agency guidance / bulletins (49 jurisdictions).

Statute code by US jurisdiction
CodeJurisdictionStatute code
ALAlabamaAla. Code
AKAlaskaAlaska Stat.
AZArizonaAriz. Rev. Stat.
ARArkansasArk. Code
CACaliforniaCal. [Code]
COColoradoColo. Rev. Stat.
CTConnecticutConn. Gen. Stat.
DEDelawareDel. Code
DCDistrict of ColumbiaD.C. Code
FLFloridaFla. Stat.
GAGeorgiaGa. Code
HIHawaiiHaw. Rev. Stat.
IDIdahoIdaho Code
ILIllinoisIll. Comp. Stat.
INIndianaInd. Code
IAIowaIowa Code
KSKansasKan. Stat.
KYKentuckyKy. Rev. Stat.
LALouisianaLa. Rev. Stat.
MEMaineMe. Rev. Stat.
MDMarylandMd. Code
MAMassachusettsMass. Gen. Laws
MIMichiganMich. Comp. Laws
MNMinnesotaMinn. Stat.
MSMississippiMiss. Code
MOMissouriMo. Rev. Stat.
MTMontanaMont. Code
NENebraskaNeb. Rev. Stat.
NVNevadaNev. Rev. Stat.
NHNew HampshireN.H. Rev. Stat.
NJNew JerseyN.J. Stat.
NMNew MexicoN.M. Stat.
NYNew YorkN.Y. [Cons. Laws]
NCNorth CarolinaN.C. Gen. Stat.
NDNorth DakotaN.D. Cent. Code
OHOhioOhio Rev. Code
OKOklahomaOkla. Stat.
OROregonOr. Rev. Stat.
PAPennsylvaniaPa. Cons. Stat.
PRPuerto RicoP.R. Laws Ann.
RIRhode IslandR.I. Gen. Laws
SCSouth CarolinaS.C. Code
SDSouth DakotaS.D. Codified Laws
TNTennesseeTenn. Code
TXTexasTex. [Code]
UTUtahUtah Code
VTVermontVt. Stat.
VAVirginiaVa. Code
WAWashingtonWash. Rev. Code
WVWest VirginiaW. Va. Code
WIWisconsinWis. Stat.
WYWyomingWyo. Stat.

Security & Compliance

Legal data demands serious security. Here is how we protect your queries and your clients' data.

Bearer token auth
Keys prefixed vq_key_, rotate any time from the dashboard.
HTTPS only
Encrypted in transit; plain HTTP is rejected.
No query logging
We never store your searches, only usage for billing.
SOC 2 in progress
Type II underway; trust docs on request.
US data residency
Servers and legal data stay on US infrastructure.
IP whitelisting
IP-based access restrictions on enterprise plans.

Working in legal aid or civil justice?

Apply for free access

US primary law other than case law: statutes, regulations, constitutions, court rules, executive orders, agency guidance, and agency adjudications. Federal plus all 50 states, DC, and Puerto Rico, about 5M+ sections. The coverage section above breaks it down corpus by corpus, and GET /api/v1/us/statutes/coverage returns the live numbers.

Stop building legal data pipelines.