Skip to Content
Developers @ LaunchGood
Campaigns

Get a campaign by id

GET
/campaigns/{id}

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.

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.

Match^[1-9][0-9]{0,9}$
Length1 <= length <= 64

Response Body

The campaign.

application/json
  1. response
id*string

The campaign id: the 3.0 project id, as a string.

slug*string

URL-safe name.

url*string

The campaign page on launchgood.com.

Formaturi
name*string
status*CampaignStatus
Value in"not_submitted""pending_approval""suspended""active""completed""failed""approved""in_review""died""rejected""complete_unpaid"
categories*array<>
goal*||

Null when the campaign has no goal.

raised*

Raised so far, in the campaign currency.

donationCount*integer
Range0 <= value
fundedPercentage*integer

Raised over goal as a whole percent, rounded. 0 when there is no goal. Can pass 100.

Range0 <= value
daysLeft*|

Null when the campaign has no end date.

Range0 <= value
zakatEligible*boolean

Eligible to receive zakat.

zakatVerified*boolean

Verified by a zakat reviewer.

country*|

ISO 3166-1 alpha-2 country the campaign helps.

Match^[A-Z]{2}$
location*string|null
latitude*|
Range-90 <= value <= 90
longitude*|
Range-180 <= value <= 180
imageUrl*|

The banner image.

Formaturi
creatorName*|

Display name of the person who created the campaign.

organization*||

The public organization that owns the campaign, or that owns the account it pays into. Null when it has none.

startDate*|
Formatdate-time
endDate*|
Formatdate-time
createdAt*|
Formatdate-time
tagline*|

One line under the name.

description*|

The campaign story, as plain text.

settlementCurrency*|

ISO 4217 currency the campaign pays out in.

Match^[A-Z]{3}$
Length3 <= length <= 3
Example Request
curl -X GET 'https://api2.launchgood.com/campaigns/48213' \  -H 'Authorization: Bearer '
Example Response
{  "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",  "tagline": "string",  "description": "string",  "settlementCurrency": "str"}