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.
Corpus is one of the options, so every line about another provider links the page it came from, and each provider gets a line on where it is the better choice.
The short answer
| If you need | Use |
|---|---|
| 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.
See also: Municipal code API, searching one city, or every city in a state.
See also: Legal code databases compared, the publishers and free sites behind these APIs, and which AI crawlers each lets in.
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
- Text is fetched from the publisher on the first request and then cached. source
- When we searched a city it had not fetched yet (Batesville, Mississippi), the API replied that the crawl was in progress. source
- Free, with no signup and no API key, from TIDY, a property-management company. REST API, CLI and an MCP server. source
- Its documented search is a keyword search within one jurisdiction at a time. source
- The better choice for: Reaching a city Corpus does not cover: any code on those publishers, free and keyless.
GoCodebook
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
- American Legal’s Code Library is free to read in a browser, organized by state and then city. source
- eCode360 is free to browse; search across many codes is part of a $195-a-year Professional Subscription. source
- The eCode360 API is available to General Code client cities for their own code, licensed per municipality. source
- The 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
- Its coverage page lists no US city or county codes. source
- 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
- The 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
- 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
- The 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
- 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
- The open dataset, Open US Law, is licensed CC BY-NC 4.0, which rules out commercial use without a license. source
- The 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
- MCP server and API keys. Free plan of 40 lookups a day; paid plans run from $12 to $149 a month. source
- The 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
- Free account required. The default API limit is 5 requests a minute and 125 a day, higher with a paid membership. source
- Available inside Claude as an MCP connector since May 12, 2026. source
- The 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.
The full list, with counts per jurisdiction, is on the coverage page. To connect an assistant, see the MCP server or the 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
These are the pages each line above was read from. Read them rather than trusting our summary of them.
General Code: General Code and American Legal Publishing unite as ICC Code Solutions
Read by Corpus on November 1, 2026.
American Legal Publishing Code Library
Read by Corpus on November 1, 2026.
ICC Code Solutions: eCode360 subscription services
Read by Corpus on November 1, 2026.
ICC: eCode360 API (CodeConnect)
Read by Corpus on November 1, 2026.
Open Legal Codes
Read by Corpus on November 1, 2026.
Open Legal Codes API: Batesville, MS search (our request)
Read by Corpus on November 1, 2026.
Legal Data Hunter: coverage
Read by Corpus on November 22, 2026.
Legal Data Hunter: developer pricing
Read by Corpus on November 22, 2026.
GoCodebook for developers
Read by Corpus on November 22, 2026.
OpenLaws pricing
Read by Corpus on November 1, 2026.
Vaquill API coverage
Read by Corpus on November 1, 2026.
Vaquill
Read by Corpus on November 1, 2026.
Vaquill: Open US Law
Read by Corpus on November 1, 2026.
Legal Ops Depot law library
Read by Corpus on November 1, 2026.
Free Law Project: CourtListener is now available inside Claude
Read by Corpus on November 1, 2026.
Free Law Project membership
Read by Corpus on November 1, 2026.
Also compared: Where to look up US law: legal code databases compared.
Try it
Search federal, state and city law at once
Each result cites its section and links the source it was taken from.
Products, coverage and prices change. This page records what each source said on November 1, 2026, or on the date its source line gives; 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.
