Read protocol TVL, chain totals and pool APY per request
Protocol TVL, TVL by chain, every tracked yield pool with APY, and token prices. One endpoint family, paid per call, no key and no monthly plan.
DeFi TVL API: protocol TVL, chain totals, pool APY and token prices on one endpoint
Five reads that answer the questions a DeFi agent actually asks. The protocols list ranks everything tracked by total value locked; the single-protocol read returns one protocol's TVL history broken down by chain; the chains read gives the TVL total per chain; the yields read returns every tracked pool with its current APY and size; and the prices read resolves token identifiers to a spot figure. Nothing needs an account, a key or a plan.
Two of the five take their argument as a path segment rather than a query parameter, which is the detail that trips a first integration: a protocol is addressed as protocol/{slug} and tokens as prices/{coins}, with the coin identifier carrying its own namespace. The parameter table on this page renders those from the same registry the router matches against, so the example beside each one is a request that resolves.
The yields read is deliberately unfiltered and large. It returns the whole pool set in one response so an agent can rank, filter and compare in its own process, rather than paging through a server-side filter that has to be learned first. That makes it the heaviest call in the family and the one worth caching on your side.
How to call the DeFi TVL API — protocols, one protocol, chains, yields, prices
One endpoint, priced in dollars before it runs and settled in USDC. No API key and no account — the request pays for itself.
GET /api/v1/defillama/protocol/{slug}
Host: blockrun.aiRequest parameters
| field | type |
|---|---|
| slug * | string |
DeFi TVL API pricing: per call, priced per endpoint, no monthly plan
DeFi data for AI agents: TVL and yields from an MCP host, ClawRouter or the SDK
In Claude Code, Claude Desktop, Cursor, Windsurf, Cline and any other MCP host, this is the blockrun_defi tool of the BlockRun MCP server — the agent calls it like any other tool and the result comes back in the conversation. In OpenClaw, Codex and Hermes, ClawRouter exposes the same catalog. In your own code, the Python and TypeScript SDKs wrap the endpoint above with types; any HTTP client works too. Every harness, with its setup →
No account and no API key stand between an agent and the first call: the request is quoted in dollars and the agent's client pays it. A team that prefers keys gets one, with a monthly invoice.
DeFi TVL API vs DefiLlama direct, Dune or Token Terminal
DefiLlama publishes these numbers itself and is the source behind this endpoint, so the data is the same data. What differs is how an agent reaches it: one payment header instead of a separate base URL per product family, and one request shape that already sits beside the model, search and market endpoints the same agent is calling. If your service already talks to DefiLlama directly and is happy, there is nothing here to win.
Dune is the tool when the question is not on anyone's dashboard: you write SQL against indexed chain data and get exactly the cut you asked for, at the cost of writing and maintaining the query. Token Terminal sells curated financial metrics with a sales conversation attached. This is neither. It is the pre-computed TVL, yield and price reads, fetched per call, for an agent that wants a number now and has no seat, no query to maintain and no contract.
The honest limit: these are reads of someone else's index, at that index's refresh cadence, and the yields response is large enough that an agent calling it in a loop should cache. Nothing here writes, quotes or executes — for a swap price the DEX endpoint is the right neighbour, and for a spot close the market-data endpoint is free.
DeFi TVL API questions: coverage, yields, protocol slugs, chains, cost
What does the DeFi TVL API return?
Five reads: every tracked protocol ranked by TVL, one protocol's TVL history with a per-chain breakdown, TVL totals by chain, every yield pool with its current APY and size, and token prices by identifier.
Which protocols and chains does the DeFi API cover?
Whatever the upstream index tracks, which is most of DeFi across several hundred chains — the chains read enumerates them, so an agent can discover coverage rather than guess a name.
How do I look up one protocol's TVL?
Address it as a path segment, not a query parameter: protocol/{slug}, with a slug like aave or uniswap. The response carries the TVL history and the breakdown by chain for that one protocol.
Can I get DeFi yield pools and APY through the API?
Yes. The yields read returns the whole tracked pool set — lending markets, liquidity pools, staking and vaults — each with its current APY and size, unfiltered so you can rank and filter in your own process.
How much does a DeFi TVL API call cost?
Per call, and the rate card above is rendered from the router's own endpoint registry rather than typed here — the token-price read is cheaper than the four index reads. No plan, no minimum, no key.
Do I need an API key to read DeFi TVL data?
No. Payment rides on the request as a header, so there is no account to create and no key to rotate. An agent funds a wallet once and each call pays for itself.
Is the DeFi TVL data realtime?
It is the upstream index's own refresh cadence, not a live chain read. For anything that must be current to the block, query a node — the RPC endpoints on this gateway serve that, and this one serves the aggregate.
DeFi TVL API vs DefiLlama direct, Dune or Token Terminal?
DefiLlama direct is the same data with its own base URLs and no payment header. Dune is for questions you write SQL to answer. Token Terminal sells curated metrics with a contract. This is the pre-computed reads, per call, beside the other endpoints an agent already uses.
Can an AI agent read protocol TVL without an account?
Yes, and that is the point of the shape. No signup, no dashboard and no key — the agent pays per request from its wallet and reads the number it came for.
Two ways to run this
Get an API key
Sign in, get a key, and call the same endpoints with usage billed to your account. For teams that want one invoice instead of one wallet.
Get an API keyOr let your agent pay per call, in USDC
No account, no API key. Three steps, and the last one is the request this page is about.
- Point your agent at BlockRun
Install ClawRouter, or add the BlockRun MCP server to Claude Code, Cursor, Codex or OpenClaw. Any OpenAI-compatible client works too — change the base URL, nothing else.
curl -fsSL https://blockrun.ai/ClawRouter-update | bash - Fund a wallet with USDC
Send USDC to a wallet on Base or Solana. There is no account to create and no API key to issue: the wallet is the account, and it pays per call.
- Call DeFi TVL API
The first call returns HTTP 402 with the exact price, your agent signs it, and the answer comes back. Payment settles on-chain; nothing is charged if the call fails.
GET /api/v1/defillama/protocol/{slug} Host: blockrun.ai
Explore everything on BlockRun
- GPT-6 Astra
- GPT-5.6 Sol
- GPT-5.6 Terra
- GPT-5.6 Luna
- GPT-5.6 Sol Pro
- GPT-5.6 Terra Pro
- GPT-5.6 Luna Pro
- GPT-5.5
- GPT-5.5 Pro
- ChatGPT Instant (GPT-5.5)
- GPT-5.4
- GPT-5.4 Pro
- GPT-5.1
- GPT-5.2
- GPT-5.4 Mini
- GPT-5 Mini
- GPT-5.4 Nano
- GPT-5.2 Pro
- GPT-5.3 Codex
- GPT-4.1
- GPT-4.1 Mini
- GPT-4.1 Nano
- GPT-4o
- GPT-4o Mini
- o1
- o3
- o3-mini
- o4-mini
- Claude Haiku 4.5
- Claude Sonnet 5
- All models →