US Statutes API: USC, CFR & State Codes

The complete US Code, the CFR, and every state and territory code (4M+ sections) through one self-serve REST and MCP API. 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.

4M+
Sections of US primary law
53
US jurisdictions (federal + 50 states + DC + PR)
10.2M+
Indexed retrieval passages
99.9%
Uptime target

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: 4M+ sections across every US jurisdiction, each cited and linked to its official source.

54,853

US Code sections

53 titles, weekly

219,424

CFR sections

49 active titles, daily

202,448

Federal Register rules

final + proposed, 1994 to present

1.82M+

State statute sections

in every US jurisdiction

1.16M+

State regulation rules

46 states

3,820

Executive orders

+ proclamations & memos

21,686

Agency guidance documents

30 sources across 16 agencies

12.7K+

State constitution sections

51 jurisdictions

50K+

State court rules

46 states

589

Federal Rules of Procedure

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

13,097

State agency guidance (bulletins)

49 states, pilot

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)54,85346,53053
CFR (regulations)219,424218,92649
USC + CFR274,245265,456102

Plus the Federal Register (202,448 rules, final and proposed, 1994 to present), 3,820 executive orders, the US Constitution, the Federal Rules of Procedure, 21,686 agency guidance documents across 16 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.16M+ rules, 46 states), state constitutions (51 jurisdictions), state court rules (46 states), and state agency guidance / bulletins (49 states, pilot).

ALAlabama

Ala. Code

AKAlaska

Alaska Stat.

AZArizona

Ariz. Rev. Stat.

ARArkansas

Ark. Code

CACalifornia

Cal. [Code]

COColorado

Colo. Rev. Stat.

CTConnecticut

Conn. Gen. Stat.

DEDelaware

Del. Code

DCDistrict of Columbia

D.C. Code

FLFlorida

Fla. Stat.

GAGeorgia

Ga. Code

HIHawaii

Haw. Rev. Stat.

IDIdaho

Idaho Code

ILIllinois

Ill. Comp. Stat.

INIndiana

Ind. Code

IAIowa

Iowa Code

KSKansas

Kan. Stat.

KYKentucky

Ky. Rev. Stat.

LALouisiana

La. Rev. Stat.

MEMaine

Me. Rev. Stat.

MDMaryland

Md. Code

MAMassachusetts

Mass. Gen. Laws

MIMichigan

Mich. Comp. Laws

MNMinnesota

Minn. Stat.

MSMississippi

Miss. Code

MOMissouri

Mo. Rev. Stat.

MTMontana

Mont. Code

NENebraska

Neb. Rev. Stat.

NVNevada

Nev. Rev. Stat.

NHNew Hampshire

N.H. Rev. Stat.

NJNew Jersey

N.J. Stat.

NMNew Mexico

N.M. Stat.

NYNew York

N.Y. [Cons. Laws]

NCNorth Carolina

N.C. Gen. Stat.

NDNorth Dakota

N.D. Cent. Code

OHOhio

Ohio Rev. Code

OKOklahoma

Okla. Stat.

OROregon

Or. Rev. Stat.

PAPennsylvania

Pa. Cons. Stat.

PRPuerto Rico

P.R. Laws Ann.

RIRhode Island

R.I. Gen. Laws

SCSouth Carolina

S.C. Code

SDSouth Dakota

S.D. Codified Laws

TNTennessee

Tenn. Code

TXTexas

Tex. [Code]

UTUtah

Utah Code

VTVermont

Vt. Stat.

VAVirginia

Va. Code

WAWashington

Wash. Rev. Code

WVWest Virginia

W. Va. Code

WIWisconsin

Wis. Stat.

WYWyoming

Wyo. 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

Every layer of US primary law: the US Code, the Code of Federal Regulations, Federal Register agency rules, the statute codes of all 52 US jurisdictions (50 states, DC, and Puerto Rico), state regulations, state and federal constitutions, the Federal Rules of Procedure, and every Executive Order, Proclamation, and Presidential Memo since 2015. About 4M+ sections in one schema, each with a citation and a link to the official source.

Stop building legal data pipelines.