API reference · Jurisdictions
Who governs a point
Every jurisdiction whose boundary covers the point: the municipality, the regional district or county, the school district, the health authority and so on. Billed as one records request.
bearerAuthAuthorizationBearer <token>htd_test_ (sandbox, free, fictional towns) or htd_live_ (live, billed) key.
lat*numberlng*numberThe jurisdictions, broadest kind first.
application/json- response
query*The filters as the API read them, defaults included.
as_of*stringISO 8601 instant, UTC.
results*array<>next_cursor*|Pass as cursor for the next page; null on the last.
environment*stringsandbox answers carry fictional towns.
"sandbox""live"curl -X GET 'https://data.heytownhall.com/v1/jurisdictions/at?lat=0&lng=0'{ "query": { "property1": null, "property2": null }, "as_of": "string", "results": [ { "id": "string", "kind": "string", "name": "string", "country": "string", "region": "string", "area_kind": "string", "area_name": "string", "read_at": "string" } ], "next_cursor": "string", "environment": "sandbox"}List documents GET
The documents a government publishes on its own site, by kind (staff reports, budgets, plans, bylaws, notices), and whether their text is held. Billed as one records request a page. Filters: jurisdiction, region, country, kind, from, to, since.
Retrieve a jurisdiction GET
One jurisdiction. Billed as one records request.