# 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](https://www.chicagopolitics.org/account); see [authentication](https://www.chicagopolitics.org/developers/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](https://www.chicagopolitics.org/developers/requests)).

| 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

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

Errors: `400`, `401`, `429` (see [errors](https://www.chicagopolitics.org/developers/errors)).

---
Source: https://www.chicagopolitics.org/developers/api/search-donations · Chicago Politics, an independent, nonpartisan tracker of the Chicago City Council. Guide for agents: https://www.chicagopolitics.org/llms.txt
