API reference · Decisions
List motions
Motions as the minutes print them: mover, seconder, outcome and the count of votes, with each key decision's kind, topic and action. Billed as one records request a page. Filters: jurisdiction, region, country, kind, topic, from, to, since, meeting.
bearerAuthAuthorizationBearer <token>htd_test_ (sandbox, free, fictional towns) or htd_live_ (live, billed) key.
jurisdiction?stringA jurisdiction id.
^[a-z0-9][a-z0-9-]{0,63}$region?stringA two-letter province or state code.
country?stringCA or US.
kind?stringA key decision's kind, such as bylaw_reading or contract_award.
^[a-z][a-z0-9_]{0,60}$topic?stringA business topic id (GET /v1/topics lists the tags given).
^[a-z][a-z0-9_]{0,60}$from?stringOn or after this date (YYYY-MM-DD).
to?stringOn or before this date (YYYY-MM-DD).
since?stringRecords read at or after this instant: what is new since your last read.
meeting?stringA meeting id.
^[0-9]{1,18}$limit?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/motions'{ "query": { "property1": null, "property2": null }, "as_of": "string", "results": [ { "id": "string", "meeting_id": "string", "jurisdiction_id": "string", "country": "string", "region": "string", "meeting_date": "string", "position": 0, "item_position": 0, "number": "string", "text": "string", "mover": "string", "seconder": "string", "outcome": "string", "unanimous": true, "votes_for": 0, "votes_against": 0, "kinds": [ "string" ], "topics": [ "string" ], "actions": [ "string" ], "business_topics": [ "string" ], "source_url": "string", "read_at": "string" } ], "next_cursor": "string", "environment": "sandbox"}Retrieve a motion GET
One motion with each member's recorded vote. Billed as one records request.
List recorded votes GET
Each member's vote on a motion, as the minutes print it; never derived. A member away when the vote was taken is left out. Billed as one records request a page. Filters: jurisdiction, from, to, since, meeting, motion.