Local Rules API

API

Free, keyless and read-only. All responses are JSON and include a disclaimer. Each rule has a citation (official source URL: .gov, or an official city or county site marked in publisher as "Official city website" or "Official county website"; section, retrieved_on and last_checked_on dates). Machine-readable spec: /openapi.json (OpenAPI 3.1).

Informational only, not legal advice. Do not rely on this data. Always verify with the city or county before acting. By using the API you agree to the Terms, including section 9 (API use and attribution).

Coverage

Every /v1/rules response has coverage.status:

An unknown jurisdiction or rule_type returns 404 with error: unknown_jurisdiction or unknown_rule_type. San Diego County ids include ca-san-diego-city, ca-carlsbad, ca-encinitas, ca-escondido, ca-vista, ca-solana-beach, ca-national-city, ca-lemon-grove, ca-imperial-beach, ca-san-marcos, ca-santee, ca-el-cajon, ca-la-mesa; see /v1/jurisdictions for the full list and status.

Fair use

No API key is needed. Responses are cached at the edge for a few minutes; please cache on your side too. Excessive request rates may get HTTP 429. Attribution: "Data: Local Rules API by Diamond Ray Inc", with a link to the official source.