List or find wards

List wards, or find the ward for a location. With lat and lon, returns the one ward containing that point (or none).

GET https://www.chicagopolitics.org/api/v1/wards

Authorizations

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

Query parameters

NameTypeRequiredDescription
latnumberLatitude (WGS84)
lonnumberLongitude (WGS84)

Response

200 Wards: a list in data, with meta and links (see pagination).

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

Example request

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

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