Query DeFiLlama for TVL, protocol analytics, yield pools, and stablecoin data.
Query DeFi protocol TVL, yield farming opportunities, chain analytics, and stablecoin data via the free DeFiLlama API.
https://api.llama.fihttps://yields.llama.fihttps://stablecoins.llama.fihttps://coins.llama.fiNo API key required. No strict rate limits, but be respectful.
GET https://api.llama.fi/v2/protocols
Returns all tracked protocols with current TVL, chain breakdown, category, and URL. Large payload — always filter or limit output to top N results.
GET https://api.llama.fi/v2/tvl/{protocol}
protocol: slug from protocols list (see table below)GET https://api.llama.fi/protocol/{protocol}
Returns full protocol info: TVL per chain, token breakdown, governance token, audits.
GET https://api.llama.fi/v2/chains
Returns TVL for every tracked chain. Useful for chain comparison.
GET https://yields.llama.fi/pools
Returns all tracked yield pools. Very large payload — always filter by chain or project in your output.
Useful fields per pool: chain, project, symbol, tvlUsd, apy, apyBase, apyReward, stablecoin.
GET https://stablecoins.llama.fi/stablecoins?includePrices=true
Returns all stablecoins with circulating supply, peg data, and chain breakdown.
GET https://coins.llama.fi/prices/current/{coins}
coins: comma-separated in format {chain}:{address} (e.g., bsc:0x0E09...)bsc, ethereum, polygon, arbitrum, optimism, base| Protocol | Slug |
|---|---|
| PancakeSwap | pancakeswap |
| Uniswap | uniswap |
| Aave V3 | aave-v3 |
| Lido | lido |
| Curve | curve-finance |
| MakerDAO | makerdao |
| Compound | compound-finance |
| GMX | gmx |
| Convex | convex-finance |
| Rocket Pool | rocket-pool |
| Venus | venus |
| Alpaca Finance | alpaca-finance |
| Biswap | biswap |
| Radiant | radiant-v2 |
/v2/protocols and /pools endpoints return massive JSON arrays. Always extract and present only the top N items relevant to the user's query.read_contract for on-chain verification of TVL claims.User: "What's the TVL of PancakeSwap?"
→ Fetch https://api.llama.fi/v2/tvl/pancakeswap, report latest TVL
User: "Top yield pools on BSC"
→ Fetch /pools, filter chain === "BSC", sort by tvlUsd desc, show top 10 with APY
User: "Compare TVL across chains"
→ Fetch /v2/chains, sort by tvl desc, present top 10