List a member's legislation
Legislation a member filed as lead sponsor. Same filters as /legislation.
GET https://www.chicagopolitics.org/api/v1/members/{id}/legislation
Authorizations
| Header | Value |
|---|---|
Authorization | Bearer <key>. Get a key; see authentication. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | yes | Ward number (1-50) for a current member; 100 + ward for a member who left during the term (e.g. 135). |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
q | string | ||
key | boolean | ||
limit | integer | Default 50. | |
cursor | string | From meta.nextCursor of the previous page. |
Response
200 Legislation: a list in data, with meta and links (see pagination).
| Field | Type | Description |
|---|---|---|
id | string | |
record | string | |
title | string | |
nickname | string | null | |
type | string | |
category | string | null | |
status | string | null | |
introduced | string | null | |
finalAction | string | null | |
committee | string | null | |
sponsor | object | |
key | boolean | |
routine | boolean | |
links | object |
Example request
curl "https://www.chicagopolitics.org/api/v1/members/12/legislation" \
-H "Authorization: Bearer $CHICAGO_POLITICS_KEY"
Errors: 400, 401, 404, 429 (see errors).