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",
options: {
history_limit: 5,
slug: "lido",
token_limit: 5,
},
},
});This is a sample shape. Press Run to see live data from DeFiLlama.
{
"api_url": "https://api.llama.fi/protocol/lido",
"category": "Liquid Staking",
"chains": [
"Terra",
"Moonriver",
"Moonbeam",
"Ethereum",
"Solana"
],
"cmc_id": "8000",
"current_chain_tvls": [
{
"chain": "Ethereum",
"tvl_usd": 26923348741.06953
},
{
"chain": "Solana",
"tvl_usd": 6080809.55811
},
{
"chain": "Moonbeam",
"tvl_usd": 0
},
{
"chain": "Moonriver",
"tvl_usd": 0
},
{
"chain": "Terra",
"tvl_usd": 0
}
],
"description": "Liquid staking for Ethereum and Polygon. Daily staking rewards, no lock ups.",
"gecko_id": "lido-dao",
"hacks": [],
"hallmarks": [
{
"date": 1610496000,
"label": "Start of incentives for curve pool"
},
{
"date": 1651881600,
"label": "UST depeg"
},
{
"date": 1654819200,
"label": "stETH depeg"
},
{
"date": 1667865600,
"label": "FTX collapse"
},
{
"date": 1684108800,
"label": "ETH Withdrawal Activation"
}
],
"id": "182",
"is_parent": false,
"logo": "https://icons.llamao.fi/icons/protocols/lido",
"mcap_usd": 355671379.4194845,
"name": "Lido",
"observed_at_ms": 1790118293234,
"other_protocols": [],
"raises": [
{
"amount_usd_millions": 73,
"date": 1620172800,
"lead_investors": [
"Paradigm"
],
"other_investors": [
"Coinbase Ventures",
"3AC",
"Jump Trading",
"Alameda Research",
"DCG"
],
"round": "Private token sale",
"source": null
},
{
"amount_usd_millions": 70,
"date": 1646265600,
"lead_investors": [
"a16z"
],
"other_investors": [],
"round": null,
"source": null
},
{
"amount_usd_millions": 24,
"date": 1663113600,
"lead_investors": [
"Dragonfly Capital"
],
"other_investors": [],
"round": "Treasury Diversification",
"source": null
}
],
"slug": "lido",
"source_url": "https://defillama.com/protocol/lido",
"symbol": "LDO",
"top_tokens": [
{
"symbol": "WETH",
"value_usd": 26922566762.52227
},
{
"symbol": "SOL",
"value_usd": 6080809.55811
},
{
"symbol": "WMATIC",
"value_usd": 781978.54727
}
],
"tvl_as_of": 1790112095,
"tvl_history": [
{
"date": 1790112095,
"tvl_usd": 26929429550
},
{
"date": 1790035200,
"tvl_usd": 27121629192
},
{
"date": 1789948800,
"tvl_usd": 26285013053
},
{
"date": 1789862400,
"tvl_usd": 25716468110
},
{
"date": 1789776000,
"tvl_usd": 25632504262
}
],
"tvl_history_total_points": 2104,
"tvl_usd": 26929429550,
"twitter": "LidoFinance",
"url": "https://lido.fi/"
}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 |