GET /api/v1/cities/{slug}/election
Election result per city (Federal Returning Officer, Tier A)
Returns a city's election result per constituency/district from the offline-prepared federal-election snapshot in the canonical envelope. The granularity is honestly reported as "partial". Disabled -> 200 source_status="disabled". Batch not yet run -> 200 source_status="not_ingested".
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slug | path | yes | string |
Code samples
curl "https://infranode.dev/api/v1/cities/hamburg/election"const res = await fetch("https://infranode.dev/api/v1/cities/hamburg/election");
const data = await res.json();
console.log(data);import httpx
res = httpx.get("https://infranode.dev/api/v1/cities/hamburg/election")
res.raise_for_status()
print(res.json())