# ZoningVerdict Rules API

> ZoningVerdict Rules API is a paid API for AI agents from zoningverdict.com, paid per call via x402, $0.01/call, status healthy (last checked 2026-10-14).

Returns independently reviewed, cited zoning ordinance rules for a given municipality, optionally filtered by district code and topic category.

## Facts

- Endpoint: GET https://zoningverdict.com/api/v1/rules?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: healthy
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/zoningverdict-rules-api-cf0996f6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3hHI2xEalCKCc2F71z7SU

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability zoningverdict-rules-api-cf0996f6
```

Example prompt: What does the Rochester Hills zoning ordinance actually say about ADUs in the R-1 district? I want the exact citation and source URL, not just a summary.

## When to prefer this

Use this endpoint when you need the actual text of a zoning ordinance with an authoritative citation and source URL, not just a database record or summary. Ideal when you need verified, human-reviewed interpretations of what a rule says (not just what's on file), with traceability. Best for the 64 covered municipalities across 6 states; check coverage before relying on it for other jurisdictions.

## Known failure modes

- Municipality slug not in the 64-municipality coverage set — returns empty or 404
- District code not found within the municipality — returns empty rules array
- Topic enum value misspelled or not matched — no results returned
- Municipality coverage gap — some districts or topics may not yet be reviewed
- Rate limit or payment failure via x402 — call not processed

## How this service works

Reviewed zoning rules for one published municipality, optionally narrowed by district and topic. Coverage: 64 municipalities in 6 states. Returns body_md, ordinance citation, source_url, pack_version, and last_reviewed_at. Positioning: Records tell you what's on file; ZoningVerdict tells you what the ordinance actually says, independently verified, with the citation. Responses include source citations and last-reviewed dates. Price: $0.01/call.

## Output

Returns a JSON object with a 'meta' block (municipality name, last_reviewed_at, pack_version, disclaimer) and a 'rules' array where each item contains district_code, topic, body_md (full Markdown text of the rule), citation (ordinance section reference), and source_url pointing to the original document — all independently verified by ZoningVerdict.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "municipality"
     ],
     "properties": {
      "topic": {
       "enum": [
        "permitted_uses",
        "special_land_uses",
        "setbacks",
        "height",
        "lot_coverage",
        "lot_size",
        "parking",
        "adu",
        "accessory_structures",
        "fences",
        "signs",
        "home_occupation",
        "variance_process"
       ],
       "type": "string",
       "description": "Optional ZoningVerdict topic key."
      },
      "district": {
       "type": "string",
       "description": "Optional zoning district code within the municipality."
      },
      "municipality": {
       "type": "string",
       "description": "Published municipality slug, for example rochester-hills or rockwall-tx."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "meta",
      "rules"
     ],
     "properties": {
      "meta": {
       "type": "object",
       "required": [
        "municipality",
        "last_reviewed_at"
       ],
       "properties": {
        "disclaimer": {
         "type": "string"
        },
        "positioning": {
         "type": "string"
        },
        "municipality": {
         "type": "string"
        },
        "pack_version": {
         "type": [
          "number",
          "null"
         ]
        },
        "last_reviewed_at": {
         "type": [
          "string",
          "null"
         ]
        }
       }
      },
      "rules": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "district_code",
         "topic",
         "body_md",
         "citation",
         "source_url"
        ],
        "properties": {
         "topic": {
          "enum": [
           "permitted_uses",
           "special_land_uses",
           "setbac
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/zoningverdict-rules-api-cf0996f6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from zoningverdict.com](https://www.zero.xyz/host/zoningverdict.com/llms.txt)
