Search donations
Search donations to all members' committees by donor or employer. At least one of donor or employer is required.
GET https://www.chicagopolitics.org/api/v1/donations
Authorizations
| Header | Value |
|---|---|
Authorization | Bearer <key>. Get a key; see authentication. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
donor | string | ||
employer | string | ||
member | integer | Member id. | |
min | integer | ||
lobbyist | boolean | ||
from | string (date) | ||
to | string (date) | ||
limit | integer | Default 50. | |
cursor | string | From meta.nextCursor of the previous page. |
Response
200 Donations: a list in data, with meta and links (see pagination).
| Field | Type | Description |
|---|---|---|
id | string | |
date | string (date) | |
amount | number | |
aggregateFromDonor | number | null | |
donor | string | null | |
donorIsOrganization | boolean | |
occupation | string | null | |
employer | string | null | |
city | string | null | |
state | string | null | |
kind | string | null | |
description | string | null | |
donorIsLobbyist | boolean | |
donorIsLobbyingClient | boolean | |
committee | object |
Example request
curl "https://www.chicagopolitics.org/api/v1/donations" \
-H "Authorization: Bearer $CHICAGO_POLITICS_KEY"
Errors: 400, 401, 429 (see errors).