DeFi protocol profile

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

Profile of one DeFi protocol by DefiLlama slug (aave-v3, uniswap-v3, lido, morpho-v1...): TVL rank among all protocols, category, chains, current TVL by chain (borrowed/staking/pool2 reported separately, never summed into TVL), 1h/1d/7d TVL change, market cap and mcap/TVL, token symbol + address, website, X handle, audit count/links, listing date and parent protocol. Send POST /api/defi-protocol with the required field protocol and pay $0.002 per call over x402 or MPP (there is no free tier). It returns a JSON object with source, fetchedAt, cached and protocol.

Unknown slugs answer 422 with up to 5 name suggestions. Served from the cached protocol list (no per-protocol history fetch; use defi-tvl for a protocol's full TVL history). Keyless public data.

Category: Crypto & onchain data · Tags: crypto defi protocol tvl mcap defillama profile

TRY IN PLAYGROUND →

Parameters

NameTypeRequiredDescription
protocolstringyesDefiLlama protocol slug (lowercase, hyphenated), e.g. aave-v3, uniswap-v3, lido, morpho-v1.

Example request

curl -i -X POST https://agent402.tools/api/defi-protocol \
  -H "Content-Type: application/json" \
  -d '{"protocol":"aave-v3"}'

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

Example response

{
  "source": "defillama-protocols",
  "fetchedAt": "2026-08-22T12:00:00.000Z",
  "cached": true,
  "protocol": {
    "rank": 3,
    "name": "Aave V3",
    "slug": "aave-v3",
    "category": "Lending",
    "chains": [
      "Ethereum",
      "Base"
    ],
    "chainCount": 21,
    "tvlUsd": 17023522168,
    "change1hPct": 0.02,
    "change1dPct": 0.8,
    "change7dPct": 2.4,
    "mcapUsd": 3200000000,
    "mcapTvl": 0.188,
    "symbol": "AAVE",
    "address": "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9",
    "geckoId": null,
    "url": "https://aave.com",
    "twitter": "aave",
    "audits": 2,
    "auditLinks": [
      "https://aave.com/security"
    ],
    "listedAt": "2022-04-01",
    "parentProtocol": "aave",
    "description": "Earn interest, borrow assets, and build applications",
    "logo": "https://icons.llamao.fi/icons/protocols/aave-v3",
    "chainTvls": [
      {
        "chain": "Ethereum",
        "tvlUsd": 12000000000
      }
    ],
    "borrowedUsd": 9000000000,
    "stakingUsd": null,
    "pool2Usd": null
  }
}
FieldTypeAlways presentIn the example
sourcestringyesdefillama-protocols
fetchedAtstringyes2026-08-22T12:00:00.000Z
cachedbooleanyestrue
protocolobjectyes27 fields: rank, name, slug, category, chains, chainCount

From an MCP client

catalog.call {
  "slug": "defi-protocol",
  "params": {
    "protocol": "aave-v3"
  }
}

The hosted connector at https://agent402.tools/mcp needs a payment for defi-protocol; 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-protocol", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "protocol": "aave-v3"
  }),
});

Related tools

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…

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 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…

DeFi protocols ranked by TVL

$0.002 · POST /api/defi-protocols

DeFi protocols ranked by current TVL from DefiLlama's free protocol list: filter by category (Lending, Dexs, Liquid Stak…

DeFi yield pool history

$0.002 · POST /api/defi-yield-history

Daily APY and TVL history for one DeFi yield pool (DefiLlama pool id from defi-yields): per-day total/base/reward APY an…

DeFi yield screener

$0.002 · POST /api/defi-yields

Screen DeFi yield pools (lending, LP, staking, vaults) across every chain from DefiLlama's free Yields dataset: filter b…