Get a ward

One ward and its member.

GET https://www.chicagopolitics.org/api/v1/wards/{ward}

Authorizations

HeaderValue
AuthorizationBearer <key>. Get a key; see authentication.

Path parameters

NameTypeRequiredDescription
wardintegeryes

Query parameters

NameTypeRequiredDescription
includestringAdd the GeoJSON geometry. One of: boundary.

Response

200 Ward

FieldTypeDescription
wardinteger
memberobject
boundaryobjectGeoJSON geometry (only with include=boundary)
linksobject

Example request

curl "https://www.chicagopolitics.org/api/v1/wards/{ward}" \
  -H "Authorization: Bearer $CHICAGO_POLITICS_KEY"

Errors: 400, 401, 404, 429 (see errors).