Search a charity register
curl --request GET \
--url https://api.donate.gg/api/v1/charity-requests/searchimport requests
url = "https://api.donate.gg/api/v1/charity-requests/search"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.donate.gg/api/v1/charity-requests/search', 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/search",
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/search"
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/search")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.donate.gg/api/v1/charity-requests/search")
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": [
{
"register": "united-states",
"country": "US",
"registration": "<string>",
"name": "<string>",
"logo": "<string>",
"website": "<string>",
"mission": "<string>",
"city": "<string>",
"state": "<string>",
"status": "listed",
"eligibilityIssues": [
"<string>"
],
"charity": {
"id": "<string>",
"slug": "<string>"
}
}
]
}{
"error": "<string>",
"code": "VALIDATION_ERROR",
"issues": [
null
]
}{
"error": "<string>",
"code": "RATE_LIMIT_EXCEEDED"
}{
"error": "<string>",
"code": "PROVIDER_UNAVAILABLE"
}Charity requests
Search a charity register
Search one official register by charity name or registration number. Each result says whether the charity is already listed, already requested, requestable, ineligible or unavailable. Searching never requests or lists a charity. Returns up to 10 results. Register searches have their own budget on top of the normal API rate limit: 120 per minute per API-key project, or 30 per minute per anonymous client (shared with donate.gg). Public: no API key is needed. Send one to use your organization’s rate limit. New integrations use GET /v2/registers/{registerId}/entries.
GET
/
v1
/
charity-requests
/
search
Search a charity register
curl --request GET \
--url https://api.donate.gg/api/v1/charity-requests/searchimport requests
url = "https://api.donate.gg/api/v1/charity-requests/search"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.donate.gg/api/v1/charity-requests/search', 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/search",
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/search"
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/search")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.donate.gg/api/v1/charity-requests/search")
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": [
{
"register": "united-states",
"country": "US",
"registration": "<string>",
"name": "<string>",
"logo": "<string>",
"website": "<string>",
"mission": "<string>",
"city": "<string>",
"state": "<string>",
"status": "listed",
"eligibilityIssues": [
"<string>"
],
"charity": {
"id": "<string>",
"slug": "<string>"
}
}
]
}{
"error": "<string>",
"code": "VALIDATION_ERROR",
"issues": [
null
]
}{
"error": "<string>",
"code": "RATE_LIMIT_EXCEEDED"
}{
"error": "<string>",
"code": "PROVIDER_UNAVAILABLE"
}Headers
Query Parameters
Was this page helpful?