> ## Documentation Index
> Fetch the complete documentation index at: https://vaquill.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# US local law

> City and county codes, charters and local rules: what we hold, where it comes from, and how to look it up

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.

| | Held |
| - | -: |
| Places (cities, counties, towns and other local bodies) | 1,402 |
| Codes, charters and rule sets | 1,425 |
| Sections of law | 800,372 |
| States | 37 |
| Citations to state and federal law, linked to the statute section they name | over 130,000 |
| Defined terms read from the text | 338,351 |

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

| Source | Places | Sections | States |
| - | -: | -: | -: |
| The public websites where cities and counties publish their codes through a code publisher | 770 | 666,929 | 30 |
| Tennessee's state-funded municipal and county advisory services, which publish city codes and county private acts | 190 | 64,457 | 1 |
| State publications of town and city charters (Virginia, Maryland and Delaware) | 430 | 21,258 | 3 |
| The city's, county's or agency's own website | 29 | 47,728 | 23 |

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

| Kind | What it is | Codes | Sections |
| - | - | -: | -: |
| `code` | A code of ordinances, the place's main body of local law | 941 | 762,506 |
| `charter` | The charter that sets up the place's government | 432 | 22,327 |
| `rules` | Rules adopted by a city or county agency, or by a local air district | 10 | 8,393 |
| `local_law` | Numbered local laws, as New York City enacts them | 1 | 3,929 |
| `zoning` | Zoning or unified development ordinances | 5 | 1,766 |
| `private_act` | Acts of the state legislature that apply to one county (Tennessee) | 36 | 1,451 |

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

> [accordion] Coverage by state (37 states)
>
> | State | Places | Codes | Sections |
> | - | -: | -: | -: |
> | Alaska | 5 | 5 | 7,139 |
> | Alabama | 3 | 3 | 1,612 |
> | Arkansas | 1 | 1 | 330 |
> | California | 25 | 25 | 41,610 |
> | Connecticut | 19 | 19 | 9,547 |
> | Delaware | 48 | 51 | 4,063 |
> | Iowa | 1 | 1 | 82 |
> | Idaho | 1 | 1 | 508 |
> | Illinois | 5 | 5 | 5,971 |
> | Indiana | 2 | 2 | 2,236 |
> | Louisiana | 1 | 1 | 1,231 |
> | Massachusetts | 34 | 34 | 20,624 |
> | Maryland | 160 | 173 | 32,059 |
> | Maine | 11 | 11 | 10,716 |
> | Michigan | 15 | 15 | 10,714 |
> | Minnesota | 2 | 2 | 744 |
> | Missouri | 26 | 26 | 26,432 |
> | North Carolina | 2 | 2 | 215 |
> | North Dakota | 2 | 2 | 1,534 |
> | New Hampshire | 3 | 3 | 2,067 |
> | New Jersey | 98 | 98 | 119,643 |
> | New Mexico | 4 | 4 | 3,082 |
> | New York | 168 | 171 | 138,485 |
> | Ohio | 1 | 1 | 392 |
> | Oklahoma | 2 | 2 | 1,192 |
> | Oregon | 12 | 12 | 11,874 |
> | Pennsylvania | 154 | 154 | 121,700 |
> | Rhode Island | 5 | 5 | 6,277 |
> | South Dakota | 1 | 1 | 1,182 |
> | Tennessee | 193 | 193 | 65,391 |
> | Texas | 73 | 73 | 53,577 |
> | Virginia | 236 | 239 | 13,882 |
> | Vermont | 2 | 2 | 1,507 |
> | Washington | 32 | 33 | 45,360 |
> | Wisconsin | 53 | 53 | 36,987 |
> | West Virginia | 1 | 1 | 6 |
> | Wyoming | 1 | 1 | 401 |

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

| Endpoint | What it does | Credits |
| - | - | -: |
| `GET /us/local-law/places` | Lists places and their codes, and walks a code's table of contents | 0, or 1 per table-of-contents level |
| `POST /us/local-law/search` | Searches the text, or lists sections that changed since a date | 4 per page, +6 per row with full text |
| `GET /us/local-law/sections` | Fetches 1 to 20 sections with their text, outline, dates and links | 6 per section, 2 without the text |

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.

| Id | Example | What it names |
| - | - | - |
| Place id | `md/baltimore` | The state, then the place |
| Code id | `MUNI_MD_BALTIMORE_CODE` | One code, charter or rule set of a place |
| Section id | `MUNI_CA_AMADORCOUNTY_CODE_12.44.140` | The code id, then the section number as printed |

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

| Parameter | Example | Meaning |
| - | - | - |
| `state` | `md` | `md`, `MD` or `Maryland` |
| `q` | `balt` | Start of a place name, 1 to 100 characters |
| `place` | `md/baltimore` | A place id or exact name |
| `code` | `MUNI_MD_BALTIMORE_CODE` | A code id |
| `path` | `Title 1` | The outline levels already walked, in order. Repeat the parameter |
| `limit` | `50` | Rows per page, 1 to 200 (default 50) |
| `offset` | `0` | Rows to skip, at most 10000 |

> [accordion] Example: list places in a state
>
> ```bash theme={"theme":"github-light"}
> curl "https://api.vaquill.ai/api/v1/us/local-law/places?state=md&limit=3" \
>   -H "Authorization: Bearer vq_key_..."
> ```
>
> ```json theme={"theme":"github-light"}
> {
>   "depth": "places",
>   "places": [
>     { "id": "md/accident", "name": "Accident", "type": "municipality", "state": "md", "codeCount": 1, "sectionCount": 84, "kinds": ["charter"] },
>     { "id": "md/alleganycounty", "name": "Allegany County", "type": "county", "state": "md", "codeCount": 1, "sectionCount": 671, "kinds": ["code"] },
>     { "id": "md/annapolis", "name": "Annapolis", "type": "city", "state": "md", "codeCount": 1, "sectionCount": 30, "kinds": ["charter"] }
>   ],
>   "total": 158,
>   "limit": 3,
>   "offset": 0,
>   "notes": [],
>   "creditsConsumed": 0
> }
> ```

> [accordion] Example: list the codes of one place
>
> ```bash theme={"theme":"github-light"}
> curl "https://api.vaquill.ai/api/v1/us/local-law/places?place=md/baltimore" \
>   -H "Authorization: Bearer vq_key_..."
> ```
>
> ```json theme={"theme":"github-light"}
> {
>   "depth": "codes",
>   "codes": [
>     { "id": "MUNI_MD_BALTIMORE_CHARTER", "name": "Baltimore City Charter", "kind": "charter", "placeId": "md/baltimore", "sectionCount": 317 },
>     { "id": "MUNI_MD_BALTIMORE_COBRA", "name": "Code of Baltimore City Regulations (COBRA)", "kind": "rules", "placeId": "md/baltimore", "sectionCount": 234 },
>     { "id": "MUNI_MD_BALTIMORE_CODE", "name": "Baltimore City Code", "kind": "code", "placeId": "md/baltimore", "sectionCount": 6033 }
>   ],
>   "total": 3,
>   "creditsConsumed": 0
> }
> ```

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`).

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

| Field | Example | Meaning |
| - | - | - |
| `query` | `short-term rental` | Words, a phrase, a Boolean expression or a section number, up to 500 characters. Optional only when `changedSince` is set |
| `matchType` | `all` | `any` word, `all` words (default), the exact `phrase`, or a `boolean` expression |
| `state` | `md` | `md`, `MD` or `Maryland`. One value or a list |
| `place` | `md/baltimore` | A place id or exact name. A name that matches several places returns a `422` listing them |
| `placeType` | `city` | `city`, `county`, `town`, `village`, `borough`, `township`, `charter_township`, `parish`, `municipality`, `district`, `authority` or `agency`. One value or a list |
| `kind` | `zoning` | `code`, `charter`, `local_law`, `zoning`, `rules` or `private_act`. One value or a list |
| `code` | `MUNI_MD_BALTIMORE_CODE` | A code id from `/places`. One value or a list |
| `groupBy` | `place` | `section` (default), or `place` for the best section per place |
| `changedSince` | `2026-11-01` | A date. See [Changes](#changes) |
| `includeBody` | `false` | Full text on each row, priced per row |
| `excerptChars` | `300` | Excerpt length, 100 to 600. A value out of range is adjusted and said so in `notes` |
| `limit` | `10` | Rows per page, 1 to 50 (default 10) |
| `offset` | `0` | Rows to skip, at most 10000 |

> [accordion] Example: search every place for “noise”
>
> ```bash theme={"theme":"github-light"}
> curl -X POST https://api.vaquill.ai/api/v1/us/local-law/search \
>   -H "Authorization: Bearer vq_key_..." \
>   -H "Content-Type: application/json" \
>   -d '{"query": "noise", "limit": 2, "excerptChars": 200}'
> ```
>
> ```json theme={"theme":"github-light"}
> {
>   "results": [
>     {
>       "id": "MUNI_AL_ALBERTVILLE_CODE_6-131",
>       "citation": "City of Albertville Code § 6-131",
>       "heading": "Noise.",
>       "number": "6-131",
>       "kind": "code",
>       "place": { "id": "al/albertville", "name": "City of Albertville", "type": "city", "state": "al" },
>       "code": { "id": "MUNI_AL_ALBERTVILLE_CODE", "name": "City of Albertville Code" },
>       "outline": ["Code of Ordinances", "Buildings and Construction", "Towers and Telecommunications Facilities"],
>       "excerpt": "No equipment shall be operated at towers and telecommunications facilities so as to produce <b>noise</b> in excess of ...",
>       "score": 18.27,
>       "exactMatch": false,
>       "sourceUrl": null
>     }
>   ],
>   "count": 2,
>   "totalHits": 990,
>   "limit": 2,
>   "offset": 0,
>   "rankingMode": "keyword",
>   "notes": [],
>   "creditsConsumed": 4
> }
> ```
>
> 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.

| Parameter | Example | Meaning |
| - | - | - |
| `ids` | `MUNI_CA_AMADORCOUNTY_CODE_12.44.140` | Required. 1 to 20 section ids, repeated or comma separated |
| `fields` | `full` | `full` (default), or `metadata` to leave out the text at a lower price |

> [accordion] Example: fetch one section
>
> ```bash theme={"theme":"github-light"}
> curl "https://api.vaquill.ai/api/v1/us/local-law/sections?ids=MUNI_CA_AMADORCOUNTY_CODE_12.44.140" \
>   -H "Authorization: Bearer vq_key_..."
> ```
>
> ```json theme={"theme":"github-light"}
> {
>   "results": [
>     {
>       "id": "MUNI_CA_AMADORCOUNTY_CODE_12.44.140",
>       "citation": "Amador County Code § 12.44.140",
>       "heading": "Noise.",
>       "number": "12.44.140",
>       "kind": "code",
>       "place": { "id": "ca/amadorcounty", "name": "Amador County", "type": "county", "state": "ca" },
>       "code": { "id": "MUNI_CA_AMADORCOUNTY_CODE", "name": "Amador County Code" },
>       "outline": ["County Code", "Roads, Parks, and Other Public Places", "WESTOVER FIELD RULES AND REGULATIONS"],
>       "sourceUrl": null,
>       "body": "No person shall operate any aircraft in flight or on the ground in such manner as to cause unnecessary noise ...",
>       "firstSeenAt": "2026-12-06T08:02:33.532919Z",
>       "updatedAt": "2026-12-06T08:02:33.532919Z",
>       "statuteLinks": [],
>       "definedTerms": [],
>       "definitionsInScope": [
>         {
>           "term": "Aircraft",
>           "definition": "means a device that is used, or intended to be used, for flight in the air. ...",
>           "definedIn": "MUNI_CA_AMADORCOUNTY_CODE_12.44.040",
>           "scope": "chapter",
>           "scopeValue": "12.44"
>         }
>       ]
>     }
>   ],
>   "count": 1,
>   "notFound": [],
>   "notes": [],
>   "creditsConsumed": 6
> }
> ```
>
> The example is shortened.
> The full answer also carries a `levels` object, and `history` where the code prints one.

### Fields of a section

| Field | Meaning |
| - | - |
| `statuteLinks` | The state and federal law the section cites, each linked to a statute section id. Missing until the section's current text has been read for citations. An empty list means none was found |
| `definedTerms` | Terms the section defines. Missing until the text has been read |
| `definitionsInScope` | Terms defined elsewhere in the code that apply to this section and that its text uses. Returned with `fields=full` only |
| `history` | The amendment history the code prints, as printed and as separate amendments |
| `firstSeenAt`, `updatedAt` | When we first held the section and when its record last changed |
| `withdrawnAt` | Set on a section the code no longer carries |

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.

> [accordion] 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 to `GET /us/statutes/sections`),
> * `kind`: `state_statute`, `state_regulation`, `state_constitution`, `state_rules`, `usc` or `cfr`,
> * `jurisdiction`: the two-letter state (such as `MD`), or `US` for federal law,
> * `matchLevel`: `exact` for the cited section, `container` when the citation names a chapter or article and `sectionId` is its first section, `multiple` when it names several sections and `sectionId` is the first,
> * `pinpoint`: when the citation names a subsection,
> * `start` and `end`: where the citation sits in `body`, as character positions.
>
> Only citations that link to a section we hold are listed.
>
> Each entry of `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

| Call | Credits |
| - | -: |
| `GET /us/local-law/places` with `state`, `q` or `place` | 0 |
| `GET /us/local-law/places` with `code` (one table-of-contents level) | 1 |
| `POST /us/local-law/search`, per page | 4 |
| `POST /us/local-law/search` with `includeBody`, per row returned with text | +6 |
| `GET /us/local-law/sections`, per section with text | 6 |
| `GET /us/local-law/sections` with `fields=metadata`, per section | 2 |

Every response reports `creditsConsumed`.
If the local-law database is unavailable or the query times out, you are not charged and can retry.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.