Skip to main content
Every total in the API answers a different question. Pick the row that matches yours. All of them are on https://api.donate.gg/api/v2.

One total, everywhere

Wherever a total appears it is the same stats object:
Show totalUsdE6. It is US dollars times 10^6 in a string, so "181242751330" is $181,242.75. Totals explains every field, and Lists how the ranked lists below page.

Donating coins

GET /v2/coins ranks the coins whose fees donate to charities and campaigns. It is Donate’s own public list, and it does not hold every coin of every donation source. For the coins of your own source, use the keyed list.
The answer is { "items": [...], "nextCursor": ... }. One item, as an example:
  • With a filter, the numbers are filtered too. stats, rank and fundedBeneficiaries count only what reached the matching beneficiaries.
  • fundedBeneficiaries is history. It is who the coin’s past donations reached. Who it pays from now on is the config of the coin itself: see Show what a coin donates to.
  • Names come from one more request. Collect the references of a page, drop the repeats, and send them to GET /v2/beneficiaries/lookup?ids=, at most 100 in a request.
  • A donation paid to a person directly is not counted in this list. The read of one coin counts everything.

Coin creators

GET /v2/coin-creators ranks the wallets whose coins have donated the most.
One item, as an example:
creator is a wallet with the name and image it is shown with when it has them. name, imageUrl and url are null for a wallet nobody has named: show the address. url is the owner’s page on donate.gg when there is one. The list takes limit (1 to 100, default 25) and cursor.

One coin

The coin read carries the coin’s stats and its rank. GET /v2/coins/{chainId}/{address}/stats adds the breakdown by config.
An example answer:
  • configs has one entry for each config the coin has donated through. current is true on the one it pays now. No entry is current for a coin that pays no config now.
  • volumes is what was donated in each token before conversion, in that token’s smallest unit. 2168403305040 lamports is about 2,168.4 SOL.
  • rank is the coin’s place among visible coins by everything they have donated, or null for a hidden coin.
  • Both reads answer 404 for an address that pays no config and has donated nothing, and for a chain other than Solana (101), and 503 when the chain cannot be read.

Hidden coins

Donate can keep a coin out of its public lists.
  • GET /v2/coins never includes a hidden coin.
  • A hidden coin can still be read by address. It has hidden: true and rank: null.
  • A name or an image Donate does not show is not published. A coin hidden for its image has imageUrl: null. A coin hidden for its name has name: null and symbol: null, and where it is the token of a donation or a message, that symbol is null too.
  • The list of your own donation source includes your hidden coins, and counts them in rank.
  • Hiding never changes amounts, counts or dates.

Your configs

These need your key and work only for configs your project created. Another project’s config answers 403 with FORBIDDEN, and an id that names no config 404.
GET /v2/configs/{configId}/stats returns the config’s totals and what was donated in each token. An example answer:
GET /v2/configs/{configId}/donors ranks the wallets that donated through the config. Each item is { "rank", "donor", "stats" }, where donor has the same five fields as creator above. limit is 1 to 100 and defaults to 25. To find a config id, GET /v2/configs lists every config your project created, newest first.

Your donation source

If your project has a registered donation source, GET /v2/donation-sources/{chainId}/{address}/coins ranks the coins donating through it. It needs your key, and a source that is not your project’s answers 404.
Each item is a coin with its rank and its stats: the fields of an item of GET /v2/coins without fundedBeneficiaries. Here stats is everything the coin has donated. The list takes sort (raised or recent), limit (1 to 100, default 25) and cursor.

How fresh the numbers are

  • A coin’s total moves when its fees are claimed and donated, which happens in batches.
  • A donation counts as pending when it is recorded and as settled when it is paid out. totalUsdE6 is both together.
  • Nothing is pushed to you. There are no webhooks; read again when you need a newer number, and keep what you read.

Ranking every charity

GET /v2/charities?sort=raised pages through every charity listed on Donate, most raised first. Each item is the charity in full, and its stats is the same object as on the read of one charity.
sort=recent orders by the latest donation instead. The list has no rank field: an item’s place is its position as you page.

Runnable sequence