GET
/v1/councilsNo key neededEvery council covered, with its slug. It answers without a key, at 60 requests an hour from one address.
Parameters
| Name | Type | Default | What it is |
|---|---|---|---|
q | text | Words in the council's name |
Any other parameter is refused with unknown_parameter, naming the ones this endpoint takes.
Request
curl "https://api.councilmonitor.co.uk/v1/councils?q=argy"
import requests
r = requests.get("https://api.councilmonitor.co.uk/v1/councils?q=argy")
print(r.json())
const r = await fetch("https://api.councilmonitor.co.uk/v1/councils?q=argy");
console.log(await r.json());
Answer
200 OKA real answer from today's archive, shortened for this page: lists show their first few and long text its opening.
{
"data": [
{
"slug": "argyll-and-bute",
"name": "Argyll and Bute",
"link": "https://councilmonitor.co.uk/council/argyll-and-bute",
"official_url": "https://www.argyll-bute.gov.uk/moderngov/"
}
],
"meta": {
"count": 1
}
}Run it live
Press Send to call the API from your browser.