API reference · Posts
List job postings
Open job postings with pay, hours and terms as the posting prints them. Billed as one records request a page. Filters: jurisdiction, region, country, kind, since.
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?stringThe employment type, such as full_time.
^[a-z][a-z0-9_]{0,60}$since?stringRecords read at or after this instant: what is new since your last read.
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/jobs'{ "query": { "property1": null, "property2": null }, "as_of": "string", "results": [ { "id": "string", "jurisdiction_id": "string", "country": "string", "region": "string", "title": "string", "summary": "string", "location": "string", "published_at": "string", "closes_at": "string", "status": "string", "employment_type": "string", "union_status": "string", "work_kind": "string", "pay": "string", "hours": "string", "work_location": "string", "page_read": true, "source_url": "string", "read_at": "string" } ], "next_cursor": "string", "environment": "sandbox"}Retrieve a job GET
One job posting with its headed sections. Billed as one records request.
List news, notices and events GET
What a government posts: news, public notices, council recaps, events and alerts. Billed as one records request a page. Filters: jurisdiction, region, country, kind, from, to, since.