DeFiLlama
DeFiLlama analytics from the free llama.fi JSON APIs behind defillama.com: stablecoin supply and history, protocol and chain TVL, fees/revenue and DEX/options volume, yield pools, token prices and the hacks dataset.
1 Firecrawl tool uses DeFiLlamaTry DeFiLlama now.
Choose an example or ask your own question.
const result = await firecrawl.scrape({
alexandria: {
provider: "defillama-com",
capability: "crypto/protocol_metrics",
options: {
history_limit: 5,
metric: "fees",
slug: "aave",
},
},
});This is a sample shape. Press Run to see live data from DeFiLlama.
{
"api_url": "https://api.llama.fi/summary/fees/aave?excludeTotalDataChartBreakdown=true&dataType=dailyFees",
"category": null,
"chain_breakdown": [
{
"chain": "Ethereum",
"total_24h": 1005050,
"total_30d": 29216545,
"total_7d": 6950493,
"total_all_time": 1952676500
},
{
"chain": "Plasma",
"total_24h": 105911,
"total_30d": 2884924,
"total_7d": 697009,
"total_all_time": 63676787
},
{
"chain": "Base",
"total_24h": 33810,
"total_30d": 991932,
"total_7d": 231967,
"total_all_time": 42243665
},
{
"chain": "Monad",
"total_24h": 32900,
"total_30d": 1136135,
"total_7d": 239239,
"total_all_time": 2453404
},
{
"chain": "Arbitrum",
"total_24h": 32799,
"total_30d": 914018,
"total_7d": 261108,
"total_all_time": 79225895
},
{
"chain": "Avalanche",
"total_24h": 32679,
"total_30d": 610092.73,
"total_7d": 176083,
"total_all_time": 91581071.5
},
{
"chain": "Mantle",
"total_24h": 19974,
"total_30d": 440628,
"total_7d": 102472,
"total_all_time": 6237893
},
{
"chain": "Polygon",
"total_24h": 9970,
"total_30d": 299636,
"total_7d": 69166,
"total_all_time": 31105678
},
{
"chain": "BSC",
"total_24h": 8495,
"total_30d": 214655,
"total_7d": 52830,
"total_all_time": 9631074
},
{
"chain": "X Layer",
"total_24h": 8416,
"total_30d": 221319,
"total_7d": 62161,
"total_all_time": 281752.29000000004
},
{
"chain": "Arc",
"total_24h": 5439,
"total_30d": 23071.57,
"total_7d": 23062,
"total_all_time": 28496.57
},
{
"chain": "OP Mainnet",
"total_24h": 2196,
"total_30d": 64048,
"total_7d": 15512,
"total_all_time": 12585449
},
{
"chain": "Gnosis",
"total_24h": 1601,
"total_30d": 47691,
"total_7d": 10987,
"total_all_time": 3602272
},
{
"chain": "MegaETH",
"total_24h": 1213,
"total_30d": 28213,
"total_7d": 6706,
"total_all_time": 2124195
},
{
"chain": "Sonic",
"total_24h": 507,
"total_30d": 10609,
"total_7d": 3884,
"total_all_time": 2344565
},
{
"chain": "Linea",
"total_24h": 490,
"total_30d": 14481,
"total_7d": 3237,
"total_all_time": 8259121
},
{
"chain": "Celo",
"total_24h": 59.38,
"total_30d": 1242.12,
"total_7d": 225.18,
"total_all_time": 276295.1300000001
},
{
"chain": "Scroll",
"total_24h": 52.76,
"total_30d": 1003.2299999999998,
"total_7d": 388.98,
"total_all_time": 4186517.04
},
{
"chain": "Metis",
"total_24h": 10,
"total_30d": 65.94,
"total_7d": 41.7,
"total_all_time": 263927.76000000024
},
{
"chain": "Soneium",
"total_24h": 6.66,
"total_30d": 150.72,
"total_7d": 56.06,
"total_all_time": 2030.7099999999996
},
{
"chain": "ZKsync Era",
"total_24h": 0.01,
"total_30d": 1082.34,
"total_7d": 699.36,
"total_all_time": 502832.49000000034
},
{
"chain": "Fantom",
"total_24h": 0,
"total_30d": 0,
"total_7d": 0,
"total_all_time": 66375.08
}
],
"chains": [
"Ethereum",
"Polygon",
"Avalanche",
"Fantom",
"Arbitrum",
"OP Mainnet",
"Metis",
"Base",
"Gnosis",
"BSC",
"Scroll",
"ZKsync Era",
"Linea",
"Celo",
"Sonic",
"Soneium",
"Plasma",
"Mantle",
"MegaETH",
"X Layer",
"Monad",
"Arc"
],
"child_protocols": [
"Aave V2",
"Aave V3",
"Aave V4"
],
"data_type": "dailyFees",
"display_name": "Aave",
"gecko_id": "aave",
"history": [
{
"date": 1790812800,
"value": 1299782
},
{
"date": 1790726400,
"value": 1301579
},
{
"date": 1790640000,
"value": 1255586
},
{
"date": 1790553600,
"value": 1252988
},
{
"date": 1790467200,
"value": 1278374
}
],
"history_total_points": 2128,
"id": "parent#aave",
"logo": "https://icons.llamao.fi/icons/protocols/aave",
"methodology": [
{
"description": "Include borrow interest, flashloan fee, liquidation fee and penalty paid by borrowers.",
"name": "Fees",
"protocol": "Aave V2"
},
{
"description": "Amount of fees go to Aave treasury.",
"name": "ProtocolRevenue",
"protocol": "Aave V2"
},
{
"description": "Amount of fees go to Aave treasury.",
"name": "Revenue",
"protocol": "Aave V2"
},
{
"description": "Amount of fees distributed to suppliers.",
"name": "SupplySideRevenue",
"protocol": "Aave V2"
},
{
"description": "Interest paid by borrowers",
"name": "UserFees",
"protocol": "Aave V2"
},
{
"description": "Include borrow interest, flashloan fee, liquidation fee, penalty paid by borrowers, swap fees from Paraswap, and Chainlink SVR (MEV recapture from Ethereum liquidations).",
"name": "Fees",
"protocol": "Aave V3"
},
{
"description": "Aave starts buy back AAVE tokens using Aave Treasury after 9th April 2025.",
"name": "HoldersRevenue",
"protocol": "Aave V3"
},
{
"description": "Amount of fees go to Aave treasury.",
"name": "ProtocolRevenue",
"protocol": "Aave V3"
},
{
"description": "Amount of fees go to Aave treasury.",
"name": "Revenue",
"protocol": "Aave V3"
},
{
"description": "Amount of fees distributed to suppliers.",
"name": "SupplySideRevenue",
"protocol": "Aave V3"
},
{
"description": "Interest paid by borrowers",
"name": "UserFees",
"protocol": "Aave V3"
},
{
"description": "Borrow interest paid by borrowers plus protocol share of liquidation bonuses.",
"name": "Fees",
"protocol": "Aave V4"
},
{
"description": "No revenue shared to AAVE holders.",
"name": "HoldersRevenue",
"protocol": "Aave V4"
},
{
"description": "Protocol share of borrow interest plus protocol share of liquidation bonuses.",
"name": "ProtocolRevenue",
"protocol": "Aave V4"
},
{
"description": "Protocol share of borrow interest plus protocol share of liquidation bonuses.",
"name": "Revenue",
"protocol": "Aave V4"
},
{
"description": "Interest distributed to depositors after protocol fee.",
"name": "SupplySideRevenue",
"protocol": "Aave V4"
},
{
"description": "Interest paid by borrowers",
"name": "UserFees",
"protocol": "Aave V4"
}
],
"methodology_url": "https://github.com/DefiLlama/dimension-adapters/blob/master/aave.ts",
"metric": "fees",
"name": "Aave",
"observed_at_ms": 1790847634916,
"parent_protocol": null,
"protocol_type": "protocol",
"slug": "aave",
"source_url": "https://defillama.com/fees/aave",
"totals": {
"change_1d": 3.66,
"change_1m": null,
"change_7d": null,
"total_1y": 733340512,
"total_24h": 1301579,
"total_30d": 37121539,
"total_48h_to_24h": 1255586,
"total_7d": 8907328,
"total_all_time": 2313355807
},
"url": "https://aave.com"
}Firecrawl tools
1Ready-made Firecrawl tools that call DeFiLlama.
Skills
Official skills using DeFiLlama
DeFi protocol fundamentals checkUse when a crypto fund research analyst evaluates a DeFi protocol token before an allocation. Reads total value locked and its trend, fees versus revenue retained, the token's price history, past exploits of the protocol, and any prediction markets about it, producing a fundamentals note with a revenue multiple and risk flags.
For one protocol (DeFiLlama slug) and its token. TVL shows usage, fees show demand, revenue shows what token holders may capture.
1. Usage and earnings
Read the protocol record and TVL history with
Protocol (slug, history_limit 365). Carry chains, category and the latest TVL.
Read 365 days of fees with
Protocol metrics (slug, metric fees, data_type dailyFees, history_limit 365) and again with data_type dailyRevenue. Revenue over fees is the take rate.
Rank it against its category with
Metrics overview (metric fees, category from step 1) to see whether it is gaining share.
2. Token
Read one year of token prices with
Price chart (coins the token's chain:address key, start the unix time one year back, period 1d, span 365). If the token trades on Coinbase, cross-check with
Get candles (product_id, granularity 86400).
3. Risk
Search past exploits with
Hacks (query the protocol name). Note amount, technique and whether funds were returned.
Search prediction markets about the protocol or token with
Query (q the name, limit_per_type 5) for market-implied event risk.
Write the fundamentals note
Usage: TVL now and one year ago, chains.
Earnings: annualised fees and revenue, take rate, category share trend.
Valuation: market cap over annualised revenue, if market cap is known from the price and supply; otherwise say it could not be computed.
Risk flags: exploit history, TVL concentration on one chain, any live prediction markets.
Sources: cite every number to its DeFiLlama, Coinbase or Polymarket record and date. Do not infer token supply.
Benchmarks
Finance benchmarksQuality, speed and cost, last 24 hours, across every agent call to DeFiLlama through Alexandria.
- Quality
- 97.7%
- Calls answered without a tool error
- Speed
- 1.4 s
- 95% of successful calls finish faster
- Cost
- 5 credits
- Firecrawl credits per call
- Calls
- 216
- Last 24 hours, every Alexandria user
| Tool | Quality | Speed | Calls |
|---|---|---|---|
| Price chart | 98.1% | 968 ms | 54 |
| Prices | 96.4% | 1.5 s | 28 |
| Yield pools | 92% | 587 ms | 25 |
| Protocol metrics | 100% | 792 ms | 21 |
| Chain tvl history | 100% | 1.4 s | 20 |