> ## 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.

# Get token donation stats

> What a token has donated: its total, the totals of the config it pays now and of each config it paid before, and its all-time rank. Only the coins chain resolves; any other chain id answers 404. Public: no API key is needed. Send one to use your organization's rate limit. New integrations use `GET /v2/coins/{chainId}/{address}/stats`.



## OpenAPI

````yaml /openapi.json get /v1/{chainId}/tokens/{address}/stats
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/{chainId}/tokens/{address}/stats:
    get:
      tags:
        - Coins
      summary: Get token donation stats
      description: >-
        What a token has donated: its total, the totals of the config it pays
        now and of each config it paid before, and its all-time rank. Only the
        coins chain resolves; any other chain id answers 404. Public: no API key
        is needed. Send one to use your organization's rate limit. New
        integrations use `GET /v2/coins/{chainId}/{address}/stats`.
      operationId: v1.tokens.statsByAddress
      parameters:
        - name: chainId
          in: path
          required: true
          schema:
            type: number
            description: Chain ID
        - name: address
          in: path
          required: true
          schema:
            type: string
            description: Chain address
        - name: includeHidden
          in: query
          schema:
            enum:
              - 'true'
              - 'false'
            type: string
            description: >-
              Include hidden coins when computing leaderboard rank (default
              false). Financial stats are unchanged.
          allowEmptyValue: true
          allowReserved: true
        - name: donate-api-key
          in: header
          required: false
          schema:
            type: string
          description: >-
            Optional. Your API key. With it the request counts against your
            organization's rate limit; without it, against the limit of your IP
            address.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  usdDonatedE6:
                    type: string
                  donationCount:
                    type: string
                  firstDonationDate:
                    anyOf:
                      - type: string
                      - type: 'null'
                  lastDonationDate:
                    anyOf:
                      - type: string
                      - type: 'null'
                  moderation:
                    anyOf:
                      - type: object
                        properties:
                          hidden:
                            type: boolean
                          hiddenReasons:
                            type: array
                            items:
                              enum:
                                - INAPPROPRIATE_NAME
                                - INAPPROPRIATE_IMAGE
                                - OTHER
                              type: string
                          moderationSource:
                            anyOf:
                              - enum:
                                  - AI
                                  - ADMIN
                                type: string
                              - type: 'null'
                        required:
                          - hidden
                          - hiddenReasons
                          - moderationSource
                      - type: 'null'
                    description: >-
                      Discovery decision, or null when the token has not been
                      recorded locally. Direct lookups remain available when
                      hidden.
                  allTimeDonationRank:
                    anyOf:
                      - type: number
                      - type: 'null'
                    description: >-
                      Rank by all-time donations in the requested leaderboard
                      (includeHidden); null if excluded or no recorded
                      leaderboard entry
                  activeConfig:
                    type: object
                    properties:
                      usdDonatedE6:
                        type: string
                      donationCount:
                        type: string
                      firstDonationDate:
                        anyOf:
                          - type: string
                          - type: 'null'
                      lastDonationDate:
                        anyOf:
                          - type: string
                          - type: 'null'
                      id:
                        type: object
                        properties:
                          hex:
                            type: string
                          base58:
                            type: string
                        required:
                          - hex
                          - base58
                      inputVolumeGrossAtomic:
                        type: object
                        propertyNames:
                          type: string
                        additionalProperties:
                          type: string
                        description: >-
                          Input volume across all channels for this config. Keys
                          are token addresses, values are atomic amounts (as
                          strings to preserve precision).
                    required:
                      - usdDonatedE6
                      - donationCount
                      - firstDonationDate
                      - lastDonationDate
                      - id
                      - inputVolumeGrossAtomic
                  previousConfigs:
                    type: array
                    items:
                      type: object
                      properties:
                        usdDonatedE6:
                          type: string
                        donationCount:
                          type: string
                        firstDonationDate:
                          anyOf:
                            - type: string
                            - type: 'null'
                        lastDonationDate:
                          anyOf:
                            - type: string
                            - type: 'null'
                        id:
                          type: object
                          properties:
                            hex:
                              type: string
                            base58:
                              type: string
                          required:
                            - hex
                            - base58
                        inputVolumeGrossAtomic:
                          type: object
                          propertyNames:
                            type: string
                          additionalProperties:
                            type: string
                          description: >-
                            Input volume across all channels for this config.
                            Keys are token addresses, values are atomic amounts
                            (as strings to preserve precision).
                      required:
                        - usdDonatedE6
                        - donationCount
                        - firstDonationDate
                        - lastDonationDate
                        - id
                        - inputVolumeGrossAtomic
                required:
                  - usdDonatedE6
                  - donationCount
                  - firstDonationDate
                  - lastDonationDate
                  - moderation
                  - allTimeDonationRank
                  - activeConfig
                  - previousConfigs
              example:
                usdDonatedE6: '181242751330'
                donationCount: '423'
                firstDonationDate: '2026-04-29T18:02:19.000Z'
                lastDonationDate: '2026-10-28T04:16:10.000Z'
                moderation:
                  hidden: false
                  hiddenReasons: []
                  moderationSource: AI
                allTimeDonationRank: 2
                activeConfig:
                  usdDonatedE6: '181242751330'
                  donationCount: '423'
                  firstDonationDate: '2026-04-29T18:02:19.000Z'
                  lastDonationDate: '2026-10-28T04:16:10.000Z'
                  id:
                    hex: >-
                      0x99fbb793f984a8c5f06693e13af3a2629479beac1c38169ec8b601faad71bce9
                    base58: BN5zs4C4zce2XBL3QjqV7LTjE51822i2jX4TPQ8DjM3v
                  inputVolumeGrossAtomic:
                    So11111111111111111111111111111111111111112: '2168403305040'
                previousConfigs: []
        '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
        '404':
          description: '404'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    enum:
                      - NOT_FOUND
                    type: string
                required:
                  - error
                  - code
      security: []

````

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