Skip to main content

LocalCode API

LocalCode provides structured access to municipal code and ordinance context with a provenance-first model.
Developer Preview: The LocalCode API is currently available to design partners. These docs describe the draft v1 API contract and may evolve before general availability.
Our core principle is simple:
We do not just show the code.
We show where the law comes from.

Who this is for

  • Product and evaluation buyers assessing trust, coverage, and integration fit
  • Platform and API engineers building retrieval and monitoring workflows
  • Data partners and legal-tech teams integrating provenance-aware legal data

Start here

What v1 Covers

The initial API scope is read-only and focused on:
  • Jurisdictions
  • Code sections
  • Ordinances
  • Legislative-chain relationships
  • Source links for code sections
  • Code-section-centric search

Provenance-First Fields

Where applicable, responses expose provenance metadata as separate fields:
  • source_verification_status
  • analysis_confidence
  • official_source_url
  • source_reference
  • relationship_type
source_verification_status answers whether a source-backed claim is verified. analysis_confidence expresses model or parser confidence in extracted or derived relationships.

Authentication

All API requests use bearer authentication: Authorization: Bearer {LOCALCODE_API_KEY}

Base URL

https://api.localcode.ai/v1 Examples in these docs are illustrative and do not guarantee production data coverage for every jurisdiction or resource. Endpoint access, data scope, and rollout availability are controlled by API key permissions and account enablement.