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).
GET /v1/rules?jurisdiction=ca-san-diego-city&rule_type=str&topic= (rules plus a coverage object)GET /v1/jurisdictions (ids, names and coverage for each jurisdiction)GET /v1/changes?jurisdiction=&rule_type=&since=YYYY-MM-DD (rule-change feed)POST /v1/alerts/subscribe {"email","jurisdiction","rule_type","consent":true}GET|POST /v1/alerts/unsubscribe?token=GET /v1/alerts/preview (sample alert email; nothing is sent)POST /mcp MCP (JSON-RPC): tool str_rules_lookupGET /v1/license-transfers?state=CA&industry=contractor&close_date=YYYY-MM-DD (license desk checklist; close_date optional)POST /mcp tool license_transfer_checklistGET /v1/rules?jurisdiction=ia-linn-county&rule_type=large_project (Large-project rule watch: data centers, solar, wind, pipelines; state ids nd, sd, mt, wy, ne, ia, mn, id, ks plus county and city ids; see /large-projects)GET /openapi.jsonEvery /v1/rules response has coverage.status:
covered: cited rules from the official site (.gov, or a labeled official city or county site) are listed.no_program_found: we found no city STR program on the official site; any cited notes (for example tax or business-license rules) are listed.not_covered: we have no data yet. An empty list does not mean there are no rules.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.
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.