> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# DefiLlama

> DeFi protocol and chain TVL, token prices by contract, stablecoin supply, yield pools, DEX volumes and protocol fees, keyless.

![](https://mintcdn.com/webrouter/gPu3tCeozwRcDBjt/logo/data-apis/defillama.svg?fit=max\&auto=format\&n=gPu3tCeozwRcDBjt\&q=85\&s=e42d885be566156dd9f1ca83bc7c4e69)

[Web Catalog · Finance](https://docs.webrouter.net/data-apis.md?category=finance)

No key needed

Endpoints

10

Auth

None

[Vendor docs](https://api-docs.defillama.com/)

## Notes

* The free API is keyless. The paid Pro API (pro-api.llama.fi, key placed in the URL path) is not covered by this entry.
* Protocols are addressed by slug (aave, uniswap) and chains by name (Ethereum); get them from defillama.protocols and defillama.chains.
* Tokens for price calls are \{chain}:\{address} or coingecko:\{id}, comma-separated: ethereum:0xdF57...,coingecko:ethereum.
* Timestamps are UNIX seconds. TVL and volumes are in USD.
* /protocols, /pools and the overview endpoints return the whole set and are large; pass excludeTotalDataChart=true and excludeTotalDataChartBreakdown=true on overviews to shrink them.

## Endpoints

GET

List protocols with TVL

Every protocol with category, chains, current TVL and 1d/7d change.

[Open](#defillama-protocols)

GET

Get protocol TVL history

Historical TVL of a protocol with breakdowns by token and chain.

[Open](#defillama-protocol)

GET

List chains with TVL

Current TVL of every chain.

[Open](#defillama-chains)

GET

Get chain TVL history

Historical TVL of one chain (excluding liquid staking and double counting).

[Open](#defillama-chain-tvl-history)

GET

Get current token prices

Current prices of tokens by contract address or CoinGecko id.

[Open](#defillama-prices-current)

GET

Get token prices at a time

Token prices at a past UNIX timestamp.

[Open](#defillama-prices-historical)

GET

Get token price chart

Token prices at regular intervals.

[Open](#defillama-prices-chart)

GET

List stablecoins

Every stablecoin with circulating amounts, optionally with current prices.

[Open](#defillama-stablecoins)

GET

List yield pools

Latest APY, TVL and predictions for every yield pool.

[Open](#defillama-yields-pools)

GET

Get protocol fees and revenue

A protocol's fees or revenue totals with historical data.

[Open](#defillama-fees-summary)

### List protocols with TVL

GET

`/protocols`

`defillama.protocols`

Every protocol with category, chains, current TVL and 1d/7d change.

Input

No inputs.

[Vendor docs](https://api-docs.defillama.com/) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-overview), [Benzinga](https://docs.webrouter.net/data-apis/benzinga.md#benzinga-ratings), [EODHD](https://docs.webrouter.net/data-apis/eodhd.md#eodhd-fundamentals), [Financial Datasets](https://docs.webrouter.net/data-apis/financialdatasets.md#financialdatasets-financials-income-statements), [Finnhub](https://docs.webrouter.net/data-apis/finnhub.md#finnhub-stock-metrics), [Fiscal.ai](https://docs.webrouter.net/data-apis/fiscal-ai.md#fiscal-ai-ratios-get)

```python Python theme={null}
router.call_data_api("defillama.protocols")
```

```text MCP theme={null}
call_data_api(endpoint="defillama.protocols")
```

### Get protocol TVL history

GET

`/protocol/{protocol}`

`defillama.protocol`

Historical TVL of a protocol with breakdowns by token and chain.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`protocol` required</td><td>string</td><td>path</td><td>Protocol slug. Example `aave`</td></tr>
  </tbody>
</table>

[Vendor docs](https://api-docs.defillama.com/) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-daily), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-observations-series), [Bank of England](https://docs.webrouter.net/data-apis/bankofengland.md#bankofengland-series-csv), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-klines), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-candles-get), [CoinGecko](https://docs.webrouter.net/data-apis/coingecko.md#coingecko-coins-market-chart)

```python Python theme={null}
router.call_data_api("defillama.protocol", {'protocol': 'aave'})
```

```text MCP theme={null}
call_data_api(endpoint="defillama.protocol", params={"protocol": "aave"})
```

### List chains with TVL

GET

`/v2/chains`

`defillama.chains`

Current TVL of every chain.

Input

No inputs.

[Vendor docs](https://api-docs.defillama.com/) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-overview), [Benzinga](https://docs.webrouter.net/data-apis/benzinga.md#benzinga-ratings), [EODHD](https://docs.webrouter.net/data-apis/eodhd.md#eodhd-fundamentals), [Financial Datasets](https://docs.webrouter.net/data-apis/financialdatasets.md#financialdatasets-financials-income-statements), [Finnhub](https://docs.webrouter.net/data-apis/finnhub.md#finnhub-stock-metrics), [Fiscal.ai](https://docs.webrouter.net/data-apis/fiscal-ai.md#fiscal-ai-ratios-get)

```python Python theme={null}
router.call_data_api("defillama.chains")
```

```text MCP theme={null}
call_data_api(endpoint="defillama.chains")
```

### Get chain TVL history

GET

`/v2/historicalChainTvl/{chain}`

`defillama.chain_tvl_history`

Historical TVL of one chain (excluding liquid staking and double counting).

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`chain` required</td><td>string</td><td>path</td><td>Chain name. Example `Ethereum`</td></tr>
  </tbody>
</table>

[Vendor docs](https://api-docs.defillama.com/) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-daily), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-observations-series), [Bank of England](https://docs.webrouter.net/data-apis/bankofengland.md#bankofengland-series-csv), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-klines), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-candles-get), [CoinGecko](https://docs.webrouter.net/data-apis/coingecko.md#coingecko-coins-market-chart)

```python Python theme={null}
router.call_data_api("defillama.chain_tvl_history", {'chain': 'Ethereum'})
```

```text MCP theme={null}
call_data_api(endpoint="defillama.chain_tvl_history", params={"chain": "Ethereum"})
```

### Get current token prices

GET

`/prices/current/{coins}`

`defillama.prices.current`

Current prices of tokens by contract address or CoinGecko id.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`coins` required</td><td>string</td><td>path</td><td>Comma-separated \{chain}:\{address} or coingecko:\{id}. Example `coingecko:ethereum,ethereum:0xdF574c24545E5FfEcb9a659c229253D4111d87e1`</td></tr>
  </tbody>
</table>

[Vendor docs](https://api-docs.defillama.com/) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-crypto-daily), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-ticker-price), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-ticker-get), [CoinGecko](https://docs.webrouter.net/data-apis/coingecko.md#coingecko-price-simple), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-cryptocurrency-listings-latest), [CryptoCompare](https://docs.webrouter.net/data-apis/cryptocompare.md#cryptocompare-index-latest-tick)

```python Python theme={null}
router.call_data_api("defillama.prices.current", {'coins': 'coingecko:ethereum,ethereum:0xdF574c24545E5FfEcb9a659c229253D4111d87e1'})
```

```text MCP theme={null}
call_data_api(endpoint="defillama.prices.current", params={"coins": "coingecko:ethereum,ethereum:0xdF574c24545E5FfEcb9a659c229253D4111d87e1"})
```

### Get token prices at a time

GET

`/prices/historical/{timestamp}/{coins}`

`defillama.prices.historical`

Token prices at a past UNIX timestamp.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`timestamp` required</td><td>integer</td><td>path</td><td>UNIX timestamp, seconds. Example `1648680149`</td></tr>
    <tr><td>`coins` required</td><td>string</td><td>path</td><td>Comma-separated \{chain}:\{address} or coingecko:\{id}. Example `coingecko:ethereum`</td></tr>
  </tbody>
</table>

[Vendor docs](https://api-docs.defillama.com/) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-daily), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-observations-series), [Bank of England](https://docs.webrouter.net/data-apis/bankofengland.md#bankofengland-series-csv), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-klines), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-candles-get), [CoinGecko](https://docs.webrouter.net/data-apis/coingecko.md#coingecko-coins-market-chart)

```python Python theme={null}
router.call_data_api("defillama.prices.historical", {'timestamp': 1648680149, 'coins': 'coingecko:ethereum'})
```

```text MCP theme={null}
call_data_api(endpoint="defillama.prices.historical", params={"timestamp": 1648680149, "coins": "coingecko:ethereum"})
```

### Get token price chart

GET

`/chart/{coins}`

`defillama.prices.chart`

Token prices at regular intervals.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`coins` required</td><td>string</td><td>path</td><td>Comma-separated \{chain}:\{address} or coingecko:\{id}. Example `coingecko:ethereum`</td></tr>

    <tr>
      <td>
        `start`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        UNIX timestamp of the earliest point.
      </td>
    </tr>

    <tr>
      <td>
        `end`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        UNIX timestamp of the latest point.
      </td>
    </tr>

    <tr><td>`span`</td><td>integer</td><td>query</td><td>Number of points; default 0. Example `10`</td></tr>
    <tr><td>`period`</td><td>string</td><td>query</td><td>Time between points; default 24 hours. Example `2d`</td></tr>
  </tbody>
</table>

[Vendor docs](https://api-docs.defillama.com/) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-daily), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-observations-series), [Bank of England](https://docs.webrouter.net/data-apis/bankofengland.md#bankofengland-series-csv), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-klines), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-candles-get), [CoinGecko](https://docs.webrouter.net/data-apis/coingecko.md#coingecko-coins-market-chart)

```python Python theme={null}
router.call_data_api("defillama.prices.chart", {'coins': 'coingecko:ethereum', 'span': 10, 'period': '2d'})
```

```text MCP theme={null}
call_data_api(endpoint="defillama.prices.chart", params={"coins": "coingecko:ethereum", "span": 10, "period": "2d"})
```

### List stablecoins

GET

`/stablecoins`

`defillama.stablecoins`

Every stablecoin with circulating amounts, optionally with current prices.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `includePrices`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include current prices.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api-docs.defillama.com/) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-overview), [Benzinga](https://docs.webrouter.net/data-apis/benzinga.md#benzinga-ratings), [EODHD](https://docs.webrouter.net/data-apis/eodhd.md#eodhd-fundamentals), [Financial Datasets](https://docs.webrouter.net/data-apis/financialdatasets.md#financialdatasets-financials-income-statements), [Finnhub](https://docs.webrouter.net/data-apis/finnhub.md#finnhub-stock-metrics), [Fiscal.ai](https://docs.webrouter.net/data-apis/fiscal-ai.md#fiscal-ai-ratios-get)

```python Python theme={null}
router.call_data_api("defillama.stablecoins")
```

```text MCP theme={null}
call_data_api(endpoint="defillama.stablecoins")
```

### List yield pools

GET

`/pools`

`defillama.yields.pools`

Latest APY, TVL and predictions for every yield pool.

Input

No inputs.

[Vendor docs](https://api-docs.defillama.com/) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-overview), [Benzinga](https://docs.webrouter.net/data-apis/benzinga.md#benzinga-ratings), [EODHD](https://docs.webrouter.net/data-apis/eodhd.md#eodhd-fundamentals), [Financial Datasets](https://docs.webrouter.net/data-apis/financialdatasets.md#financialdatasets-financials-income-statements), [Finnhub](https://docs.webrouter.net/data-apis/finnhub.md#finnhub-stock-metrics), [Fiscal.ai](https://docs.webrouter.net/data-apis/fiscal-ai.md#fiscal-ai-ratios-get)

```python Python theme={null}
router.call_data_api("defillama.yields.pools")
```

```text MCP theme={null}
call_data_api(endpoint="defillama.yields.pools")
```

> [!NOTE]
>
> * Very large response (all pools).

### Get protocol fees and revenue

GET

`/summary/fees/{protocol}`

`defillama.fees.summary`

A protocol's fees or revenue totals with historical data.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`protocol` required</td><td>string</td><td>path</td><td>Protocol slug. Example `uniswap`</td></tr>
    <tr><td>`dataType`</td><td>string</td><td>query</td><td>Default dailyFees. One of `dailyFees`, `dailyRevenue`, `dailyHoldersRevenue`</td></tr>
  </tbody>
</table>

[Vendor docs](https://api-docs.defillama.com/) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-income-statement), [Aviato](https://docs.webrouter.net/data-apis/aviato.md#aviato-company-financials), [Corpo API](https://docs.webrouter.net/data-apis/corpoapi.md#corpoapi-company-financials), [Explorium AgentSource](https://docs.webrouter.net/data-apis/explorium.md#explorium-businesses-financial-indicators), [FDIC BankFind Suite](https://docs.webrouter.net/data-apis/fdic.md#fdic-financials-search), [Fiscal.ai](https://docs.webrouter.net/data-apis/fiscal-ai.md#fiscal-ai-financials-standardized)

```python Python theme={null}
router.call_data_api("defillama.fees.summary", {'protocol': 'uniswap'})
```

```text MCP theme={null}
call_data_api(endpoint="defillama.fees.summary", params={"protocol": "uniswap"})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.