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 →

Zoning API · zoning code API

Zoning API: the map and the code behind every district

Zoning maps for Jackson, Los Angeles, Sacramento, San Diego, San Francisco, San Jose, Santa Clara and Seattle, as GeoJSON. Each district carries the citation of the code section that defines it, so a program can go from a parcel's zone to the law.

Calls that work

The zoning layer for a city

curl -H "Authorization: Bearer $CORPUS_API_KEY" \
  "https://corpuslaw.us/api/v1/gis/CA-SF"

The section a district cites (use its nodeId)

curl -H "Authorization: Bearer $CORPUS_API_KEY" \
  "https://corpuslaw.us/api/v1/node/{nodeId}"

Search the zoning code itself

curl -H "Authorization: Bearer $CORPUS_API_KEY" \
  "https://corpuslaw.us/api/v1/search?q=accessory+dwelling+unit&jurisdiction=CA-SF"

What to know

  • citationQuality says whether every district links to its section (linked), or only names it. Check it before you rely on the link.
  • A zoning layer call costs 5 credits; search and full text cost 1. A free key covers both.
  • The zoning chapters are searchable wherever a covered city's code includes them, map or no map.
  • Free to start: 250 searches a month with no key, 1,000 with a free key, then $0.005 a search from prepaid credits (down to $0.004). For steady volume, monthly plans start at $49 for 100,000 searches ($249 for 600,000).

Questions

Does it answer what I can build on a given address?

Not by itself. It gives you the district polygons and the code sections; matching an address to a parcel, and reading overlays and variances, is up to you or a local professional.

Which cities have maps?

The zoning page lists them, and a layer call for any other city returns an empty map with its status.