Search campaigns
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.
oauth2AuthorizationBearer <token>OAuth 2.0 client-credentials grant. Scopes follow the ReBAC grammar {type}:{id}:...:{role}; a {placeholder} stands for an id.
q?stringText to search for in campaign names and descriptions.
length <= 120slug?stringOnly campaigns with this slug. Exact match, and not combinable with any filter other than limit and offset.
1 <= length <= 100sort?stringSort order. Without it, results are ranked by relevance.
"almost_funded""newest""needs_love""ending_soon"categories?array<>Category slugs.
1 <= itemscountries?array<>ISO 3166-1 alpha-2 country codes of the countries the campaign helps.
1 <= itemszakatVerified?trueOnly true is supported: it keeps the campaigns verified by a zakat reviewer. false is a 400, because campaigns that are not verified cannot be selected.
trueorganizationType?array<>Only campaigns of organizations registered this way.
1 <= itemsnearMe?stringOnly campaigns within a distance of a point: latitude,longitude,distanceKm. Latitude -90 to 90, longitude -180 to 180, distance above 0 and at most 500 km.
^(-?\d{1,2}(?:\.\d+)?),(-?\d{1,3}(?:\.\d+)?),(\d+(?:\.\d+)?)$limit?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 campaigns.
application/json- response
data*array<>One page of results.
meta*curl -X GET 'https://api2.launchgood.com/campaigns?slug=clean-water-for-sana-a&categories=food-water%2Ceducation&countries=US%2CCA&organizationType=501c3%2Cgift_aid&nearMe=43.65%2C-79.38%2C50' \ -H 'Authorization: Bearer '{ "data": [ { "id": "48213", "slug": "clean-water-for-sana-a", "url": "http://example.com", "name": "Clean water for Sana'a", "status": "not_submitted", "categories": [ "food-water" ], "goal": { "amountMinor": 2500, "currency": "USD" }, "raised": { "amountMinor": 2500, "currency": "USD" }, "donationCount": 312, "fundedPercentage": 64, "daysLeft": 0, "zakatEligible": true, "zakatVerified": true, "country": "YE", "location": "Sana'a, Yemen", "latitude": -90, "longitude": -180, "imageUrl": "http://example.com", "creatorName": "string", "organization": { "id": "clx9k2m4p0000abcd1234efgh", "name": "Hope Relief Foundation" }, "startDate": "2019-08-24T14:15:22Z", "endDate": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" } ], "meta": { "limit": 25, "offset": 0, "hasMore": true, "total": 120, "totalIsEstimate": false }}List the public donors of a campaign GET
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.
Get an organization GET
A public organization: a business organization that is active. One that does not exist and one that is not public (a personal, draft, pending, restricted, suspended or closed one) are the same 404: the answer does not say which. Needs a valid token. Which scope public reads require is still open.