DefiLlama
Use DefiLlama APIs through OpenAny to research protocol TVL, fees, revenue, stablecoin supply, token-price history and exchange-volume datasets. Select the supported network and supply the token, wallet, contract, market or time-range identifiers required by the operation. Research market activity, compare onchain records and build dashboards that retain the source network, asset identity and observation context. Network support, historical depth and available response fields differ by endpoint. Individual API pages provide supported parameters, available implementations, request and response examples, and usage pricing.
- Endpoints / Providers
- 28 / 1In this collection
- Requests
- —Loading...
- Success rate
- —Loading...
- Response P50
- —Loading...
DefiLlama
Choose an API, then continue with your agent.
- Endpoints
- 28
- Providers
- 1
Each endpoint publishes its own rate and billing unit.
View APIsConnect your agentOn this page
Available APIs
DefiLlama All Protocol Fees API
Get DefiLlama All Protocol Fees data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, pass parameters such as dataType, excludeTotalDataChart, and retrieve structured data including protocols, protocol name, chains, and total data chart breakdown to build defi revenue leaderboards, track ecosystem fee cycles, and screen monetization spikes.
DefiLlama Historical Token Prices API
Get DefiLlama Historical Token Prices data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, configure supported query parameters and filters, and retrieve structured data including coins, <coin>, price, token ticker symbol, and on-chain token decimal places for value historical snapshots, audit on-chain events, and reconstruct historical tvl.
DefiLlama Current Token Prices API
Get DefiLlama Current Token Prices data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, configure supported query parameters and filters, and retrieve structured data including coins, <coin>, token ticker symbol, confidence, and on-chain token decimal places for value multi-chain portfolios, price lp and vault positions, and validate quote quality.
DefiLlama Protocol Fees Summary API
Get DefiLlama Protocol Fees Summary data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, pass parameters such as dataType, and retrieve structured data including defiLlama protocol identifier, protocol display name, chains, total24h, and total7d for compute p/f and p/s ratios, monitor revenue health, and chart historical monetization.
DefiLlama Chain Options Volumes API
Get DefiLlama Chain Options Volumes data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, pass parameters such as dataType, excludeTotalDataChart, and retrieve structured data including resolved blockchain name, all chains, total24h, total7d, and total30d to compare options hubs by chain, inspect premium vs notional volume, and audit protocol methodologies.
DefiLlama DEX Protocol Volume API
Get DefiLlama DEX Protocol Volume data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, pass parameters such as excludeTotalDataChart, and retrieve structured data including DEX protocol display name, chains, total24h, total all time, and total data chart to track dex market share, control payload size, and plot historical venue volume.
DefiLlama Open Interest DEX API
Get DefiLlama Open Interest DEX data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, pass parameters such as excludeTotalDataChart, and retrieve structured data including all chains, protocols, derivatives protocol name, display name, and chains to compare reported open interest, review percentage changes, and combine distinct market metrics.
DefiLlama Protocol Current TVL API
Get DefiLlama Protocol Current TVL data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, configure supported query parameters and filters, and retrieve structured data including structured JSON records, identifiers, and response metadata to power lightweight kpi badges, run threshold alerts, and enrich ai agent answers.
DefiLlama Stablecoin Mcap History API
Get DefiLlama Stablecoin Mcap History data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, pass parameters such as stablecoin, and retrieve structured data including date, total circulating, and pegged usd to compare circulating totals, track single-asset growth, and build supply reports, ready for production pipelines and AI agent automation.
DefiLlama Token Price Chart API
Get DefiLlama Token Price Chart data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, pass parameters such as period, span, start, and retrieve structured data including coins, <coin>, token ticker symbol, on-chain token decimal places, and confidence to render token price charts, compute realized volatility, and compare requested sampling intervals.
DefiLlama Stablecoin Chains API
Get DefiLlama Stablecoin Chains data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, configure supported query parameters and filters, and retrieve structured data including total circulating usd and pegged usd to compare reported chain totals, collect supply snapshots, and enrich chain profiles, ready for production pipelines and AI agent automation.
DefiLlama All Chains TVL API
Get DefiLlama All Chains TVL data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, configure supported query parameters and filters, and retrieve structured data including blockchain name and slug, gecko id, and cmc id to rank blockchain ecosystems, resolve chain slugs, and cross-reference asset metadata.
DefiLlama Protocol Historical TVL API
Get DefiLlama Protocol Historical TVL data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, configure supported query parameters and filters, and retrieve structured data including defiLlama protocol identifier, protocol display name, protocol summary description, mcap, and current chain tvls to analyze multi-chain expansion, separate borrowed vs supplied tvl, and build protocol research pages.
DefiLlama Stablecoin History API
Get DefiLlama Stablecoin History data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, configure supported query parameters and filters, and retrieve structured data including stablecoin numeric identifier, stablecoin full name, stablecoin ticker symbol, backing or stabilization mechanism, and current reported USD price to compare chain supply snapshots, review peg and bridge metadata, and power treasury risk monitors.
DefiLlama Token Price Change API
Get DefiLlama Token Price Change data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, pass parameters such as lookForward, period, timestamp, and retrieve structured data including coins and <coin> to build top movers tables, measure post-event performance, and trigger volatility alerts, ready for production pipelines and AI agent automation.
DefiLlama Batch Token Prices API
Get DefiLlama Batch Token Prices data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, pass parameters such as coins, and retrieve structured data including coins, <coin>, token ticker symbol, prices, and confidence for compute transaction cost basis, backtest multi-asset strategies, and reduce request fan-out, ready for production pipelines and AI agent automation.
DefiLlama All DEX Volumes API
Get DefiLlama All DEX Volumes data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, pass parameters such as excludeTotalDataChart, and retrieve structured data including all chains, protocols, protocol canonical name, protocol display name, and total data chart to build dex leaderboards, discover valid chain filters, and track aggregate spot dex volume.
DefiLlama All Options Volumes API
Get DefiLlama All Options Volumes data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, pass parameters such as dataType, excludeTotalDataChart, and retrieve structured data including options protocol name and total data chart to rank options venues globally, track market-wide options growth, and drill into chains or protocols.
DefiLlama Chain DEX Volumes API
Get DefiLlama Chain DEX Volumes data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, pass parameters such as excludeTotalDataChart, and retrieve structured data including protocols, DEX protocol name, total24h, and total data chart to track l2 dex dominance, monitor chain trading surges, and build ecosystem dashboards.
DefiLlama First Token Prices API
Get DefiLlama First Token Prices data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, configure supported query parameters and filters, and retrieve structured data including coins, <coin>, token ticker symbol, and timestamp for set backfill start dates, measure lifetime returns, and audit multi-chain token launches.
DefiLlama Chain Historical TVL API
Get DefiLlama Chain Historical TVL data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, configure supported query parameters and filters, and retrieve structured data including structured JSON records, identifiers, and response metadata for chart l1/l2 adoption, compare ecosystem drawdowns, and compute chain market share, ready for production pipelines and AI agent automation.
DefiLlama Chain Protocol Fees API
Get DefiLlama Chain Protocol Fees data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, pass parameters such as dataType, excludeTotalDataChart, and retrieve structured data including protocols, protocol name, total24h, total data chart, and total data chart breakdown to rank top-earning apps per chain, compare chain fee economies, and chart chain fee trends.
DefiLlama Global Historical TVL API
Get DefiLlama Global Historical TVL data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, configure supported query parameters and filters, and retrieve structured data including date to track macro defi cycles, benchmark chain dominance, and generate executive briefings, ready for production pipelines and AI agent automation.
DefiLlama Stablecoin Prices API
Get DefiLlama Stablecoin Prices data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, configure supported query parameters and filters, and retrieve structured data including prices, dai, usdc, and usdt to analyze depeg severity, feed risk models, and cross-check supply and price, ready for production pipelines and AI agent automation.
DefiLlama Options Protocol Volume API
Get DefiLlama Options Protocol Volume data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, pass parameters such as dataType, and retrieve structured data including defiLlama protocol identifier, protocol display name, chains, total24h, and total30d to compare notional vs premium volume, inspect multi-chain options flow, and monitor derivatives momentum.
DefiLlama Closest Block API
Get DefiLlama Closest Block data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, configure supported query parameters and filters, and retrieve structured data including height for pin archive-node eth_call queries, align governance snapshots, and pair blocks with historical prices, ready for production pipelines and AI agent automation.
DefiLlama All Protocols TVL API
Get DefiLlama All Protocols TVL data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, configure supported query parameters and filters, and retrieve structured data including defiLlama protocol ID, protocol name, protocol token symbol, category, and chains to build defi tvl leaderboards, discover protocol slugs, and track capital rotation.
DefiLlama Stablecoins List API
Get DefiLlama Stablecoins List data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, pass parameters such as includePrices, and retrieve structured data including pegged assets, id, stablecoin full name, stablecoin ticker symbol, and peg mechanism to discover stablecoin asset ids, calculate supply velocity, and audit issuer and chain exposure.
Common questions
How are DefiLlama APIs priced?
Each endpoint publishes its own rate and billing unit. Compare the selected implementation and request-specific conditions; a collection starting price is not a quote for every request.
How do I authenticate DefiLlama requests?
Use your OpenAny API key from a secure environment variable for supported account-based calls. Never paste secrets into prompts, documentation examples or public logs.
Are all implementations interchangeable?
No. Read each endpoint request schema, response examples and limitations before execution. Different suppliers may expose different fields and behavior; approve the budget before a paid call.