> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

Comparison · checked November 1, 2026

# Which US law APIs cover city ordinances?

Most law APIs stop at state statutes, and the case-law APIs stop at court opinions. This page lists the ones that return the text of US city and county codes, how each does it, and what the others cover instead.

## The short answer

- City codes across many states, in the same search as state and federal law: Corpus, within the cities and counties its coverage list shows.
- Any city on Municode, American Legal or eCode360, one city at a time, free: Open Legal Codes. It fetches a code on first request, so a new city can take a while.
- California cities and California building codes: GoCodebook.
- One city's own code, licensed by that city: The eCode360 API, for General Code client cities.
- State and federal statutes as a contracted feed: OpenLaws.
- Case law: CourtListener (free), or Legal Data Hunter for case law and law outside the US.
- See also, Law search API: the Corpus API: a call that works with no key, and the price. https://corpuslaw.us/law-api
- See also, Municipal code API: searching one city, or every city in a state. https://corpuslaw.us/law-api/municipal-code
- See also, Legal code databases compared: the publishers and free sites behind these APIs, and which AI crawlers each lets in. https://corpuslaw.us/compare/law-databases

## APIs that return US city and county codes

Few APIs return the text of US city ordinances. These do, each in a different way: on demand from the publisher, for one state only, or for one licensed city at a time.

### Open Legal Codes

- Says it covers 37,000+ jurisdictions across Municode, American Legal, eCode360, the eCFR and California’s legislature site. ([source](https://openlegalcodes.org/))
- Text is fetched from the publisher on the first request and then cached. ([source](https://openlegalcodes.org/))
- When we searched a city it had not fetched yet (Batesville, Mississippi), the API replied that the crawl was in progress. ([source](https://openlegalcodes.org/api/v1/jurisdictions/ms-batesville/search?q=chickens))
- Free, with no signup and no API key, from TIDY, a property-management company. REST API, CLI and an MCP server. ([source](https://openlegalcodes.org/))
- Its documented search is a keyword search within one jurisdiction at a time. ([source](https://openlegalcodes.org/))
- Better choice for: Reaching a city Corpus does not cover: any code on those publishers, free and keyless.

### GoCodebook

- Municipal codes for 540 California cities and counties, plus California building codes. ([source](https://gocodebook.com/developers))
- 10 searches a day with no key, then $0.30 a search. REST API and an MCP server. ([source](https://gocodebook.com/developers))
- Better choice for: California cities Corpus does not cover yet.

### ICC Code Solutions (American Legal Code Library, eCode360)

- Since July 2026 General Code (eCode360) and American Legal Publishing operate together as ICC Code Solutions, part of the International Code Council. Its announcement says more than 7,000 communities. ([source](https://www.generalcode.com/blog/general-code-and-american-legal-publishing-unite-as-icc-code-solutions/))
- American Legal’s Code Library is free to read in a browser, organized by state and then city. ([source](https://codelibrary.amlegal.com/))
- eCode360 is free to browse; search across many codes is part of a $195-a-year Professional Subscription. ([source](https://www.icccodesolutions.org/subscription-services/))
- The eCode360 API is available to General Code client cities for their own code, licensed per municipality. ([source](https://solutions.iccsafe.org/codeconnect))
- Better choice for: The official copy of any client city’s code, with archived versions and, on eCode360, a paid search across many codes.

## Law APIs without US city codes

These are good law APIs for other things: state and federal statutes, case law, or law outside the US. None of their pages we read lists US city or county codes.

### Legal Data Hunter

- US federal law and case law (21.6 million US decisions), plus law from 238 countries. Its coverage page lists statutes for 39 states and DC and none for Arkansas, Colorado, Idaho, Illinois, Michigan, Mississippi, New Jersey, Rhode Island or Wisconsin. ([source](https://legaldatahunter.com/coverage))
- Its coverage page lists no US city or county codes. ([source](https://legaldatahunter.com/coverage))
- Free key with 20 searches a day. Developer plans of $69 a month for 100,000 searches and $349 a month for 600,000, billed annually. MCP server with OAuth. ([source](https://legaldatahunter.com/pricing/developers))
- Better choice for: Case law and law outside the US, through one API with a large monthly allowance.

### OpenLaws

- Statutes and regulations for 53 US jurisdictions: federal, the states, DC and Puerto Rico. Its pricing page does not mention city codes. ([source](https://openlaws.us/pricing))
- Law Data API from $2,500 a month, with no free tier; an evaluation key is available on request. The pricing page does not mention an MCP server. ([source](https://openlaws.us/pricing))
- Better choice for: A contracted production feed of state and federal statutes, with bulk exports.

### Vaquill (API, MCP server and the Open US Law dataset)

- Federal law plus statutes and regulations for 56 US jurisdictions. Its coverage page lists no city codes. ([source](https://www.vaquill.ai/docs/api-guide/coverage.md))
- API key or OAuth. Plans are sold in API credits (20,000 or 200,000 a month); dollar prices are shown after sign-up. ([source](https://www.vaquill.ai/))
- The open dataset, Open US Law, is licensed CC BY-NC 4.0, which rules out commercial use without a license. ([source](https://vaquill.ai/open-us-law))
- Better choice for: Statutes and regulations for every state and territory through one API or MCP server.

### Legal Ops Depot

- Court opinions, statutes and court rules. Its library page says city and county codes are not included. ([source](https://legalopsdepot.com/law-library))
- MCP server and API keys. Free plan of 40 lookups a day; paid plans run from $12 to $149 a month. ([source](https://legalopsdepot.com/law-library))
- Better choice for: State statutes and case law in one MCP server, with a free daily allowance.

### CourtListener (Free Law Project)

- Case law: millions of federal and state court decisions, plus PACER data, oral argument transcripts and judge data. ([source](https://free.law/2026/05/12/courtlistener-is-now-available-inside-claude/))
- Free account required. The default API limit is 5 requests a minute and 125 a day, higher with a paid membership. ([source](https://free.law/membership/))
- Available inside Claude as an MCP connector since May 12, 2026. ([source](https://free.law/2026/05/12/courtlistener-is-now-available-inside-claude/))
- Better choice for: Case law. Corpus has none.

## Corpus

- 3,180,617 provisions: federal law (the US Code and the CFR), statutes for 50 states and DC and the codes of 440 cities.
- Partial for now: Georgia, Hawaii and Tennessee.
- Text is collected ahead of time and indexed, so one search covers every listed jurisdiction at once, by meaning or by keyword.
- Free to search on the website. The API and MCP server take 250 searches a month with no key and 1,000 with a free key, then $0.005 a search. For steady volume, monthly plans start at $49 for 100,000 searches ($249 for 600,000).
- Each section page names the source its text was taken from, and links it where one exists.
- Coverage list: https://corpuslaw.us/verify · MCP server: https://corpuslaw.us/docs/mcp · API: https://corpuslaw.us/docs/api

Where Corpus is the weaker choice:

- No case law. Use CourtListener, or a professional platform.
- Corpus is not an official publisher. For a filing or a court, rely on the publisher’s copy each section links to.
- Far fewer cities than the code publishers host, which serve thousands of governments.
- No annotations, case notes or citator such as KeyCite or Shepard’s.

## Check it yourself

- [General Code: General Code and American Legal Publishing unite as ICC Code Solutions](https://www.generalcode.com/blog/general-code-and-american-legal-publishing-unite-as-icc-code-solutions/)
- [American Legal Publishing Code Library](https://codelibrary.amlegal.com/)
- [ICC Code Solutions: eCode360 subscription services](https://www.icccodesolutions.org/subscription-services/)
- [ICC: eCode360 API (CodeConnect)](https://solutions.iccsafe.org/codeconnect)
- [Open Legal Codes](https://openlegalcodes.org/)
- [Open Legal Codes API: Batesville, MS search (our request)](https://openlegalcodes.org/api/v1/jurisdictions/ms-batesville/search?q=chickens)
- [Legal Data Hunter: coverage](https://legaldatahunter.com/coverage) (read November 22, 2026)
- [Legal Data Hunter: developer pricing](https://legaldatahunter.com/pricing/developers) (read November 22, 2026)
- [GoCodebook for developers](https://gocodebook.com/developers) (read November 22, 2026)
- [OpenLaws pricing](https://openlaws.us/pricing)
- [Vaquill API coverage](https://www.vaquill.ai/docs/api-guide/coverage.md)
- [Vaquill](https://www.vaquill.ai/)
- [Vaquill: Open US Law](https://vaquill.ai/open-us-law)
- [Legal Ops Depot law library](https://legalopsdepot.com/law-library)
- [Free Law Project: CourtListener is now available inside Claude](https://free.law/2026/05/12/courtlistener-is-now-available-inside-claude/)
- [Free Law Project membership](https://free.law/membership/)

Every page above was read by Corpus on November 1, 2026, unless its line gives another date. Products and prices change; check the source before relying on a line. Corpus appears in this comparison and is not affiliated with any other provider named. Corpus is not a law firm and does not provide legal advice.
