Sources › Finance › DefiLlama › Chain TVL

DefiLlama Chain TVL API

TVL per chain dalam USD, terbesar dulu, bisa disaring dengan `minTvl`.

DefiLlamaGET /chainsAll plans1 Zap

Request

GET
https://api.zapi.ink/v1/finance:defillama/chains

Send your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 15 minutes.

Parameters

NameTypeInRequiredDescription
lengthnumberqueryNoRows to return (default 50, max 500) Example: 50
minTvlnumberqueryNoDrop chains below this TVL in USD. Example: 1000000

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/finance:defillama/chains?length=50&minTvl=1000000" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/finance:defillama/chains?length=50&minTvl=1000000", {
  method: "GET",
  headers: {
    "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
  },
});
const data = await res.json();
console.log(data);
Python
import requests

res = requests.get(
    "https://api.zapi.ink/v1/finance:defillama/chains",
    params={"length":"50","minTvl":"1000000"},
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Example response

200 OK · application/json
{
  "project": "finance:defillama",
  "data": {
    "count": 50,
    "items": [
      {
        "tvl": 47170499526.70988,
        "name": "Ethereum",
        "symbol": "ETH",
        "chainId": 1,
        "coingeckoId": "ethereum"
      },
      {
        "tvl": 5357384941.319784,
        "name": "BSC",
        "symbol": "BNB",
        "chainId": 56,
        "coingeckoId": "binancecoin"
      },
      {
        "tvl": 5312745912.351768,
        "name": "Solana",
        "symbol": "SOL",
        "coingeckoId": "solana"
      },
      {
        "tvl": 5240631291.195125,
        "name": "Base",
        "chainId": 8453
      },
      {
        "tvl": 5126114876.883402,
        "name": "Tron",
        "symbol": "TRON",
        "coingeckoId": "tron"
      },
      {
        "tvl": 3985775047.8197036,
        "name": "Bitcoin",
        "symbol": "BTC",
        "coingeckoId": "bitcoin"
      },
      {
        "tvl": 1792240630.7060046,
        "name": "Provenance",
        "symbol": "HASH",
        "coingeckoId": "hash-2"
      },
      {
        "tvl": 1445583793.9306028,
        "name": "Hyperliquid L1",
        "symbol": "HYPE",
        "coingeckoId": "hyperliquid"
      }
    ],
    "total": 461,
    "source": "defillama",
    "currency": "USD",
    "totalTvl": 84515501988.66243
  },
  "timestamp": "2026-08-08T10:10:23Z"
}

Frequently asked questions

How do I call the DefiLlama Chain TVL API?

Send a GET request to https://api.zapi.ink/v1/finance:defillama/chains with your Zapi key in the x-api-key header. Parameters — optional: length, minTvl. The response is JSON in the { project, data, timestamp } envelope.

What does the DefiLlama Chain TVL API return?

TVL per chain dalam USD, terbesar dulu, bisa disaring dengan `minTvl`. The example response has the fields count, items, total, source, currency, totalTvl. Each item in items has fields such as tvl, name, symbol, chainId, coingeckoId.

Is the DefiLlama Chain TVL API free?

Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.

Can an AI assistant call the DefiLlama Chain TVL API?

Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "defillama" and endpoint "chains".

What other DefiLlama API endpoints are there?

It has 5 endpoints. Besides Chain TVL: Stablecoins, Stablecoin Chains, Chain Tvl History, Stablecoin History.