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 DeFiLlama

Try DeFiLlama now.

Choose an example or ask your own question.

DeFiLlama
TRY ASKING
1Request
stringRequired

`fees` (fees and revenue), `dexs` (spot DEX volume) or `options` (options volume).

string

Exact DeFiLlama category; case-insensitive.

string

Chain to scope to, as DeFiLlama writes it (e.g. `Ethereum`); omit for all chains.

string

Opaque cursor from a previous page's `next_continuation`.

number

Items per page (1..100, default 20).

5 credits
Codefollows the fields above
const result = await firecrawl.scrape({
  alexandria: {
    provider: "defillama-com",
    capability: "crypto/metrics_overview",
    options: {
      limit: 5,
      metric: "fees",
    },
  },
});
2Response example

This is a sample shape. Press Run to see live data from DeFiLlama.

{
  "api_url": "https://api.llama.fi/overview/fees?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyFees",
  "chain": "all",
  "chains_available": 362,
  "count": 5,
  "data_type": "dailyFees",
  "metric": "fees",
  "next_continuation": "5",
  "observed_at_ms": 1790118366763,
  "protocols": [
    {
      "category": "Stablecoin Issuer",
      "chains": [
        "Off Chain"
      ],
      "change_1d": 0.5,
      "change_1m": 7.65,
      "change_7d": 1.76,
      "display_name": "Tether",
      "id": "5009",
      "methodology_url": "https://github.com/DefiLlama/dimension-adapters/blob/master/fees/tether",
      "name": "Tether",
      "parent_protocol": null,
      "protocol_type": "protocol",
      "slug": "tether",
      "source_url": "https://defillama.com/fees/tether",
      "total_1y": 5923224679,
      "total_24h": 17126963,
      "total_30d": 491186694,
      "total_7d": 119475037,
      "total_all_time": 19654767958
    },
    {
      "category": "Stablecoin Issuer",
      "chains": [
        "Ethereum",
        "Off Chain"
      ],
      "change_1d": 0.62,
      "change_1m": 8.67,
      "change_7d": 1.91,
      "display_name": "Circle USDC",
      "id": "5008",
      "methodology_url": "https://github.com/DefiLlama/dimension-adapters/blob/master/fees/circle.ts",
      "name": "Circle USDC",
      "parent_protocol": "parent#circle",
      "protocol_type": "protocol",
      "slug": "circle-usdc",
      "source_url": "https://defillama.com/fees/circle-usdc",
      "total_1y": 2371301734,
      "total_24h": 6996430,
      "total_30d": 199891075,
      "total_7d": 48610971,
      "total_all_time": 7439283290
    },
    {
      "category": "Derivatives",
      "chains": [
        "Hyperliquid L1"
      ],
      "change_1d": 108.7,
      "change_1m": 58.24,
      "change_7d": 57.96,
      "display_name": "Hyperliquid Perps",
      "id": "5507",
      "methodology_url": "https://github.com/DefiLlama/dimension-adapters/blob/master/dexs/hyperliquid-perp",
      "name": "Hyperliquid Perps",
      "parent_protocol": "parent#hyperliquid",
      "protocol_type": "protocol",
      "slug": "hyperliquid-perps",
      "source_url": "https://defillama.com/fees/hyperliquid-perps",
      "total_1y": 879127257,
      "total_24h": 4440326,
      "total_30d": 73924506,
      "total_7d": 20042586,
      "total_all_time": 1486548639
    },
    {
      "category": "Dexs",
      "chains": [
        "Solana"
      ],
      "change_1d": 3.46,
      "change_1m": 11.37,
      "change_7d": 3.05,
      "display_name": "PumpSwap",
      "id": "5936",
      "methodology_url": "https://github.com/DefiLlama/dimension-adapters/blob/master/fees/pump-swap",
      "name": "PumpSwap",
      "parent_protocol": "parent#pump",
      "protocol_type": "protocol",
      "slug": "pumpswap",
      "source_url": "https://defillama.com/fees/pumpswap",
      "total_1y": 656851860,
      "total_24h": 3357626,
      "total_30d": 102350092,
      "total_7d": 24255668,
      "total_all_time": 864697768
    },
    {
      "category": "Dexs",
      "chains": [
        "Ethereum",
        "Unichain",
        "OP Mainnet",
        "Base",
        "Arbitrum",
        "Polygon",
        "Blast",
        "Zora",
        "World Chain",
        "Ink",
        "Soneium",
        "Avalanche",
        "BSC",
        "Monad",
        "X Layer",
        "Celo",
        "Tempo",
        "MegaETH",
        "Robinhood Chain",
        "Arc"
      ],
      "change_1d": 38.04,
      "change_1m": 34.18,
      "change_7d": -7.27,
      "display_name": "Uniswap V4",
      "id": "5690",
      "methodology_url": "https://github.com/DefiLlama/dimension-adapters/blob/master/dexs/uniswap-v4.ts",
      "name": "Uniswap V4",
      "parent_protocol": "parent#uniswap",
      "protocol_type": "protocol",
      "slug": "uniswap-v4",
      "source_url": "https://defillama.com/fees/uniswap-v4",
      "total_1y": 396612914,
      "total_24h": 3034050,
      "total_30d": 133101559,
      "total_7d": 21651807,
      "total_all_time": 474949826
    }
  ],
  "total_matches": 2745,
  "totals": {
    "change_1d": 20.98,
    "change_1m": 30.32,
    "change_7d": 11.84,
    "total_1y": 23996166622.56891,
    "total_24h": 89245247.36999995,
    "total_30d": 2405718858.9699836,
    "total_48h_to_24h": 73771292.37000002,
    "total_7d": 558035999.3499981,
    "total_all_time": 119158852836.27008
  }
}

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

  1. Read the protocol record and TVL history with Protocol (slug, history_limit 365). Carry chains, category and the latest TVL.

  2. 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.

  3. Rank it against its category with Metrics overview (metric fees, category from step 1) to see whether it is gaining share.

2. Token

  1. 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

  1. Search past exploits with Hacks (query the protocol name). Note amount, technique and whether funds were returned.

  2. 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.

View skill

Quality, 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
Quality and speed of each tool, last 24 hours
ToolQualitySpeedCalls
Price chart98.1%968 ms54
Prices96.4%1.5 s28
Yield pools92%587 ms25
Protocol metrics100%792 ms21
Chain tvl history100%1.4 s20
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