131 actions · from $0.0003 / call
DefiLlama
DefiLlama API for AI agents
TVL, token prices, yields and stablecoins. DefiLlama gives your agent 131 actions through one OMOB API key, starting from $0.0003 / call, billed per call to one prepaid balance. It works from ChatGPT and Claude through one MCP connector, and from the SDK, CLI or REST.
On-chain data: protocol TVL, token prices, yields, fees and stablecoin supply.
Part of Money & finance
Actions
Every action: POST /v1/tools/runs { "tool": "<name>", "input": { … } }
- DefiLlama
Protocol TVL
defillama.protocol
TVL and chain breakdown for a protocol.
Parameters Parameter Description protocolstring · requiredProtocol name or slug, e.g. aave. Example response
{ "protocol": "aave", "tvl_usd": 41200000000, "chains": { "ethereum": 0.71, "base": 0.08 } }Free - DefiLlama
Get list of all institutions with Digital Asset Treasury data
defillama.get-list-of-all-institutions-with-digital-asset-treasury-dat
$0.0006 / call - DefiLlama
Get historical TVL chart for a protocol broken down by token
defillama.get-historical-tvl-chart-for-a-protocol-broken-down-by-token
$0.0006 / call - DefiLlama
Get financial statements for a company
defillama.get-financial-statements-for-a-company
$0.0006 / call - DefiLlama
Overview of all forks accross all protocols
defillama.overview-of-all-forks-accross-all-protocols
$0.0006 / call - DefiLlama
Exchange rates and ETH peg of liquid staking tokens
defillama.exchange-rates-and-eth-peg-of-liquid-staking-tokens
$0.0006 / call - DefiLlama
Get tradeable markets for a pre-IPO company
defillama.get-tradeable-markets-for-a-pre-ipo-company
$0.0006 / call - DefiLlama
Retrieve daily borrow-side history for a borrow market
defillama.retrieve-daily-borrow-side-history-for-a-borrow-market
$0.0006 / call - DefiLlama
List all protocols along with summaries of their fees and revenue…
defillama.list-all-protocols-along-with-summaries-of-their-fees-and-re
List all protocols along with summaries of their fees and revenue and dataType history data
$0.0003 / call - DefiLlama
Get token prices at regular time intervals
defillama.get-token-prices-at-regular-time-intervals
$0.0003 / call - DefiLlama
Get summary of options dex volume with historical data
defillama.get-summary-of-options-dex-volume-with-historical-data
$0.0003 / call - DefiLlama
List all stablecoins along with their circulating amounts
defillama.list-all-stablecoins-along-with-their-circulating-amounts
$0.0003 / call - DefiLlama
Get category chain dimension data overview
defillama.get-category-chain-dimension-data-overview
$0.0006 / call - DefiLlama
Get chain historical timeseries chart data
defillama.get-chain-historical-timeseries-chart-data
$0.0006 / call - DefiLlama
Get protocol historical timeseries chart data
defillama.get-protocol-historical-timeseries-chart-data
$0.0006 / call - DefiLlama
Get chart of narratives based on category performance (with…
defillama.get-chart-of-narratives-based-on-category-performance-with
Get chart of narratives based on category performance (with individual coins weighted by mcap)
$0.0006 / call - DefiLlama
Lists the amount of a certain token within all protocols
defillama.lists-the-amount-of-a-certain-token-within-all-protocols
Lists the amount of a certain token within all protocols. Data for the Token Usage page
$0.0006 / call - DefiLlama
Get protocol breakdown timeseries chart data by chain
defillama.get-protocol-breakdown-timeseries-chart-data-by-chain
$0.0006 / call - DefiLlama
Get filings for a company
defillama.get-filings-for-a-company
$0.0006 / call - DefiLlama
Get categories available for a dimension
defillama.get-categories-available-for-a-dimension
$0.0006 / call - DefiLlama
Retrieve the latest data for all borrow markets
defillama.retrieve-the-latest-data-for-all-borrow-markets
$0.0006 / call - DefiLlama
List all protocols on our Treasuries dashboard
defillama.list-all-protocols-on-our-treasuries-dashboard
$0.0006 / call - DefiLlama
Get chain breakdown timeseries chart data by protocol/oracle
defillama.get-chain-breakdown-timeseries-chart-data-by-protocol-oracle
$0.0006 / call - DefiLlama
Get dimension data overview
defillama.get-dimension-data-overview
$0.0006 / call
Show all 131 actions
- DefiLlama
Overview of all categories accross all protocols
defillama.overview-of-all-categories-accross-all-protocols
$0.0006 / call - DefiLlama
Get ETFs and their metrics (aum, flows, fees...)
defillama.get-etfs-and-their-metrics-aum-flows-fees
$0.0006 / call - DefiLlama
Retrieve daily verified history for an earn pool
defillama.retrieve-daily-verified-history-for-an-earn-pool
$0.0006 / call - DefiLlama
Get fork data overview
defillama.get-fork-data-overview
$0.0006 / call - DefiLlama
Get details for one sector
defillama.get-details-for-one-sector
$0.0006 / call - DefiLlama
Get historical TVL (excludes liquid staking and double counted…
defillama.get-historical-tvl-excludes-liquid-staking-and-double-counte
Get historical TVL (excludes liquid staking and double counted tvl) of DeFi on all chains
$0.0003 / call - DefiLlama
Get category historical timeseries chart data
defillama.get-category-historical-timeseries-chart-data
$0.0006 / call - DefiLlama
Get historical mcap and historical chain distribution of a stablecoin
defillama.get-historical-mcap-and-historical-chain-distribution-of-a-s
$0.0003 / call - DefiLlama
Lists the amount of inflows and outflows for a protocol at a given…
defillama.lists-the-amount-of-inflows-and-outflows-for-a-protocol-at-a
Lists the amount of inflows and outflows for a protocol at a given date
$0.0006 / call - DefiLlama
List all current RWA assets
defillama.list-all-current-rwa-assets
$0.0006 / call - DefiLlama
Get historical prices of all stablecoins
defillama.get-historical-prices-of-all-stablecoins
$0.0003 / call - DefiLlama
Get historical mcap sum of all stablecoins
defillama.get-historical-mcap-sum-of-all-stablecoins
$0.0003 / call - DefiLlama
Historical Flows at the Asset Level
defillama.historical-flows-at-the-asset-level
$0.0006 / call - DefiLlama
Historical borrow cost APY from a pool on a lending market in the…
defillama.historical-borrow-cost-apy-from-a-pool-on-a-lending-market-i
Historical borrow cost APY from a pool on a lending market in the legacy v1 response format
$0.0006 / call - DefiLlama
Get historical prices of tokens by contract address
defillama.get-historical-prices-of-tokens-by-contract-address
$0.0003 / call - DefiLlama
Get chain timeseries chart data breakdown by protocol
defillama.get-chain-timeseries-chart-data-breakdown-by-protocol
$0.0006 / call - DefiLlama
Get current mcap sum of all stablecoins on each chain
defillama.get-current-mcap-sum-of-all-stablecoins-on-each-chain
$0.0003 / call - DefiLlama
Get protocol dimension data overview
defillama.get-protocol-dimension-data-overview
$0.0006 / call - DefiLlama
Get timeseries chart data by chain
defillama.get-timeseries-chart-data-by-chain
$0.0006 / call - DefiLlama
Get category timeseries chart data breakdown by chain
defillama.get-category-timeseries-chart-data-breakdown-by-chain
$0.0006 / call - DefiLlama
Get timeseries chart data for all oracles
defillama.get-timeseries-chart-data-for-all-oracles
$0.0006 / call - DefiLlama
Get timeseries chart data by protocol/oracle
defillama.get-timeseries-chart-data-by-protocol-oracle
$0.0006 / call - DefiLlama
Get earnings calendar
defillama.get-earnings-calendar
$0.0006 / call - DefiLlama
Get aggregate RWA stats by chain, category, platform, and asset group
defillama.get-aggregate-rwa-stats-by-chain-category-platform-and-asset
$0.0006 / call - DefiLlama
Get historical mcap sum of all stablecoins in a chain
defillama.get-historical-mcap-sum-of-all-stablecoins-in-a-chain
$0.0003 / call - DefiLlama
Get historical treasury chart for a protocol
defillama.get-historical-treasury-chart-for-a-protocol
$0.0006 / call - DefiLlama
Retrieve the latest verified data for all measured earn pools
defillama.retrieve-the-latest-verified-data-for-all-measured-earn-pool
$0.0006 / call - DefiLlama
Get market-wide sector overview
defillama.get-market-wide-sector-overview
$0.0006 / call - DefiLlama
Lists all derivatives along summaries of their volumes filtering…
defillama.lists-all-derivatives-along-summaries-of-their-volumes-filte
Lists all derivatives along summaries of their volumes filtering by chain
$0.0006 / call - DefiLlama
Get current TVL of all chains
defillama.get-current-tvl-of-all-chains
$0.0003 / call - DefiLlama
Funding rates and open interest of perpetual futures
defillama.funding-rates-and-open-interest-of-perpetual-futures
$0.0006 / call - DefiLlama
Get live market summary for a company
defillama.get-live-market-summary-for-a-company
$0.0006 / call - DefiLlama
Get category chain timeseries chart data breakdown by protocol
defillama.get-category-chain-timeseries-chart-data-breakdown-by-protoc
$0.0006 / call - DefiLlama
Retrieve a filtered, paginated page of earn pools
defillama.retrieve-a-filtered-paginated-page-of-earn-pools
$0.0006 / call - DefiLlama
Get historical timeseries chart data breakdown by chain
defillama.get-historical-timeseries-chart-data-breakdown-by-chain
$0.0006 / call - DefiLlama
List RWA ids and filter values
defillama.list-rwa-ids-and-filter-values
$0.0006 / call - DefiLlama
Get individual institution Digital Asset Treasury details
defillama.get-individual-institution-digital-asset-treasury-details
$0.0006 / call - DefiLlama
List all open interest dex exchanges along with summaries of their…
defillama.list-all-open-interest-dex-exchanges-along-with-summaries-of
List all open interest dex exchanges along with summaries of their open interest
$0.0003 / call - DefiLlama
Get summary of bridge volume and volume breakdown by chain
defillama.get-summary-of-bridge-volume-and-volume-breakdown-by-chain
$0.0006 / call - DefiLlama
List current RWA assets on a chain
defillama.list-current-rwa-assets-on-a-chain
$0.0006 / call - DefiLlama
Get all sectors
defillama.get-all-sectors
$0.0006 / call - DefiLlama
Get timeseries chart data breakdown by protocol
defillama.get-timeseries-chart-data-breakdown-by-protocol
$0.0006 / call - DefiLlama
Get category dimension data overview
defillama.get-category-dimension-data-overview
$0.0006 / call - DefiLlama
Get historical TVL chart for a protocol
defillama.get-historical-tvl-chart-for-a-protocol
$0.0006 / call - DefiLlama
Get summary of protocol fees and revenue with historical data
defillama.get-summary-of-protocol-fees-and-revenue-with-historical-dat
$0.0003 / call - DefiLlama
List all protocols on defillama along with their tvl
defillama.list-all-protocols-on-defillama-along-with-their-tvl
$0.0003 / call - DefiLlama
Get historical price data for a company
defillama.get-historical-price-data-for-a-company
$0.0006 / call - DefiLlama
List all options dexs along with summaries of their volumes and…
defillama.list-all-options-dexs-along-with-summaries-of-their-volumes-
List all options dexs along with summaries of their volumes and dataType history data
$0.0003 / call - DefiLlama
Get current prices of tokens by contract address
defillama.get-current-prices-of-tokens-by-contract-address
$0.0003 / call - DefiLlama
Get historical APY and TVL of a pool in the legacy v1 response format
defillama.get-historical-apy-and-tvl-of-a-pool-in-the-legacy-v1-respon
$0.0006 / call - DefiLlama
List all dexs along with summaries of their volumes and dataType…
defillama.list-all-dexs-along-with-summaries-of-their-volumes-and-data
List all dexs along with summaries of their volumes and dataType history data
$0.0003 / call - DefiLlama
Get protocol timeseries chart data breakdown by label
defillama.get-protocol-timeseries-chart-data-breakdown-by-label
$0.0006 / call - DefiLlama
Get historical TVL chart for a protocol broken down by chain
defillama.get-historical-tvl-chart-for-a-protocol-broken-down-by-chain
$0.0006 / call - DefiLlama
Overview of all oracles accross all protocols
defillama.overview-of-all-oracles-accross-all-protocols
$0.0006 / call - DefiLlama
Overview of all hacks on our Hacks dashboard
defillama.overview-of-all-hacks-on-our-hacks-dashboard
$0.0006 / call - DefiLlama
Get aggregate TVL metrics for a protocol
defillama.get-aggregate-tvl-metrics-for-a-protocol
$0.0006 / call - DefiLlama
Get category chain historical timeseries chart data
defillama.get-category-chain-historical-timeseries-chart-data
$0.0006 / call - DefiLlama
Get assets of all chains
defillama.get-assets-of-all-chains
$0.0006 / call - DefiLlama
Get protocol income statement report
defillama.get-protocol-income-statement-report
$0.0006 / call - DefiLlama
Get valuation history for a pre-IPO company
defillama.get-valuation-history-for-a-pre-ipo-company
$0.0006 / call - DefiLlama
Get summary of dex volume with historical data
defillama.get-summary-of-dex-volume-with-historical-data
$0.0003 / call - DefiLlama
List all entities
defillama.list-all-entities
$0.0006 / call - DefiLlama
Get historical timeseries chart data
defillama.get-historical-timeseries-chart-data
$0.0006 / call - DefiLlama
Get list of all tracked pre-IPO companies
defillama.get-list-of-all-tracked-pre-ipo-companies
$0.0006 / call - DefiLlama
Retrieve the latest data for all pools in the legacy v1 response…
defillama.retrieve-the-latest-data-for-all-pools-in-the-legacy-v1-resp
Retrieve the latest data for all pools in the legacy v1 response format
$0.0006 / call - DefiLlama
Get timeseries chart data by protocol
defillama.get-timeseries-chart-data-by-protocol
$0.0006 / call - DefiLlama
Get historical RWA metric breakdown by chain
defillama.get-historical-rwa-metric-breakdown-by-chain
$0.0006 / call - DefiLlama
Get historical prices for multiple tokens at multiple different…
defillama.get-historical-prices-for-multiple-tokens-at-multiple-differ
Get historical prices for multiple tokens at multiple different timestamps
$0.0003 / call - DefiLlama
Retrieve daily history for an earn pool
defillama.retrieve-daily-history-for-an-earn-pool
$0.0006 / call - DefiLlama
Get list of all tracked public companies
defillama.get-list-of-all-tracked-public-companies
$0.0006 / call - DefiLlama
Get OHLCV candle data for a company
defillama.get-ohlcv-candle-data-for-a-company
$0.0006 / call - DefiLlama
Get category timeseries chart data breakdown by protocol
defillama.get-category-timeseries-chart-data-breakdown-by-protocol
$0.0006 / call - DefiLlama
Get earliest timestamp price record for coins
defillama.get-earliest-timestamp-price-record-for-coins
$0.0003 / call - DefiLlama
Retrieve the latest data for all borrow routes
defillama.retrieve-the-latest-data-for-all-borrow-routes
$0.0006 / call - DefiLlama
Volume Details about a specific perp protocol
defillama.volume-details-about-a-specific-perp-protocol
$0.0006 / call - DefiLlama
Get protocol timeseries chart data breakdown by version
defillama.get-protocol-timeseries-chart-data-breakdown-by-version
$0.0006 / call - DefiLlama
Retrieve the latest data for all earn pools
defillama.retrieve-the-latest-data-for-all-earn-pools
$0.0006 / call - DefiLlama
Get historical treasury chart for a protocol broken down by token
defillama.get-historical-treasury-chart-for-a-protocol-broken-down-by-
$0.0006 / call - DefiLlama
Get a 24hr token and address volume breakdown for a bridge
defillama.get-a-24hr-token-and-address-volume-breakdown-for-a-bridge
$0.0006 / call - DefiLlama
Get historical treasury chart for a protocol broken down by chain
defillama.get-historical-treasury-chart-for-a-protocol-broken-down-by--2
$0.0006 / call - DefiLlama
Get all transactions for a bridge within a date range
defillama.get-all-transactions-for-a-bridge-within-a-date-range
$0.0006 / call - DefiLlama
Get the closest block to a timestamp
defillama.get-the-closest-block-to-a-timestamp
$0.0003 / call - DefiLlama
Get historical timeseries chart data breakdown by protocol
defillama.get-historical-timeseries-chart-data-breakdown-by-protocol
$0.0006 / call - DefiLlama
Simplified endpoint to get current TVL of a protocol
defillama.simplified-endpoint-to-get-current-tvl-of-a-protocol
$0.0003 / call - DefiLlama
Get historical volumes for a bridge, chain, or bridge on a…
defillama.get-historical-volumes-for-a-bridge-chain-or-bridge-on-a
Get historical volumes for a bridge, chain, or bridge on a particular chain
$0.0006 / call - DefiLlama
Get funding rounds for a pre-IPO company
defillama.get-funding-rounds-for-a-pre-ipo-company
$0.0006 / call - DefiLlama
List of all tokens along with basic info for each
defillama.list-of-all-tokens-along-with-basic-info-for-each
$0.0006 / call - DefiLlama
Get profile and latest valuation for a pre-IPO company
defillama.get-profile-and-latest-valuation-for-a-pre-ipo-company
$0.0006 / call - DefiLlama
Get industries
defillama.get-industries
$0.0006 / call - DefiLlama
Retrieve the latest data for all loop strategies
defillama.retrieve-the-latest-data-for-all-loop-strategies
$0.0006 / call - DefiLlama
Get protocol timeseries chart data breakdown by chain
defillama.get-protocol-timeseries-chart-data-breakdown-by-chain
$0.0006 / call - DefiLlama
Get timeseries chart data breakdown by chain
defillama.get-timeseries-chart-data-breakdown-by-chain
$0.0006 / call - DefiLlama
Get percentage change in price over time
defillama.get-percentage-change-in-price-over-time
$0.0003 / call - DefiLlama
Get on-chain tradeable markets for a company
defillama.get-on-chain-tradeable-markets-for-a-company
$0.0006 / call - DefiLlama
Retrieve the latest verified data for one earn pool
defillama.retrieve-the-latest-verified-data-for-one-earn-pool
$0.0006 / call - DefiLlama
Get stablecoin dominance per chain along with the info about the…
defillama.get-stablecoin-dominance-per-chain-along-with-the-info-about
Get stablecoin dominance per chain along with the info about the larges coin in a chain
$0.0006 / call - DefiLlama
Get chain dimension data overview
defillama.get-chain-dimension-data-overview
$0.0006 / call - DefiLlama
Provides the name of contracts on a determined chain
defillama.provides-the-name-of-contracts-on-a-determined-chain
$0.0006 / call - DefiLlama
Unlocks data for a given token/protocol
defillama.unlocks-data-for-a-given-token-protocol
Unlocks data for a given token/protocol. You can find a list of available slugs to query by querying /emissions and then extracting the key `gecko_id`
$0.0006 / call - DefiLlama
Get historical TVL of a protocol and breakdowns by token and chain
defillama.get-historical-tvl-of-a-protocol-and-breakdowns-by-token-and
$0.0003 / call - DefiLlama
Borrow costs APY of assets from lending markets in the legacy v1…
defillama.borrow-costs-apy-of-assets-from-lending-markets-in-the-legac
Borrow costs APY of assets from lending markets in the legacy v1 response format
$0.0006 / call - DefiLlama
Get oracle data overview
defillama.get-oracle-data-overview
$0.0006 / call - DefiLlama
Overview of all raises on our Raises dashboard
defillama.overview-of-all-raises-on-our-raises-dashboard
$0.0006 / call - DefiLlama
Get aggregate treasury metrics for a protocol
defillama.get-aggregate-treasury-metrics-for-a-protocol
$0.0006 / call - DefiLlama
Get financial dimensions for a company
defillama.get-financial-dimensions-for-a-company
$0.0006 / call - DefiLlama
List all bridges along with summaries of recent bridge volumes
defillama.list-all-bridges-along-with-summaries-of-recent-bridge-volum
$0.0006 / call - DefiLlama
Get historical RWA chart data for a chain
defillama.get-historical-rwa-chart-data-for-a-chain
$0.0006 / call
Pricing
from $0.0003 / call
Billed per call to one prepaid balance. No vendor accounts, no subscription.
Use it from ChatGPT, Claude, the SDK or the CLI
import { createOMOB } from "@omob-sdk/omob"; const omob = createOMOB(); // reads OMOB_API_KEYconst run = await omob.tools.run("defillama.protocol", {"protocol":"aave"}, { wait: true });console.log(run.output);
DefiLlama API: questions
- How do I get a DefiLlama API key for my agent?
- You do not need a separate DefiLlama key or account. Sign up at developers.omob.app, create one OMOB API key, and your agent calls every DefiLlama action with it, from the SDK, the CLI, REST or the MCP connector.
- How much does the DefiLlama API cost?
- DefiLlama actions start from $0.0003 / call, billed per call to one prepaid balance. Each action's price is listed on this page, and you only pay for calls that run.
- Is there a free tier?
- Yes. Every new developer account gets $1 of free credit, no card, and tool calls like these run on it (about 3,333 calls at the starting price). After that you top up a prepaid balance; there is no subscription.
- Can ChatGPT or Claude use DefiLlama?
- Yes. Add OMOB as a connector with the URL https://mcp.omob.app/v1/mcp and sign in; then ask in plain words and the assistant finds and runs the DefiLlama actions for you. Claude Code, Codex and other MCP clients use the same URL. In ChatGPT, custom connectors need a Business, Enterprise or Edu workspace; on Plus or Free, use Claude.
Related tools
Quotes, history, financials and news for any ticker.
6 actionsfrom $0.05per callPolymarket markets, prices, trades and holders.
29 actionsfrom $0.0085per callKalshi markets, trades, volume and open interest.
8 actionsfrom $0.0085per call
