GET /summary/fees/{protocol}

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/defillama/summary/fees/{protocol}Cache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

One protocol's fees and revenue history (heavy: ~1.3 MB).

Parameters

nameintypedescription
protocolpathstrrequiredProtocol slug (lowercase, as in DefiLlama URLs), e.g. aave, lido, curve-dex
example: aave

Response

type: object
data key: totalDataChart
pagination: none
sample: {
  "id": "str",
  "name": "str",
  "url": "str",
  "description": "str",
  "logo": "str",
  "chains": "array[21]",
  "gecko_id": "str",
  "cmcId": "str",
  "treasury": "str",
  "twitter": "str",
  "governanceID": "array[2]",
  "wrongLiquidity": "bool",
  "github": "array[2]",
  "stablecoins": "array[1]",
  "symbol": "str",
  "address": "str",
  "linkedProtocols": "array[4]",
  "childProtocols": "

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/defillama/summary/fees/aave"