> ## Documentation Index
> Fetch the complete documentation index at: https://docs.donate.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# List top donors of a config

> Get a paginated top-donors leaderboard for a config. Only configs owned by the caller's project are accessible. Requires your API key. New integrations use `GET /v2/configs/{configId}/donors`.



## OpenAPI

````yaml /openapi.json get /v1/configs/{configId}/leaderboard
openapi: 3.1.1
info:
  title: Donate API
  version: 2.0.0
  description: >-
    Find charities and campaigns, create donation configs, and read what coins
    and donors have given. Every path starts with its version. Build on `/v2`.
    Its responses hold their own resource and references `{ type, id }` to
    others; every list is `{ items, nextCursor }`; amounts are integer strings
    whose name carries the unit (`UsdE6`, `Atomic`); and every error is `{
    "code": string, "message": string }`. `/v1` is the earlier surface: it keeps
    working, knows only charities, and has its own shapes and error body (`{
    "error": string, "code": string }`). Public reads work without a key and are
    rate limited per IP address; send `donate-api-key` to use the rate limit of
    your organization, which all its keys share. Creating and listing configs,
    reading project analytics and requesting a charity require the key.
servers:
  - url: https://api.donate.gg/api
    description: Every operation path starts with its version.
security: []
tags:
  - name: Beneficiaries
    description: >-
      A beneficiary is something a donation can pay: a charity or a campaign.
      Search for one to name in a config, or resolve the references a config or
      a coin holds into what to show.
  - name: Charities
    description: Registered non-profits listed on Donate.
  - name: Campaigns
    description: >-
      Fundraisers created on Donate or imported from a provider, their donation
      messages and their deposit addresses.
  - name: Configs
    description: >-
      A config is a permanent split: the beneficiaries a donation pays and the
      weight each receives. A donation is made against a config id.
  - name: Coins
    description: >-
      A coin is a token whose fees donate through a config: who it pays, what it
      has given, and how it ranks.
  - name: Donations
    description: >-
      The state of a donation that crosses chains. The donations a charity or a
      campaign has received are listed under Charities and Campaigns.
  - name: Charity requests
    description: >-
      Find a charity in an official register and ask Donate to list it when it
      is not listed yet.
  - name: Reference data
    description: Supported chains and campaign categories.
  - name: Users
    description: People with a Donate profile.
paths:
  /v1/configs/{configId}/leaderboard:
    get:
      tags:
        - Configs
      summary: List top donors of a config
      description: >-
        Get a paginated top-donors leaderboard for a config. Only configs owned
        by the caller's project are accessible. Requires your API key. New
        integrations use `GET /v2/configs/{configId}/donors`.
      operationId: v1.configs.leaderboard
      parameters:
        - name: configId
          in: path
          required: true
          schema:
            type: string
            description: Config ID (base58 or hex)
        - name: limit
          in: query
          schema:
            type: number
            default: 50
            description: Page size (default 50, max 200)
          allowEmptyValue: true
          allowReserved: true
        - name: cursor
          in: query
          schema:
            type: string
            description: Cursor for next page (from previous nextCursor)
          allowEmptyValue: true
          allowReserved: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  entries:
                    type: array
                    items:
                      type: object
                      properties:
                        rank:
                          type: number
                        user:
                          anyOf:
                            - type: object
                              properties:
                                username:
                                  type: string
                                avatar:
                                  anyOf:
                                    - type: string
                                    - type: 'null'
                              required:
                                - username
                                - avatar
                            - type: 'null'
                        wallet:
                          type: object
                          properties:
                            chain:
                              type: object
                              properties:
                                id:
                                  type: number
                                name:
                                  type: string
                                type:
                                  enum:
                                    - bitcoin
                                    - evm
                                    - solana
                                  type: string
                              required:
                                - id
                                - name
                                - type
                            address:
                              type: string
                          required:
                            - chain
                            - address
                        stats:
                          type: object
                          properties:
                            usdDonatedE6:
                              type: string
                            donationCount:
                              type: string
                            firstDonationDate:
                              anyOf:
                                - type: string
                                - type: 'null'
                            lastDonationDate:
                              anyOf:
                                - type: string
                                - type: 'null'
                          required:
                            - usdDonatedE6
                            - donationCount
                            - firstDonationDate
                            - lastDonationDate
                      required:
                        - rank
                        - user
                        - wallet
                        - stats
                  nextCursor:
                    anyOf:
                      - type: string
                      - type: 'null'
                    description: Cursor for next page (to be used in the next request)
                required:
                  - entries
                  - nextCursor
        '400':
          description: '400'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    enum:
                      - VALIDATION_ERROR
                    type: string
                  issues:
                    type: array
                    items:
                      anyOf:
                        - {}
                        - type: 'null'
                required:
                  - error
                  - code
        '403':
          description: '403'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    enum:
                      - FORBIDDEN
                    type: string
                required:
                  - error
                  - code
        '404':
          description: '404'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    enum:
                      - NOT_FOUND
                    type: string
                required:
                  - error
                  - code
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: donate-api-key
      description: >-
        Your project API key, from the Developer portal. Required to create and
        list configs, to read project analytics and to request a charity. Send
        it from your server, never from a browser.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.