List charity messages
curl --request GET \
--url https://api.donate.gg/api/v2/charities/{charityId}/messagesimport requests
url = "https://api.donate.gg/api/v2/charities/{charityId}/messages"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.donate.gg/api/v2/charities/{charityId}/messages', 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/charities/{charityId}/messages",
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/charities/{charityId}/messages"
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/charities/{charityId}/messages")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.donate.gg/api/v2/charities/{charityId}/messages")
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": [
{
"id": "cmrl0mjeu000204lcc7vjvc40",
"status": "settled",
"message": "Thank you for what you do.",
"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": "25000000",
"donatedAt": "2026-07-14T18:59:29.000Z",
"unconfirmedAt": null
}
],
"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."
}Charities
List charity messages
Public messages donors left when they donated to this charity on Donate, newest first, each with the amount of the donation. A donation made through another config that names the charity, such as a coin’s, is not included. A charity that is hidden, disabled or has opted out 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
/
charities
/
{charityId}
/
messages
List charity messages
curl --request GET \
--url https://api.donate.gg/api/v2/charities/{charityId}/messagesimport requests
url = "https://api.donate.gg/api/v2/charities/{charityId}/messages"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.donate.gg/api/v2/charities/{charityId}/messages', 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/charities/{charityId}/messages",
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/charities/{charityId}/messages"
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/charities/{charityId}/messages")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.donate.gg/api/v2/charities/{charityId}/messages")
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": [
{
"id": "cmrl0mjeu000204lcc7vjvc40",
"status": "settled",
"message": "Thank you for what you do.",
"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": "25000000",
"donatedAt": "2026-07-14T18:59:29.000Z",
"unconfirmedAt": null
}
],
"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?