← Back to All tools
6 endpoints

DefiLlama data API

via DefiLlama

AI agents can use DefiLlama data at $0.0005 per call with a Purrkey key and no DefiLlama account. Track DeFi protocol TVL, chain totals, token prices and stablecoin supply

Endpoints

DefiLlama

DefiLlama Chain TVL History

/v2/historicalChainTvl/{chain}

Daily total value locked of one blockchain over the most recent days

$0.0005per call
DefiLlama

DefiLlama Chain TVL

/v2/chains

List blockchains ranked by current total value locked

$0.0005per call
DefiLlama

DefiLlama Token Prices

/prices/current/{coins}

Current USD prices for tokens identified as coingecko:<id> or <chain>:<address>

$0.0005per call
DefiLlama

DefiLlama Protocol TVL

/tvl/{slug}

Current total value locked of one protocol by its DefiLlama slug

$0.0005per call
DefiLlama

DefiLlama Top Protocols

/protocols

List DeFi protocols ranked by current TVL, optionally filtered by chain or category

$0.0005per call
DefiLlama

DefiLlama Stablecoins

/stablecoins

List stablecoins ranked by circulating supply with peg type, mechanism and price

$0.0005per call

Showing 6 of 6

Try it with your agents

  1. Track Ethereum TVL for 30 days

    Set up https://purrkey.app/SKILL.md, then use Purrkey to fetch the daily total value locked for Ethereum over the past 30 days and list each date with its tvlUsd value from the DefiLlama chain history response.
  2. List top Arbitrum protocols

    Set up https://purrkey.app/SKILL.md, then use Purrkey to retrieve the top 10 DeFi protocols on Arbitrum by current TVL, then show each protocol name, slug, category, tvlUsd, change1d and change7d where available.
  3. Get token prices by CoinGecko ID

    Set up https://purrkey.app/SKILL.md, then use Purrkey to request current USD prices for coingecko:usd-coin and coingecko:wrapped-bitcoin, and report each returned price, symbol, timestamp and confidence while listing any missing coin identifiers.

New accounts start with $1 in free credit. No card needed to sign up

Get started

Guides for DefiLlama