API reference · Jurisdictions
List jurisdictions
Every public body held: municipalities, regional districts and counties, school districts, First Nations, special districts. Each with its kind, parent, population, time zone, register ids and whether its boundary is held. Billed as one records request a page. Filters: region, country, kind, parent, name.
bearerAuthAuthorizationBearer <token>htd_test_ (sandbox, free, fictional towns) or htd_live_ (live, billed) key.
region?stringA two-letter province or state code.
country?stringCA or US.
kind?stringmunicipality, regional_district, school_district, first_nation, improvement_district, library, …
^[a-z][a-z0-9_]{0,60}$parent?stringThe regional district or county a jurisdiction sits in.
^[a-z0-9][a-z0-9-]{0,63}$name?stringWords in the name.
2 <= length <= 100limit?integerResults a page, 1 to 100. Default 25.
cursor?stringnext_cursor from the previous page.
A page.
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'{ "query": { "property1": null, "property2": null }, "as_of": "string", "results": [ { "id": "string", "kind": "string", "name": "string", "name_fr": "string", "country": "string", "region": "string", "parent_id": "string", "population": 0, "time_zone": "string", "legal_form": "string", "website": "string", "register_ids": { "property1": [ "string" ], "property2": [ "string" ] }, "has_boundary": true, "ingest_profile": "string", "dissolved_at": "string", "source_url": "string", "read_at": "string" } ], "next_cursor": "string", "environment": "sandbox"}Retrieve a jurisdiction GET
One jurisdiction. Billed as one records request.
List vendor tenants GET
Each meeting vendor's tenant matched to a government and verified by a read of it: the vendor census by tenant. Billed as one records request a page. Filters: jurisdiction, region, country, kind, since.