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: List all protocols along with summaries of their fees and revenue and dataType history data
List all protocols along with summaries of their fees and revenue and dataType history data with the DeFiLlama API. The request takes an exclude total data chart. Compare DeFi protocol activity over time in a research dashboard. The GET request schema also lists excludeTotalDataChart, excludeTotalDataChartBreakdown. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
DefiLlama: Get historical prices of tokens by contract address
Get historical prices of tokens by contract address
DefiLlama: Get current prices of tokens by contract address
Retrieve current prices of tokens by contract address with the DeFiLlama API. The request takes a coins. Use it in blockchain research or an on-chain monitoring dashboard. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
DefiLlama: Get summary of protocol fees and revenue with historical data
Get summary of protocol fees and revenue with historical data
DefiLlama: List all options dexs along with summaries of their volumes and dataType history data filtering by chain
List all options dexs along with summaries of their volumes and dataType history data filtering by chain with the DeFiLlama API. The request takes a chain and an exclude total data chart. Use it in financial research or market monitoring. The GET request schema also lists excludeTotalDataChart, excludeTotalDataChartBreakdown. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
DefiLlama: Get summary of dex volume with historical data
Get summary of dex volume with historical data
DefiLlama: List all open interest dex exchanges along with summaries of their open interest
List all open interest dex exchanges along with summaries of their open interest with the DeFiLlama API. The request takes an exclude total data chart. Use it in financial research or market monitoring. The GET request schema also lists excludeTotalDataChart, excludeTotalDataChartBreakdown. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
DefiLlama: Simplified endpoint to get current TVL of a protocol
Simplified endpoint to get current TVL of a protocol
DefiLlama: Get historical mcap sum of all stablecoins
Retrieve historical mcap sum of all stablecoins with the DeFiLlama API. Review the selected endpoint’s request fields before calling. Use it in financial research or market monitoring. The GET request schema also lists stablecoin. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
DefiLlama: Get token prices at regular time intervals
Retrieve token prices at regular time intervals with the DeFiLlama API. The request takes a coins. Use it in financial research or market monitoring. The GET request schema also lists start, end. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
DefiLlama: Get current mcap sum of all stablecoins on each chain
Get current mcap sum of all stablecoins on each chain
DefiLlama: Get current TVL of all chains
Retrieve current TVL of all chains with the DeFiLlama API. Review the selected endpoint’s request fields before calling. Track protocol liquidity in DeFi research or portfolio dashboards.
DefiLlama: Get historical TVL of a protocol and breakdowns by token and chain
Get historical TVL of a protocol and breakdowns by token and chain
DefiLlama: Get historical mcap and historical chain distribution of a stablecoin
Retrieve historical mcap and historical chain distribution of a stablecoin with the DeFiLlama API. The request takes an asset. Monitor stablecoin supply across markets or chains. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
DefiLlama: Get percentage change in price over time
Retrieve percentage change in price over time with the DeFiLlama API. The request takes a coins. Build a market research view or track changes over time. The GET request schema also lists timestamp, lookForward. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
DefiLlama: Get historical prices for multiple tokens at multiple different timestamps
Retrieve historical prices for multiple tokens at multiple different timestamps with the DeFiLlama API. The request takes a coins. Use it in financial research or market monitoring. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
DefiLlama: List all dexs along with summaries of their volumes and dataType history data
List all dexs along with summaries of their volumes and dataType history data with the DeFiLlama API. The request takes an exclude total data chart. Use it in financial research or market monitoring. The GET request schema also lists excludeTotalDataChart, excludeTotalDataChartBreakdown. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
DefiLlama: List all options dexs along with summaries of their volumes and dataType history data
List all options dexs along with summaries of their volumes and dataType history data with the DeFiLlama API. The request takes an exclude total data chart. Use it in financial research or market monitoring. The GET request schema also lists excludeTotalDataChart, excludeTotalDataChartBreakdown. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
DefiLlama: List all dexs along with summaries of their volumes and dataType history data filtering by chain
List all dexs along with summaries of their volumes and dataType history data filtering by chain with the DeFiLlama API. The request takes a chain and an exclude total data chart. Use it in financial research or market monitoring. The GET request schema also lists excludeTotalDataChart, excludeTotalDataChartBreakdown. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
DefiLlama: Get earliest timestamp price record for coins
Retrieve earliest timestamp price record for coins with the DeFiLlama API. The request takes a coins. Build a market research view or track changes over time. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
DefiLlama: Get historical TVL (excludes liquid staking and double counted tvl) of a chain
Retrieve historical TVL (excludes liquid staking and double counted tvl) of a chain with the DeFiLlama API. The request takes a chain. Track protocol liquidity in DeFi research or portfolio dashboards.
DefiLlama: List all protocols along with summaries of their fees and revenue and dataType history data by chain
List all protocols along with summaries of their fees and revenue and dataType history data by chain with the DeFiLlama API. The request takes a chain and an exclude total data chart. Compare DeFi protocol activity over time in a research dashboard. The GET request schema also lists excludeTotalDataChart, excludeTotalDataChartBreakdown. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
DefiLlama: Get historical TVL (excludes liquid staking and double counted tvl) of DeFi on all chains
Retrieve historical TVL (excludes liquid staking and double counted tvl) of DeFi on all chains with the DeFiLlama API. Review the selected endpoint’s request fields before calling. Track protocol liquidity in DeFi research or portfolio dashboards.
DefiLlama: Get historical prices of all stablecoins
Retrieve historical prices of all stablecoins with the DeFiLlama API. Review the selected endpoint’s request fields before calling. Use it in financial research or market monitoring. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
DefiLlama: Get summary of options dex volume with historical data
Get summary of options dex volume with historical data
DefiLlama: Get the closest block to a timestamp
Retrieve the closest block to a timestamp with the DeFiLlama API. The request takes a chain and a timestamp. Use it in financial research or market monitoring. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
DefiLlama: List all protocols on defillama along with their tvl
List all protocols on defillama along with their tvl via API. Review the selected endpoint’s request fields before calling. Track protocol liquidity in DeFi research or portfolio dashboards.
DefiLlama: List all stablecoins along with their circulating amounts
List all stablecoins along with their circulating amounts with the DeFiLlama API. Review the selected endpoint’s request fields before calling. Use it in financial research or market monitoring. The GET request schema also lists includePrices. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
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.