Skip to main content
Requires partner scope The source leaderboard endpoint returns ranked donation subjects (currently token subjects) for a specific donation source contract. This endpoint is scoped to your developer project. If the donation source is not owned by your project, the API returns 404.

Get source leaderboard

GET /{chainId}/donationSources/{address}/subjects/leaderboard
curl "https://www.donate.gg/api/v1/{chainId}/donationSources/{address}/subjects/leaderboard?limit=25" \
  -H "donate-api-key: YOUR_API_KEY"
Path parameters
ParameterTypeDescription
chainIdintegerChain ID where the donation source is deployed
addressstringDonation source contract address (canonicalized by chain)
Query parameters
ParameterTypeDefaultDescription
limitinteger25Results per page, max 100
cursorstring-Cursor from previous pageKey for next page
Response
{
  "pageKey": "next_cursor_string",
  "response": [
    {
      "rank": 1,
      "chain": { "id": 1, "name": "Ethereum", "type": "EVM" },
      "type": "token",
      "token": {
        "address": "0xA0b8...",
        "name": "USD Coin",
        "symbol": "USDC",
        "decimals": 6
      },
      "creatorAddress": "0xCreator...",
      "stats": {
        "usdDonatedE6": "50000000",
        "donationCount": "10",
        "firstDonationDate": "2025-06-01T00:00:00.000Z",
        "lastDonationDate": "2026-03-15T00:00:00.000Z"
      }
    }
  ]
}

Error responses

StatusCodeDescription
400VALIDATION_ERRORInvalid chain ID, source address, or query parameters
404NOT_FOUNDDonation source not found or does not belong to your project