Get token donation stats
curl --request GET \
--url https://api.donate.gg/api/v1/{chainId}/tokens/{address}/statsimport requests
url = "https://api.donate.gg/api/v1/{chainId}/tokens/{address}/stats"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.donate.gg/api/v1/{chainId}/tokens/{address}/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/v1/{chainId}/tokens/{address}/stats",
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/v1/{chainId}/tokens/{address}/stats"
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/v1/{chainId}/tokens/{address}/stats")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.donate.gg/api/v1/{chainId}/tokens/{address}/stats")
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{
"usdDonatedE6": "181242751330",
"donationCount": "423",
"firstDonationDate": "2026-04-29T18:02:19.000Z",
"lastDonationDate": "2026-10-28T04:16:10.000Z",
"moderation": {
"hidden": false,
"hiddenReasons": [],
"moderationSource": "AI"
},
"allTimeDonationRank": 2,
"activeConfig": {
"usdDonatedE6": "181242751330",
"donationCount": "423",
"firstDonationDate": "2026-04-29T18:02:19.000Z",
"lastDonationDate": "2026-10-28T04:16:10.000Z",
"id": {
"hex": "0x99fbb793f984a8c5f06693e13af3a2629479beac1c38169ec8b601faad71bce9",
"base58": "BN5zs4C4zce2XBL3QjqV7LTjE51822i2jX4TPQ8DjM3v"
},
"inputVolumeGrossAtomic": {
"So11111111111111111111111111111111111111112": "2168403305040"
}
},
"previousConfigs": []
}{
"error": "<string>",
"code": "VALIDATION_ERROR",
"issues": [
null
]
}{
"error": "<string>",
"code": "NOT_FOUND"
}Coins
Get token donation stats
What a token has donated: its total, the totals of the config it pays now and of each config it paid before, and its all-time rank. Only the coins chain resolves; any other chain id answers 404. Public: no API key is needed. Send one to use your organization’s rate limit. New integrations use GET /v2/coins/{chainId}/{address}/stats.
GET
/
v1
/
{chainId}
/
tokens
/
{address}
/
stats
Get token donation stats
curl --request GET \
--url https://api.donate.gg/api/v1/{chainId}/tokens/{address}/statsimport requests
url = "https://api.donate.gg/api/v1/{chainId}/tokens/{address}/stats"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.donate.gg/api/v1/{chainId}/tokens/{address}/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/v1/{chainId}/tokens/{address}/stats",
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/v1/{chainId}/tokens/{address}/stats"
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/v1/{chainId}/tokens/{address}/stats")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.donate.gg/api/v1/{chainId}/tokens/{address}/stats")
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{
"usdDonatedE6": "181242751330",
"donationCount": "423",
"firstDonationDate": "2026-04-29T18:02:19.000Z",
"lastDonationDate": "2026-10-28T04:16:10.000Z",
"moderation": {
"hidden": false,
"hiddenReasons": [],
"moderationSource": "AI"
},
"allTimeDonationRank": 2,
"activeConfig": {
"usdDonatedE6": "181242751330",
"donationCount": "423",
"firstDonationDate": "2026-04-29T18:02:19.000Z",
"lastDonationDate": "2026-10-28T04:16:10.000Z",
"id": {
"hex": "0x99fbb793f984a8c5f06693e13af3a2629479beac1c38169ec8b601faad71bce9",
"base58": "BN5zs4C4zce2XBL3QjqV7LTjE51822i2jX4TPQ8DjM3v"
},
"inputVolumeGrossAtomic": {
"So11111111111111111111111111111111111111112": "2168403305040"
}
},
"previousConfigs": []
}{
"error": "<string>",
"code": "VALIDATION_ERROR",
"issues": [
null
]
}{
"error": "<string>",
"code": "NOT_FOUND"
}Headers
Query Parameters
Response
OK
Was this page helpful?