Firecrawl Alexandria
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.
TRY ASKING
Codefollows the fields above
const result = await firecrawl.scrape({
alexandria: {
provider: "defillama-com",
capability: "crypto/protocol_metrics",
options: {
history_limit: 5,
metric: "fees",
slug: "aave",
},
},
});2Response example
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.
Benchmarks
Finance benchmarksQuality, speed and cost, last 24 hours, across every agent call to DeFiLlama through Alexandria.
- Quality
- 99%
- Calls answered without a tool error
- Speed
- 45.5 s
- 95% of successful calls finish faster
- Cost
- 5 credits
- Firecrawl credits per call
- Calls
- 105
- Last 24 hours, every Alexandria user
| Tool | Quality | Speed | Calls |
|---|---|---|---|
| Prices | 100% | 393 ms | 25 |
| Protocol metrics | 100% | 717 ms | 21 |
Related providers
Browse the library//
Get started
//
Give your agent DeFiLlama.
One API key for the live web and every provider in Alexandria.
Are you an AI agent? See setup options