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

Chain name as DeFiLlama writes it; case-insensitive.

string

Exact DeFiLlama classification (e.g. `Oracle Manipulation`, `Access Control`); case-insensitive.

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/hacks",
    options: {
      limit: 5,
    },
  },
});
2Response example

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

api_url
https://api.llama.fi/hacks
count
5
next_continuation
5
observed_at_ms
1790118424363
total_matches
1281
amount_usdbridge_hackchainsclassificationdatedefillama_idlanguagenameparent_protocol_idreturned_funds_usdsourcesource_urltarget_typetechnique
4400000falseNeutronGovernance17900352004993RustDropdefillama.com/hacksDeFi ProtocolMalicious Proposal
4900000falseNeutronGovernance17900352003117RustAstroportdefillama.com/hacksDeFi ProtocolMalicious Proposal
16380falseBaseAccess Control1789948800SolidityThe Internet Tokendefillama.com/hacksTokenArbitrary External Call
1530000trueEthereumKey Compromise1789776000SolidityFetch.aidefillama.com/hacksDeFi ProtocolPrivate Key Compromised
462730falseEthereumKey Compromise1789776000SolidityNuNetdefillama.com/hacksTokenPrivate Key Compromised

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