DonoLink Stats API

The Stats API from DonoLink — 1 operation(s) for stats.

GitHub OpenAPI

Operations 1

GET /stats/totaal Lees je donatie-totaal per periode #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/donolink:donolink-stats-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

donolink-stats-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DonoLink Developer Stats API
  version: 1.4.0
  description: 'Personal owner-bound API for activity, DonoLink bot configuration, alerts and donation totals. Explicit scopes: activity:read, bot:read, bot:write, alerts:write, donations:read. Existing keys retain activity:read only. 120 requests per account and 300 per IP per 60 seconds; unavailable shared limiter returns 503. Store keys server-side or in personal native secure storage. No payment writes, multi-customer OAuth, browser CORS or guaranteed activity delivery/retention. Imported donations retain their source platform.'
servers:
- url: https://donolink.nl/api/v1
security:
- ApiKey: []
tags:
- name: Stats
paths:
  /stats/totaal:
    get:
      operationId: getDonationTotal
      summary: Lees je donatie-totaal per periode
      description: Requires explicit donations:read. Sums paid donations (refunds deducted) since the period start. Periode doel falls back to vandaag when the goal has no start date.
      x-required-scope: donations:read
      parameters:
      - name: periode
        in: query
        required: true
        schema:
          type: string
          enum:
          - vandaag
          - 24uur
          - doel
          - altijd
      responses:
        '200':
          description: Totaal in cents en aantal donaties.
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/StatsTotaalResponse'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
        '503':
          $ref: '#/components/responses/Error'
      tags:
      - Stats
components:
  responses:
    Error:
      description: API error. Retry 429 and 503 after 60 seconds.
      headers:
        X-Request-Id:
          schema:
            type: string
        Retry-After:
          description: Present for 429 and 503
          schema:
            type: string
      content:
        application/json:
          schema:
            type: object
            required:
            - error
            properties:
              error:
                type: object
                required:
                - code
                - message
                - request_id
                properties:
                  code:
                    type: string
                  message:
                    type: string
                  request_id:
                    type: string
  schemas:
    StatsTotaalResponse:
      type: object
      required:
      - periode
      - totaalCent
      - aantal
      properties:
        periode:
          type: string
          enum:
          - vandaag
          - 24uur
          - doel
          - altijd
        totaalCent:
          type: integer
          minimum: 0
        aantal:
          type: integer
          minimum: 0
        currency:
          type: string
          description: 'Currency of totaalCent (minor units): uppercase ISO 4217 code of the creator account. Older servers omit it; treat a missing value as EUR.'
          enum:
          - EUR
          - PLN
          - SEK
          - DKK
          - CZK
          - HUF
          - RON
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      bearerFormat: dl_live_<64 lowercase hex characters>
      description: 'Personal API key with explicit scopes: activity:read, bot:read, bot:write, alerts:write, donations:read. Send as Authorization: Bearer dl_live_... . Existing keys without a stored scope list retain activity:read only. Never place keys in URLs or frontend bundles.'