Skip to main content
POST
/
api
/
defillama
/
fees
/defillama/fees
curl --request POST \
  --url https://api.anysite.io/api/defillama/fees \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "protocol": "<string>",
  "timeout": 300
}
'
[
  {
    "id": "<string>",
    "name": "<string>",
    "alias": "<string>",
    "@type": "@defillama_protocol_fees",
    "category": "<string>",
    "description": "<string>",
    "image": "<string>",
    "chains": [],
    "parent_protocol": "<string>",
    "child_protocols": [],
    "methodology_url": "<string>",
    "total_24h": 123,
    "total_7d": 123,
    "total_30d": 123,
    "total_1y": 123,
    "annualized_1y": 123,
    "total_all_time": 123,
    "change_1d": 123,
    "chain_breakdown": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
protocol
string
required

Protocol slug or a DeFiLlama fees URL

Minimum string length: 1
Examples:

"uniswap"

"aave"

"lido"

"https://defillama.com/fees/uniswap"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
string
required
name
string
required
alias
string
required
@type
string
default:@defillama_protocol_fees
category
string | null
description
string | null
image
string | null
chains
string[]
parent_protocol
string | null
child_protocols
string[]
methodology_url
string | null
total_24h
number | null
total_7d
number | null
total_30d
number | null
total_1y
number | null
annualized_1y
number | null
total_all_time
number | null
change_1d
number | null
chain_breakdown
DefillamaFeesChainBreakdown · object[]