DefiLlama API
DefiLlama (defillama.com) has 4 public methods: list stablecoins, get DeFi project, list best yields for an asset and list top blockchains by TVL. Each costs 1 credit per completed run (1¢ with pay as you go); failed runs are free.
Unofficial. Not affiliated with or endorsed by DefiLlama.
Methods
4Lists DefiLlama stablecoins ranked by circulating supply in US dollars. Each coin comes with its peg, price, weekly supply change and chain count. You can filter by peg.
Returns rank, name, symbol, circulating supply USD, peg, mechanism, price, 7d supply change, chain count, page URL
Readdefillama.com/list_stablecoinsGets a DeFi project's current TVL, 1-day and 7-day changes, chain breakdown, token information and daily TVL history from DefiLlama. Parent projects combine their listed versions.
Returns project name, category, current TVL, 1d/7d change, TVL by chain, token symbol and market cap, website, daily TVL history
Readdefillama.com/get_defi_projectFinds the highest-APY DeFi pools on DefiLlama for a token symbol or name, optionally filtered by chain and minimum pool size.
Returns project, chain, pool symbols, total/base/reward/30-day APY, pool size, stablecoin flag, DefiLlama link, pool ID
Readdefillama.com/list_best_yieldsLists blockchains ranked by the total value locked in their DeFi apps on DefiLlama, with one-day and seven-day TVL changes, DeFi project counts and chain token symbols.
Returns rank, chain name, TVL in USD, 1d and 7d change, DeFi project count, token symbol, chain page URL
Readdefillama.com/list_top_blockchains