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
string[]Required

coins Separate values with commas.

numberRequired

string

Spacing: a number followed by `m`, `h`, `d` or `w` (e.g. `1d`, `4h`); default `1d`.

number

Number of points (1..500, default 30).

5 credits
Codefollows the fields above
const result = await firecrawl.scrape({
  alexandria: {
    provider: "defillama-com",
    capability: "crypto/price_chart",
    options: {
      coins: [
        "coingecko:bitcoin",
      ],
      period: "1d",
      span: 5,
      start: 1700000000,
    },
  },
});
2Response example

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

{
  "api_url": "https://coins.llama.fi/chart/coingecko:bitcoin?start=1700000000&span=5&period=1d",
  "count": 1,
  "missing": [],
  "observed_at_ms": 1790118334606,
  "series": [
    {
      "coin": "coingecko:bitcoin",
      "confidence": 0.99,
      "points": [
        {
          "price": 35625,
          "timestamp": 1700000098
        },
        {
          "price": 37553,
          "timestamp": 1700086497
        },
        {
          "price": 36066,
          "timestamp": 1700172896
        },
        {
          "price": 36463,
          "timestamp": 1700259299
        },
        {
          "price": 36590.13756569477,
          "timestamp": 1700345529
        }
      ],
      "symbol": "BTC"
    }
  ]
}

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