For AI agents: read the machine-readable documentation index at /llms.txt or the single-file full reference at /llms-full.txt.
Black Friday: $25 off forming an LLC in any stateLLC formation, through Dec. 1.See the deal →

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 needUse
City codes across many states, in the same search as state and federal lawCorpus, within the cities and counties its coverage list shows.
Any city on Municode, American Legal or eCode360, one city at a time, freeOpen Legal Codes. It fetches a code on first request, so a new city can take a while.
California cities and California building codesGoCodebook.
One city's own code, licensed by that cityThe eCode360 API, for General Code client cities.
State and federal statutes as a contracted feedOpenLaws.
Case lawCourtListener (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.

GoCodebook

  • Municipal codes for 540 California cities and counties, plus California building codes. source
  • 10 searches a day with no key, then $0.30 a search. REST API and an MCP server. source
  • The 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
  • 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.

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.

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.

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.