# DeFi Protocol TVL Lookup via DeFiLlama

> DeFi Protocol TVL Lookup via DeFiLlama is a paid API for AI agents from prance-mounting-watch.ngrok-free.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns the current total value locked (TVL) in USD for a specified DeFi protocol, sourced from DeFiLlama.

## Facts

- Endpoint: GET https://prance-mounting-watch.ngrok-free.dev/v1/defi/tvl/:protocol
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-protocol-tvl-lookup-via-defillama-3751030f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7mcKl98shupU1ZGV0vFx7

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability defi-protocol-tvl-lookup-via-defillama-3751030f
```

Example prompt: What's the current total value locked for Aave — I want to know how big it is compared to other DeFi protocols.

## When to prefer this

Use this endpoint when you need a quick, single TVL figure for a specific DeFi protocol by its DeFiLlama slug. Ideal for comparing protocol sizes, gauging capital flows, or enriching DeFi research with real-time on-chain data. Prefer this over broader market data endpoints when the specific question is about protocol liquidity or size rather than token price.

## Known failure modes

- Unknown or misspelled protocol slug returns a 404 or empty result
- Protocol not indexed by DeFiLlama returns no data
- ngrok-free.dev domain may have uptime or rate-limit issues
- Stale data if DeFiLlama upstream is lagging
- Payment failure (402) if USDC balance is insufficient

## How this service works

Total value locked (TVL) in US dollars for any DeFi protocol, such as aave, lido, uniswap or curve, sourced from DeFiLlama. Use this to gauge how large a protocol is, compare DeFi platforms against each other, or track where capital is flowing across decentralized finance.

## Output

A numeric TVL figure in US dollars representing the total capital currently locked in the specified DeFi protocol, as tracked by DeFiLlama.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "protocol"
     ],
     "properties": {
      "protocol": {
       "type": "string",
       "description": "DeFiLlama protocol slug, e.g. aave, lido, uniswap"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-protocol-tvl-lookup-via-defillama-3751030f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from prance-mounting-watch.ngrok-free.dev](https://www.zero.xyz/host/prance-mounting-watch.ngrok-free.dev/llms.txt)
