Skip to Content
Developers @ LaunchGood
Campaigns

List the public donors of a campaign

GET
/campaigns/{id}/donors

Newest first. The id is the 3.0 project id. A campaign the public API does not serve (a draft, a hidden or an inactive one) is a 404, the same as an id that is not a project, so the answer does not say that it exists; a served campaign nobody has given to yet is an empty page. An anonymous donor is shown as such and a private amount is null; a donation its donor asked not to display is left out. This carries no ids, contact details or location. Needs a valid token. Which scope public reads require is still open.

Authorization

oauth2
headerAuthorizationBearer <token>

OAuth 2.0 client-credentials grant. Scopes follow the ReBAC grammar {type}:{id}:...:{role}; a {placeholder} stands for an id.

Path Parameters

id*string

The campaign id: the 3.0 project id.

Length1 <= length <= 64

Query Parameters

limit?integer

Page size. A value above 100 is clamped to 100, not refused: meta.limit says the size that was applied. A value below 1 is a 400.

Range1 <= value
Default25
offset?integer

Rows to skip. Offsets above 10,000 are rejected: narrow the search instead.

Range0 <= value <= 10000
Default0

Response Body

A page of donors.

application/json
  1. response
data*array<>

One page of results.

meta*
Example Request
curl -X GET 'https://api2.launchgood.com/campaigns/48213/donors' \  -H 'Authorization: Bearer '
Example Response
{  "data": [    {      "name": "Aisha Khan",      "amount": {        "amountMinor": 2500,        "currency": "USD"      },      "donatedAt": "2019-08-24T14:15:22Z",      "isAnonymous": true,      "thumbnailUrl": "http://example.com"    }  ],  "meta": {    "limit": 25,    "offset": 0,    "hasMore": true,    "total": 120,    "totalIsEstimate": false  }}