DefiLlama Fees API

The Fees API from DefiLlama — 3 operation(s) for fees.

OpenAPI Specification

defillama-fees-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: DefiLlama Public Coins Fees API
  version: 1.0.0
  description: DefiLlama is the largest open-source DeFi TVL and yield aggregator. The public REST API at api.llama.fi exposes TVL, prices, stablecoins, yields, DEX/options volumes, fees, and revenue datasets without authentication. The Pro API at pro-api.llama.fi provides higher rate limits and additional endpoints under a paid plan.
  contact:
    name: DefiLlama
    url: https://defillama.com/docs/api
  license:
    name: Open Data
    url: https://defillama.com
servers:
- url: https://api.llama.fi
  description: Free public API (no auth)
- url: https://coins.llama.fi
  description: Coins and prices API
- url: https://stablecoins.llama.fi
  description: Stablecoins API
- url: https://yields.llama.fi
  description: Yields API
- url: https://pro-api.llama.fi/{apiKey}
  description: Pro API (paid)
  variables:
    apiKey:
      default: YOUR_API_KEY
      description: DefiLlama Pro API key
security: []
tags:
- name: Fees
paths:
  /overview/fees:
    get:
      tags:
      - Fees
      summary: Protocol fees and revenue overview
      operationId: feesOverview
      responses:
        '200':
          description: Fees overview
          content:
            application/json:
              schema:
                type: object
  /overview/fees/{chain}:
    get:
      tags:
      - Fees
      summary: Fees and revenue by chain
      operationId: feesOverviewByChain
      parameters:
      - in: path
        name: chain
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Fees by chain
          content:
            application/json:
              schema:
                type: object
  /summary/fees/{protocol}:
    get:
      tags:
      - Fees
      summary: Protocol fees history
      operationId: feesSummaryProtocol
      parameters:
      - in: path
        name: protocol
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Fees summary
          content:
            application/json:
              schema:
                type: object
components:
  securitySchemes:
    apiKeyPath:
      type: apiKey
      in: query
      name: apiKey
      description: Pro API key is supplied as a path segment in the base URL (pro-api.llama.fi/{apiKey}); this scheme is a placeholder.