url is then null.
1
List the registers
Find the register the charity is in.
2
Search the register
Look the charity up by name or registration number.
3
Request it
Ask for an entry whose status is
requestable. This needs your key.4
Read where it stands
Look again later. Once it is listed you have its charity id.
https://api.donate.gg/api/v2. Register data identifies an organisation. It does
not confirm that donations are tax-deductible, that the organisation is charitable, or that anyone
endorses it.
List the registers
GET /v2/registers returns every register you
can request from, with the registration number format each accepts. Public.
{ "items": [...], "nextCursor": null }. One register, as an example:
registrationFormat.patternis an unanchored regular expression for input the register accepts. Uselabelandexampleon your form.refreshislivewhen the register is read for each search, ordailywhen Donate uses a daily copy of the official dataset.- When you show register data to users, show the register’s
attributiontoo. - The list changes rarely. Keep it for minutes, not per request.
Search a register
GET /v2/registers/{registerId}/entries
searches one register by charity name or registration number and returns at most 10 entries.
Public. Searching never requests or lists a charity.
The answer is
{ "items": [...], "nextCursor": null }. One entry, as an example:
imageUrl, websiteUrl, description, city and state can be null.
charityId is null unless status is listed. A charity that is disabled or has opted out is
not returned at all.
Request a charity
POST /v2/charity-requests checks the registration
against the official register, then saves a request for review. It needs your key.
The call below uses SC012345, the register’s own example of the format, in place of a real
number. Send the registrationNumber of an entry whose status is requestable: a number the
register does not have answers 422 with REGISTRATION_NOT_FOUND.
A UK number must be from the register you name:
SC numbers are Scottish, NIC numbers are
Northern Irish, and plain numbers are England and Wales. Northern Ireland numbers may omit the
NIC prefix.
The status of the answer says what the request did, and the body is the same object either way:
An answer to a request that started a review looks like this, with the format example standing
for the number you sent:
Repeating a request is safe. It counts as more demand and does not undo a review decision.
registrationNumber in the answer is the number in its canonical form: use that one from then on.
Read where a request stands
GET /v2/charity-requests/{registerId}/{registrationNumber}
reports where one registration stands on Donate. Public. It reads Donate only: it does not check
the register and does not request anything.
200, not 404:
status is not-requested, requested, needs-info, reviewed or listed. Only requested
changes without a new request, so that is the one to poll. A number that is not in the register’s
format answers 400 with REGISTRATION_INVALID.
While status is requested, queue estimates where the request stands. Otherwise it is null.
Both are estimates. Review order and timing are not guaranteed, and a request can still need more
information or close without a listing.
Once
status is listed, charityId is the charity’s id. It goes straight into a config, and the
charity appears in beneficiary search.
Rate limits
Register search and requests spend their own budgets on top of the normal rate limit:
The budget for searches without a key is shared with charity search on donate.gg. A ceiling across
all callers can also apply when the registers are busy. A used-up budget answers
429 with
RATE_LIMIT_EXCEEDED and Retry-After. Listing registers and reading where a request stands use
only the normal limit.