API reference · Jurisdictions
Retrieve a jurisdiction
One jurisdiction. Billed as one records request.
bearerAuthAuthorizationBearer <token>htd_test_ (sandbox, free, fictional towns) or htd_live_ (live, billed) key.
id*string^[a-z0-9][a-z0-9-]{0,63}$The record.
application/json- response
id*stringThe jurisdiction id (e.g. victoria, capital-regional-district).
kind*stringmunicipality, regional_district, school_district, first_nation, county, township, special_district, …
name*stringname_fr*string|nullcountry*string|nullregion*string|nullparent_id*|The regional district or county it sits in.
population*number|nulltime_zone*string|nulllegal_form*string|nullwebsite*string|nullregister_ids*Ids registers give it, by scheme (census, GNIS, OCD, Wikidata, …).
has_boundary*booleaningest_profile*|How much of it is read: resident_full (everything, for residents and business), records_full (every public record), meetings_only (its meetings alone). A family not read is absent, never "none".
dissolved_at*|When the body was dissolved, if it was.
source_url*|The page, document, video or platform the record was read from.
read_at*|When it was read.
environment*string"sandbox""live"curl -X GET 'https://data.heytownhall.com/v1/jurisdictions/string'{ "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", "environment": "sandbox"}Who governs a point GET
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.
List jurisdictions GET
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.