List donation activity
curl --request GET \
--url https://api.donate.gg/api/v1/donation-activityimport requests
url = "https://api.donate.gg/api/v1/donation-activity"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.donate.gg/api/v1/donation-activity', 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/donation-activity",
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/donation-activity"
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/donation-activity")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.donate.gg/api/v1/donation-activity")
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{
"pageKey": "<string>",
"response": [
{
"id": "<string>",
"kind": "donation",
"status": "pending",
"donationReceiptId": "<string>",
"sourceTransferId": "<string>",
"chainId": 123,
"transactionHash": "<string>",
"logIndex": 123,
"timestamp": "<string>",
"sourceAddress": "<string>",
"sourceName": "<string>",
"inputAmount": "<string>",
"inputToken": {
"address": "<string>",
"chainId": 123,
"symbol": "<string>",
"decimals": 123
},
"amountScope": "donation",
"delivery": {
"chainId": 123,
"transactionHash": "<string>"
}
}
]
}{
"error": "<string>",
"code": "VALIDATION_ERROR",
"issues": [
null
]
}{
"error": "<string>",
"code": "PROVIDER_UNAVAILABLE"
}Donations
List donation activity
List recent donation receipts and in-flight source transfers for a charity or campaign. Public: no API key is needed. Send one to use your organization’s rate limit. New integrations use GET /v2/charities/{charityId}/donations or GET /v2/campaigns/{campaignId}/donations.
GET
/
v1
/
donation-activity
List donation activity
curl --request GET \
--url https://api.donate.gg/api/v1/donation-activityimport requests
url = "https://api.donate.gg/api/v1/donation-activity"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.donate.gg/api/v1/donation-activity', 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/donation-activity",
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/donation-activity"
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/donation-activity")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.donate.gg/api/v1/donation-activity")
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{
"pageKey": "<string>",
"response": [
{
"id": "<string>",
"kind": "donation",
"status": "pending",
"donationReceiptId": "<string>",
"sourceTransferId": "<string>",
"chainId": 123,
"transactionHash": "<string>",
"logIndex": 123,
"timestamp": "<string>",
"sourceAddress": "<string>",
"sourceName": "<string>",
"inputAmount": "<string>",
"inputToken": {
"address": "<string>",
"chainId": 123,
"symbol": "<string>",
"decimals": 123
},
"amountScope": "donation",
"delivery": {
"chainId": 123,
"transactionHash": "<string>"
}
}
]
}{
"error": "<string>",
"code": "VALIDATION_ERROR",
"issues": [
null
]
}{
"error": "<string>",
"code": "PROVIDER_UNAVAILABLE"
}Headers
Query Parameters
Was this page helpful?