DeFi protocols ranked by TVL

$0.002 per call · USDC via x402 · POST /api/defi-protocols

DeFi protocols ranked by current TVL from DefiLlama's free protocol list: filter by category (Lending, Dexs, Liquid Staking, CDP, Yield...), chain (ranks by that chain's TVL), or a name search; limit up to 100. Send POST /api/defi-protocols with no required fields (6 optional) and pay $0.002 per call over x402 or MPP (there is no free tier). It returns a JSON object with source, fetchedAt, cached, filters, totalTvlUsd and 3 more.

Rows carry global rank, name, slug, category, chains, TVL, 1h/1d/7d TVL change, market cap and mcap/TVL. CEX rows are excluded unless category is CEX or includeCex is true. The ~8.6MB upstream document is cached 5 minutes in-process. Keyless public data.

Category: Crypto & onchain data · Tags: crypto defi tvl protocols ranking defillama lending dex

TRY IN PLAYGROUND →

Parameters

NameTypeRequiredDescription
categorystringnoCategory filter (Lending, Dexs, Liquid Staking, Restaking, CDP, Yield, Derivatives, Bridge, RWA, CEX...). Case-insensitive exact match.
chainstringnoChain filter as DefiLlama names it (Ethereum, Base, Solana, Arbitrum...). Rows are then ranked by TVL on that chain.
searchstringnoName/slug substring filter (case-insensitive).
includeCexbooleannoInclude centralized-exchange reserve rows (default false).
minTvlUsdnumbernoMinimum TVL in USD.
limitnumbernoRows to return (default 25, max 100).

Example request

curl -i -X POST https://agent402.tools/api/defi-protocols \
  -H "Content-Type: application/json" \
  -d '{"category":"Lending","limit":5}'

Without payment this returns HTTP 402 Payment Required with the exact price for defi-protocols; any x402 v2 or MPP client pays it and retries.

Example response

{
  "source": "defillama-protocols",
  "fetchedAt": "2026-08-22T12:00:00.000Z",
  "cached": true,
  "filters": {
    "category": "Lending",
    "chain": null,
    "search": null,
    "includeCex": false,
    "minTvlUsd": null
  },
  "totalTvlUsd": 48000000000,
  "matched": 600,
  "count": 1,
  "protocols": [
    {
      "rank": 3,
      "name": "Aave V3",
      "slug": "aave-v3",
      "category": "Lending",
      "chains": [
        "Ethereum",
        "Base",
        "Arbitrum"
      ],
      "chainCount": 21,
      "tvlUsd": 17023522168,
      "change1hPct": 0.02,
      "change1dPct": 0.8,
      "change7dPct": 2.4,
      "mcapUsd": 3200000000,
      "mcapTvl": 0.188,
      "symbol": "AAVE",
      "parentProtocol": "aave"
    }
  ]
}
FieldTypeAlways presentIn the example
sourcestringyesdefillama-protocols
fetchedAtstringyes2026-08-22T12:00:00.000Z
cachedbooleanyestrue
filtersobjectyes5 fields: category, chain, search, includeCex, minTvlUsd
totalTvlUsdnumberyes48000000000
matchednumberyes600
countnumberyes1
protocolsarray of objectsyes1 item in the example

From an MCP client

catalog.call {
  "slug": "defi-protocols",
  "params": {
    "category": "Lending",
    "limit": 5
  }
}

The hosted connector at https://agent402.tools/mcp needs a payment for defi-protocols; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.

Errors and behavior

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/defi-protocols", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "category": "Lending",
    "limit": 5
  }),
});

Related tools

DeFi TVL by chain

$0.002 · POST /api/defi-chains

Blockchains ranked by DeFi TVL from DefiLlama's free chain list: name, TVL in USD, share of total DeFi TVL, native token…

DEX volume by protocol

$0.001 · POST /api/defi-dex-volume

Decentralized exchanges ranked by 24h spot trading volume from DefiLlama's free DEX overview: per-DEX 24h/7d/30d/1y/all-…

DeFi protocol fees and revenue

$0.002 · POST /api/defi-fees

Protocols ranked by fees paid by users (or by protocol revenue with metric "revenue") over the last 24h from DefiLlama's…

DeFi chain TVL history

$0.002 · POST /api/defi-chain-tvl-history

Daily TVL history for one chain (Ethereum, Base, Solana, Arbitrum...) or for all of DeFi (chain "all") from DefiLlama's …

DeFi protocol profile

$0.002 · POST /api/defi-protocol

Profile of one DeFi protocol by DefiLlama slug (aave-v3, uniswap-v3, lido, morpho-v1...): TVL rank among all protocols, …

DeFi protocol TVL

$0.001 · POST /api/defi-tvl

Look up the current Total Value Locked (TVL) for a DeFi protocol via DeFiLlama's public API. Identify the protocol by it…