Get a ward
One ward and its member.
GET https://www.chicagopolitics.org/api/v1/wards/{ward}
Authorizations
| Header | Value |
|---|---|
Authorization | Bearer <key>. Get a key; see authentication. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
ward | integer | yes |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
include | string | Add the GeoJSON geometry. One of: boundary. |
Response
200 Ward
| Field | Type | Description |
|---|---|---|
ward | integer | |
member | object | |
boundary | object | GeoJSON geometry (only with include=boundary) |
links | object |
Example request
curl "https://www.chicagopolitics.org/api/v1/wards/{ward}" \
-H "Authorization: Bearer $CHICAGO_POLITICS_KEY"
Errors: 400, 401, 404, 429 (see errors).