Search a charity register
curl --request GET \
--url https://api.donate.gg/api/v2/registers/{registerId}/entriesimport requests
url = "https://api.donate.gg/api/v2/registers/{registerId}/entries"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.donate.gg/api/v2/registers/{registerId}/entries', 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/registers/{registerId}/entries",
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/v2/registers/{registerId}/entries"
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/v2/registers/{registerId}/entries")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.donate.gg/api/v2/registers/{registerId}/entries")
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": [
{
"registerId": "united-states",
"registrationNumber": "86-0481941",
"name": "Make-A-Wish America",
"imageUrl": "https://docs.candid.org/edoc/11142134",
"websiteUrl": "https://wish.org/",
"description": "Together, we create life-changing wishes for children with critical illnesses.",
"city": "Phoenix",
"state": "AZ",
"country": "US",
"status": "listed",
"eligibilityIssues": [],
"charityId": "9b4dae4e-d8c1-4322-a594-35a4858296b2"
}
],
"nextCursor": null
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"issues": [
{
"path": "<string>",
"code": "required",
"message": "<string>"
}
]
}{
"code": "UNAUTHENTICATED",
"message": "This API key is not valid."
}{
"code": "RATE_LIMIT_EXCEEDED",
"message": "<string>"
}{
"code": "PROVIDER_UNAVAILABLE",
"message": "<string>"
}Charity requests
Search a charity register
Search one register by name or registration number for a charity that is not on Donate yet. Each entry says whether it is already listed, already requested, can be requested or is not eligible. A charity that is disabled or has opted out is left out. One Donate has hidden is returned by its register name and number, without the image, website, description, city and state Donate holds. Searching never requests anything. At most 10 entries. Register searches have their own budget on top of the normal rate limit. Public: no API key is needed. Send one to use your organization’s rate limit.
GET
/
v2
/
registers
/
{registerId}
/
entries
Search a charity register
curl --request GET \
--url https://api.donate.gg/api/v2/registers/{registerId}/entriesimport requests
url = "https://api.donate.gg/api/v2/registers/{registerId}/entries"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.donate.gg/api/v2/registers/{registerId}/entries', 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/registers/{registerId}/entries",
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/v2/registers/{registerId}/entries"
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/v2/registers/{registerId}/entries")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.donate.gg/api/v2/registers/{registerId}/entries")
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": [
{
"registerId": "united-states",
"registrationNumber": "86-0481941",
"name": "Make-A-Wish America",
"imageUrl": "https://docs.candid.org/edoc/11142134",
"websiteUrl": "https://wish.org/",
"description": "Together, we create life-changing wishes for children with critical illnesses.",
"city": "Phoenix",
"state": "AZ",
"country": "US",
"status": "listed",
"eligibilityIssues": [],
"charityId": "9b4dae4e-d8c1-4322-a594-35a4858296b2"
}
],
"nextCursor": null
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"issues": [
{
"path": "<string>",
"code": "required",
"message": "<string>"
}
]
}{
"code": "UNAUTHENTICATED",
"message": "This API key is not valid."
}{
"code": "RATE_LIMIT_EXCEEDED",
"message": "<string>"
}{
"code": "PROVIDER_UNAVAILABLE",
"message": "<string>"
}Headers
Path Parameters
Query Parameters
Was this page helpful?