Get charity request status
curl --request GET \
--url https://api.donate.gg/api/v1/charity-requests/{register}/{registration}import requests
url = "https://api.donate.gg/api/v1/charity-requests/{register}/{registration}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.donate.gg/api/v1/charity-requests/{register}/{registration}', 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/charity-requests/{register}/{registration}",
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/charity-requests/{register}/{registration}"
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/charity-requests/{register}/{registration}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.donate.gg/api/v1/charity-requests/{register}/{registration}")
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{
"register": "united-states",
"registration": "<string>",
"status": "listed",
"charity": {
"id": "<string>",
"slug": "<string>"
},
"queue": {
"ahead": 123,
"typicalSeconds": 123
}
}{
"error": "<string>",
"code": "VALIDATION_ERROR",
"issues": [
null
]
}Charity requests
Get charity request status
Whether a registration is listed on Donate.gg, waiting for review, needs more information, was reviewed without a listing, or has not been requested. While waiting, queue estimates how many requests are ahead and how long recent requests took; review order and timing are not guaranteed. Reads Donate.gg only; it does not check the register or create a request. Public: no API key is needed. Send one to use your organization’s rate limit. New integrations use GET /v2/charity-requests/{registerId}/{registrationNumber}.
GET
/
v1
/
charity-requests
/
{register}
/
{registration}
Get charity request status
curl --request GET \
--url https://api.donate.gg/api/v1/charity-requests/{register}/{registration}import requests
url = "https://api.donate.gg/api/v1/charity-requests/{register}/{registration}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.donate.gg/api/v1/charity-requests/{register}/{registration}', 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/charity-requests/{register}/{registration}",
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/charity-requests/{register}/{registration}"
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/charity-requests/{register}/{registration}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.donate.gg/api/v1/charity-requests/{register}/{registration}")
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{
"register": "united-states",
"registration": "<string>",
"status": "listed",
"charity": {
"id": "<string>",
"slug": "<string>"
},
"queue": {
"ahead": 123,
"typicalSeconds": 123
}
}{
"error": "<string>",
"code": "VALIDATION_ERROR",
"issues": [
null
]
}Headers
Path Parameters
Response
OK
Was this page helpful?