List campaign donations
curl --request GET \
--url https://api.donate.gg/api/v2/campaigns/{campaignId}/donationsimport requests
url = "https://api.donate.gg/api/v2/campaigns/{campaignId}/donations"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.donate.gg/api/v2/campaigns/{campaignId}/donations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.donate.gg/api/v2/campaigns/{campaignId}/donations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.donate.gg/api/v2/campaigns/{campaignId}/donations"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.donate.gg/api/v2/campaigns/{campaignId}/donations")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.donate.gg/api/v2/campaigns/{campaignId}/donations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"items": [
{
"type": "donation",
"id": "cmwfjkz5l000b08jsjl4u2ppv",
"status": "settled",
"chainId": 101,
"transactionHash": "5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW",
"donatedAt": "2026-11-13T22:22:06.000Z",
"donor": {
"chainId": 101,
"address": "ExampLeWa11et1111111111111111111111111111111",
"name": "Make A Wish",
"imageUrl": null,
"url": null
},
"coin": {
"chainId": 101,
"address": "2ssMotVbTUfRJev2UnibHzHsoeszPzgwbfsTZPSHpump"
},
"amountAtomic": "512340000",
"token": {
"chainId": 101,
"address": "So11111111111111111111111111111111111111112",
"symbol": "SOL",
"decimals": 9
},
"amountUsdE6": "83460186",
"message": "For the reef.",
"transferId": null
},
{
"type": "transfer",
"id": "0x3f1b0c7d5a9e4f2b8c6d1e0a7b9c8d6e5f4a3b2c1d0e9f8a7b6c5d4e3f2a1b0c",
"status": "in-transit",
"chainId": 8453,
"transactionHash": "0x8d2f6a1c4e7b9053d1a8c6e4f2b0d9a7c5e3f1b8d6a4c2e0f9b7d5a3c1e8f6b4",
"donatedAt": "2026-11-19T09:10:41.000Z",
"donor": {
"chainId": 8453,
"address": "0x1111111111111111111111111111111111111111",
"name": null,
"imageUrl": null,
"url": null
},
"coin": null,
"amountAtomic": "25000000",
"token": {
"chainId": 8453,
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"symbol": "USDC",
"decimals": 6
},
"amountUsdE6": null,
"message": null,
"transferId": "0x3f1b0c7d5a9e4f2b8c6d1e0a7b9c8d6e5f4a3b2c1d0e9f8a7b6c5d4e3f2a1b0c"
}
],
"nextCursor": null
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"issues": [
{
"path": "<string>",
"code": "required",
"message": "<string>"
}
]
}{
"code": "UNAUTHENTICATED",
"message": "This API key is not valid."
}{
"code": "NOT_FOUND",
"message": "<string>"
}{
"code": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests. Wait for the time in the Retry-After header."
}Campaigns
List campaign donations
Donations that reached this campaign, newest first, whichever config they came through: its own page, a coin, or an integration. Each row has the campaign’s part of the donation and the donor’s message when it is approved. Funds still on their way from another chain to the campaign’s own page appear as rows of type transfer. A page is shared for a few seconds, so a new donation can take that long to appear. A completed campaign keeps its donations. A hidden campaign answers 404, the same as an unknown id. Public: no API key is needed. Send one to use your organization’s rate limit.
GET
/
v2
/
campaigns
/
{campaignId}
/
donations
List campaign donations
curl --request GET \
--url https://api.donate.gg/api/v2/campaigns/{campaignId}/donationsimport requests
url = "https://api.donate.gg/api/v2/campaigns/{campaignId}/donations"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.donate.gg/api/v2/campaigns/{campaignId}/donations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.donate.gg/api/v2/campaigns/{campaignId}/donations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.donate.gg/api/v2/campaigns/{campaignId}/donations"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.donate.gg/api/v2/campaigns/{campaignId}/donations")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.donate.gg/api/v2/campaigns/{campaignId}/donations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"items": [
{
"type": "donation",
"id": "cmwfjkz5l000b08jsjl4u2ppv",
"status": "settled",
"chainId": 101,
"transactionHash": "5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW",
"donatedAt": "2026-11-13T22:22:06.000Z",
"donor": {
"chainId": 101,
"address": "ExampLeWa11et1111111111111111111111111111111",
"name": "Make A Wish",
"imageUrl": null,
"url": null
},
"coin": {
"chainId": 101,
"address": "2ssMotVbTUfRJev2UnibHzHsoeszPzgwbfsTZPSHpump"
},
"amountAtomic": "512340000",
"token": {
"chainId": 101,
"address": "So11111111111111111111111111111111111111112",
"symbol": "SOL",
"decimals": 9
},
"amountUsdE6": "83460186",
"message": "For the reef.",
"transferId": null
},
{
"type": "transfer",
"id": "0x3f1b0c7d5a9e4f2b8c6d1e0a7b9c8d6e5f4a3b2c1d0e9f8a7b6c5d4e3f2a1b0c",
"status": "in-transit",
"chainId": 8453,
"transactionHash": "0x8d2f6a1c4e7b9053d1a8c6e4f2b0d9a7c5e3f1b8d6a4c2e0f9b7d5a3c1e8f6b4",
"donatedAt": "2026-11-19T09:10:41.000Z",
"donor": {
"chainId": 8453,
"address": "0x1111111111111111111111111111111111111111",
"name": null,
"imageUrl": null,
"url": null
},
"coin": null,
"amountAtomic": "25000000",
"token": {
"chainId": 8453,
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"symbol": "USDC",
"decimals": 6
},
"amountUsdE6": null,
"message": null,
"transferId": "0x3f1b0c7d5a9e4f2b8c6d1e0a7b9c8d6e5f4a3b2c1d0e9f8a7b6c5d4e3f2a1b0c"
}
],
"nextCursor": null
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"issues": [
{
"path": "<string>",
"code": "required",
"message": "<string>"
}
]
}{
"code": "UNAUTHENTICATED",
"message": "This API key is not valid."
}{
"code": "NOT_FOUND",
"message": "<string>"
}{
"code": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests. Wait for the time in the Retry-After header."
}Headers
Query Parameters
Was this page helpful?