Skip to main content
Local law is the law a city, county, town or other local body makes for itself. It covers everyday questions that state and federal law leave to local government: noise limits, short-term rentals, zoning, parking, animals, building permits, business licences and many more. We collect it from public sources, keep each section with its place, code and outline, and let you:
  • 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.
Coverage is being loaded now and grows every day.

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).
These figures move every day. For the current list, call 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 in q. Free.
  • Which codes does this place have? Pass a place. Free.
  • What is in this code? Pass a code to get its top level (titles or chapters), then add each level you choose to path to go one step deeper, until you reach its sections. 1 credit per level.
When you walk a code, each answer carries either levels (each with a name and sectionCount) or, at the bottom, sections (each with id, number and heading). 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 rental in 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 changedSince with no query to list sections added, changed or removed since a date.
The example shows one of its two rows. 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

With changedSince 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.
The example is shortened. The full answer also carries a 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.

Credits

Every response reports creditsConsumed. If the local-law database is unavailable or the query times out, you are not charged and can retry.
Last modified on December 6, 2026