List the public donors of a campaign
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.
oauth2AuthorizationBearer <token>OAuth 2.0 client-credentials grant. Scopes follow the ReBAC grammar {type}:{id}:...:{role}; a {placeholder} stands for an id.
id*stringThe campaign id: the 3.0 project id.
1 <= length <= 64limit?integerPage 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.
1 <= value25offset?integerRows to skip. Offsets above 10,000 are rejected: narrow the search instead.
0 <= value <= 100000A page of donors.
application/json- response
data*array<>One page of results.
meta*curl -X GET 'https://api2.launchgood.com/campaigns/48213/donors' \ -H 'Authorization: Bearer '{ "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 }}Get a campaign by id GET
The id is the 3.0 project id, as a string of digits; a slug is a 400 here. To find a campaign by slug, use the `slug` filter of `listCampaigns`. A campaign that does not exist and one the public site does not list (a draft, hidden, archived or suspended one) are the same 404: the answer does not say which. Needs a valid token. Which scope public reads require is still open.
Search campaigns GET
Public campaigns, filtered and sorted. Filters combine with AND; within a list filter at least one value must match. Only campaigns the LaunchGood site lists publicly are served: active, completed, failed or completed-unpaid, not hidden and not archived. `slug` finds the campaigns with that exact slug: a page of zero, one or more, because a slug is not promised to be unique. A slug is looked up in the campaign records, which cannot also search, rank or filter, so `slug` cannot be combined with `q`, `sort`, `categories`, `countries`, `zakatVerified`, `organizationType` or `nearMe`: such a request is a 400 that names them, and `limit` and `offset` are the only parameters that go with it. `offset` and `limit` count positions in the order of the search, before a campaign is left out, and `hasMore` is whether the search has a row after the page. A page can hold fewer items than `limit`, even none: follow `meta.hasMore`, not the page length. `offset` plus `limit` cannot pass 9,999 (a 400 says so). Needs a valid token. Which scope public reads require is still open.