- see which places we hold and walk through a code’s table of contents,
- search the text of every code at once, or of one place, state or kind of code,
- fetch sections with their text, the state and federal law they cite, and the terms they define.
What we hold
Figures as of 7 December 2026.Where it comes from
Every section comes from a public copy that anyone can read for free. We do not copy notes, annotations or cross-references written by a publisher, only the law itself.
A place can appear under two sources, for example its charter from the state and its code from its own website, so the places column adds up to more than 1,402.
What kinds of law
Places held, by type: 362 cities, 340 towns, 264 municipalities, 123 boroughs, 118 villages, 102 townships, 80 counties, 5 charter townships, 3 districts, 3 agencies and 2 authorities.
The largest single places include New York City (21,403 sections), Baltimore (6,584), Anchorage (3,650), Jackson County, Missouri (3,551) and King County, Washington (3,001).
Coverage by state (37 states)
Coverage by state (37 states)
GET /us/local-law/places, which is free.
Things to know
- Check before you quote. A section does not carry a “current through” date, so compare it with the official copy before you rely on it.
- Source links. Each section links to the public page it came from when that page is on a government website. When the only copy is on a code publisher’s website, the link is left empty.
- Text as printed. Text, headings and amendment history are served as the place prints them.
- Removed sections. When a code no longer carries a section (it was repealed or renumbered), we keep it and mark it with the date we saw it go.
The three endpoints
Local law is not in the MCP server yet.
All requests take
Authorization: Bearer vq_key_... and an optional Idempotency-Key header.
Repeating a request with the same key replays the first successful answer for 24 hours without charging again.
How things are named
Every place, code and section has a short, stable, readable id.List places and codes
GET /us/local-law/places answers three questions, depending on what you pass:
- Which places do you hold? Pass a
state, or the start of a name inq. Free. - Which codes does this place have? Pass a
place. Free. - What is in this code? Pass a
codeto get its top level (titles or chapters), then add each level you choose topathto go one step deeper, until you reach its sections. 1 credit per level.
Example: list places in a state
Example: list places in a state
Example: list the codes of one place
Example: list the codes of one place
levels (each with a name and sectionCount) or, at the bottom, sections (each with id, number and heading).
Search
POST /us/local-law/search finds sections by their words, the way a search box does.
You can search every place at once, or narrow to a state, a place, a type of place, a kind of code or one code.
Results are ranked by how well the words match.
Three ways to use it:
- Find the rule. Search
short-term rentalin one place to find the sections that apply there. - Compare places. Search a topic across a state with
groupBy: "place"to get the best section from each place, a quick survey of how different places handle it. - Follow changes. Pass
changedSincewith no query to list sections added, changed or removed since a date.
Example: search every place for “noise”
Example: search every place for “noise”
totalHits was 990 when it ran on 6 December 2026 and grows as places load.
Matching words in excerpt are wrapped in <b> tags.Section numbers
A query that looks like a section number, such as§ 1-101, Sec. 50-75 or C1-1, puts the section with that number first and marks it exactMatch: true.
Add place or code to pin it to one code, because many codes use the same numbers.
Changes
WithchangedSince and no query, the search lists sections first seen, changed or removed on or after that date, oldest first.
Each row says what happened (change: added, changed or withdrawn) and when (changedAt).
With a query as well, changedSince keeps only the hits added or changed since the date.
Removed sections never appear as hits in a word search.
Billing
A page of results costs 4 credits.includeBody adds 6 credits for each row returned with its full text.
A filtered search that finds nothing is refunded, and notes says so.
Get sections
GET /us/local-law/sections fetches one to 20 sections by id.
Each comes with its full text, where it sits in the code, when we first saw it and last saw it change, and two kinds of links read from its text:
- The state and federal law it cites. When a section cites a state statute, a state regulation, the U.S. Code or the CFR, we link the citation to that section, which you can then fetch from the statutes API.
- The terms it defines, and the definitions that apply to it. When a chapter defines “aircraft”, every section of that chapter that uses the word comes with the definition.
Example: fetch one section
Example: fetch one section
levels object, and history where the code prints one.Fields of a section
A field that does not apply is left out:
history when the code prints none, withdrawnAt on a section still in force.
Removed sections are still served here, with withdrawnAt.
An id we do not hold is listed in notFound and is not charged.
Statute link and defined term fields in detail
Statute link and defined term fields in detail
Each entry of
statuteLinks has:text: the citation as printed,citation: its normal form,sectionId: the statute section it links to (pass it toGET /us/statutes/sections),kind:state_statute,state_regulation,state_constitution,state_rules,uscorcfr,jurisdiction: the two-letter state (such asMD), orUSfor federal law,matchLevel:exactfor the cited section,containerwhen the citation names a chapter or article andsectionIdis its first section,multiplewhen it names several sections andsectionIdis the first,pinpoint: when the citation names a subsection,startandend: where the citation sits inbody, as character positions.
definedTerms has the term, its definition as printed, the scope the section declares (such as chapter or code) with its scopeValue, and start and end.Credits
Every response reports
creditsConsumed.
If the local-law database is unavailable or the query times out, you are not charged and can retry.
