List DeFi protocols by TVL
curl --request GET \
--url https://api.darvas.app/v1/defi/protocols \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/defi/protocols"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/defi/protocols', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"protocols": [
{
"slug": "aave",
"name": "Aave",
"symbol": "AAVE",
"category": "Lending",
"chain": "Multi-Chain",
"chains": [
"Ethereum",
"Arbitrum",
"Base"
],
"tvl_usd": 21450000000,
"change_1d_pct": 1.4,
"change_7d_pct": 4.8,
"mcap_usd": 3200000000,
"url": "https://aave.com"
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}DeFi
DeFi Protocols TVL & Multi-Chain Metrics API
Query DeFi protocol TVL, per-chain chain_tvl_usd breakdowns, categories and 1h/1d/7d changes across chains with alias normalization and CEX exclusion.
List DeFi protocols by TVL
curl --request GET \
--url https://api.darvas.app/v1/defi/protocols \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/defi/protocols"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/defi/protocols', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"protocols": [
{
"slug": "aave",
"name": "Aave",
"symbol": "AAVE",
"category": "Lending",
"chain": "Multi-Chain",
"chains": [
"Ethereum",
"Arbitrum",
"Base"
],
"tvl_usd": 21450000000,
"change_1d_pct": 1.4,
"change_7d_pct": 4.8,
"mcap_usd": 3200000000,
"url": "https://aave.com"
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Overview
This endpoint returns multi-chain decentralized finance protocols ranked by total value locked (chain_tvl_usd, which equals total tvl_usd when unfiltered and the protocol’s TVL on the requested chain when chain is set), along with per-chain TVL breakdowns, 1-hour, 1-day and 7-day TVL changes, category labels, and governance token market capitalization. Centralized exchanges (category: "CEX") are excluded by default.
| Coverage | Details |
|---|---|
| Universe | Up to 6,000 active multi-chain DeFi protocols with positive TVL across Ethereum, Solana, Base, Arbitrum, BSC, Polygon, Avalanche and other networks |
| Filters | chain (canonicalized with chain aliases), category, query (name or slug search), min_tvl (USD floor applied to chain_tvl_usd, default 0) and include_cex (false by default unless category=cex) |
| Ordering and limit | sort by tvl_usd (default, using chain_tvl_usd), change_1d_pct, change_7d_pct or mcap_usd; limit from 1 to 500 protocols (default 50) |
| Freshness | Snapshot refreshed every 5 minutes |
| MCP tool | list_defi_protocols on the data API MCP server |
Filtering and response fields
All query filters are optional and combine with logical AND. Top-level fields returnprotocols, total_matched and chain (canonical chain key or null).
- Chain aliases and per-chain TVL.
chainnormalizes common aliases case-insensitively to canonical lowercase keys:BSC,Binance,BNB,BNB ChainandBNB Smart Chainresolve tobsc;ETHandMainnetresolve toethereum;AVAXresolves toavalanche;MATICandpolygon_posresolve topolygon;OPandOP Mainnetresolve tooptimism;xDaiandGnosisChainresolve tognosis;Arbitrum Oneresolves toarbitrum;zkSync Eraanderaresolve tozksync;FTMresolves tofantom;Hyperliquid L1andHyperEVMresolve tohyperliquid. Whenchainis set,chain_tvl_usdreports the protocol’s TVL on that chain (andmin_tvlandsort=tvl_usdoperate onchain_tvl_usd), whiletvl_usdkeeps total protocol TVL across all chains. - CEX exclusion default. Centralized exchange entries (
category: "CEX") are excluded by default so DeFi rankings stay on-chain. Passinclude_cex=true(orcategory=cex) to include centralized exchanges. - Category and name search.
categorymatches substrings case-insensitively (for exampleLending,Dexs,Liquid StakingorBridge).querymatches substrings case-insensitively againstnameandslug. - Protocol fields. Each row in
protocolscarriesslug,name,symbol(governance token ticker ornull),category,chain(primary canonical chain key ornull),chains(canonical chain keys),tvl_usd,chain_tvl_usd,chain_tvls(per-chain{ chain, tvl_usd }array sorted largest first),borrowed_usd,staking_usd,pool2_usd,change_1h_pct,change_1d_pct,change_7d_pct,mcap_usd,parent_protocolandurl. - Related endpoints. Drill into pool-level APYs with
/defi/yields, inspect stablecoin issuance at/defi/stablecoins, check live DEX pair liquidity at/defi/dex-tokens, or pull governance token price history from/crypto/prices.
Examples
import os
import requests
headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
resp = requests.get(
"https://api.darvas.app/v1/defi/protocols",
headers=headers,
params={
"chain": "BNB", # alias normalized to canonical "bsc"
"category": "Lending",
"min_tvl": 100_000_000,
"limit": 10,
},
).json()
print("Chain:", resp["chain"], "Total matched:", resp["total_matched"])
for proto in resp["protocols"]:
print(proto["name"], proto["symbol"], "Chain TVL:", proto["chain_tvl_usd"], "Total TVL:", proto["tvl_usd"], "7d %:", proto["change_7d_pct"])
# Search protocols matching "aave" across all chains (CEX excluded by default)
curl -H "X-API-KEY: $DARVAS_API_KEY" \
"https://api.darvas.app/v1/defi/protocols?query=aave&limit=10"
Authorizations
apiKeybearerKey