Get the totals of your config
curl --request GET \
--url https://api.donate.gg/api/v2/configs/{configId}/stats \
--header 'donate-api-key: <api-key>'import requests
url = "https://api.donate.gg/api/v2/configs/{configId}/stats"
headers = {"donate-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'donate-api-key': '<api-key>'}};
fetch('https://api.donate.gg/api/v2/configs/{configId}/stats', 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/configs/{configId}/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"donate-api-key: <api-key>"
],
]);
$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/configs/{configId}/stats"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("donate-api-key", "<api-key>")
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/configs/{configId}/stats")
.header("donate-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.donate.gg/api/v2/configs/{configId}/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["donate-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"stats": {
"totalUsdE6": "181242751330",
"pendingUsdE6": "0",
"settledUsdE6": "181242751330",
"donationCount": 423,
"pendingCount": 0,
"settledCount": 423,
"firstDonationAt": "2026-04-29T18:02:19.000Z",
"lastDonationAt": "2026-10-28T04:16:10.000Z"
},
"volumes": [
{
"chainId": 101,
"tokenAddress": "So11111111111111111111111111111111111111112",
"amountAtomic": "2168403305040"
}
]
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"issues": [
{
"path": "<string>",
"code": "required",
"message": "<string>"
}
]
}{
"code": "UNAUTHENTICATED",
"message": "This operation needs your API key. Send it in the donate-api-key header."
}{
"code": "FORBIDDEN",
"message": "<string>"
}{
"code": "NOT_FOUND",
"message": "<string>"
}{
"code": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests. Wait for the time in the Retry-After header."
}Configs
Get the totals of your config
What has been donated through one of your configs, in US dollars and in each token as it was sent. A config of another project answers 403. Requires your API key.
GET
/
v2
/
configs
/
{configId}
/
stats
Get the totals of your config
curl --request GET \
--url https://api.donate.gg/api/v2/configs/{configId}/stats \
--header 'donate-api-key: <api-key>'import requests
url = "https://api.donate.gg/api/v2/configs/{configId}/stats"
headers = {"donate-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'donate-api-key': '<api-key>'}};
fetch('https://api.donate.gg/api/v2/configs/{configId}/stats', 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/configs/{configId}/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"donate-api-key: <api-key>"
],
]);
$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/configs/{configId}/stats"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("donate-api-key", "<api-key>")
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/configs/{configId}/stats")
.header("donate-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.donate.gg/api/v2/configs/{configId}/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["donate-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"stats": {
"totalUsdE6": "181242751330",
"pendingUsdE6": "0",
"settledUsdE6": "181242751330",
"donationCount": 423,
"pendingCount": 0,
"settledCount": 423,
"firstDonationAt": "2026-04-29T18:02:19.000Z",
"lastDonationAt": "2026-10-28T04:16:10.000Z"
},
"volumes": [
{
"chainId": 101,
"tokenAddress": "So11111111111111111111111111111111111111112",
"amountAtomic": "2168403305040"
}
]
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"issues": [
{
"path": "<string>",
"code": "required",
"message": "<string>"
}
]
}{
"code": "UNAUTHENTICATED",
"message": "This operation needs your API key. Send it in the donate-api-key header."
}{
"code": "FORBIDDEN",
"message": "<string>"
}{
"code": "NOT_FOUND",
"message": "<string>"
}{
"code": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests. Wait for the time in the Retry-After header."
}Authorizations
Path Parameters
Was this page helpful?