# DeFi Protocol TVL Lookup via DefiLlama

> DeFi Protocol TVL Lookup via DefiLlama is a paid API for AI agents from x402-seller-0ay3.onrender.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

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

## Facts

- Endpoint: GET https://x402-seller-0ay3.onrender.com/api/defi/tvl
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-protocol-tvl-lookup-via-defillama-5330df4b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_c0MmCvD1wjHzxoiMma3Ur

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-5330df4b
```

Example prompt: What's the current total value locked in Aave right now? Pull it from DefiLlama.

## When to prefer this

Use this endpoint when you need a single DeFi protocol's current TVL and want a lightweight, paid-per-call lookup without managing DefiLlama API keys or rate limits yourself. Ideal for agents that need real-time DeFi protocol size data as part of a broader financial analysis or monitoring workflow.

## Known failure modes

- Unknown or misspelled protocol slug returns an error or null TVL
- DefiLlama API downtime causes fetch failure
- Protocol slug format mismatch (e.g. using display name instead of slug like 'aave-v3' vs 'aave')
- Network timeout from Render cold start on first request

## How this service works

Current TVL (total value locked) of a specific DeFi protocol, source DefiLlama. Parameter: ?protocol=<slug> (default: aave).

## Output

A JSON object containing the protocol slug, TVL in USD as a number, currency (USD), the source DefiLlama API URL, and a timestamp of when the data was fetched. Example: {protocol: 'aave', tvl_usd: 21000000000, currency: 'USD', source: 'https://api.llama.fi/tvl/aave', fetched_at: '2026-09-01T12:00:00.000Z'}.

## 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"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "protocol": {
       "type": "string",
       "description": "DefiLlama protocol slug (e.g. aave, lido, uniswap)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "source": "https://api.llama.fi/tvl/aave",
  "tvl_usd": 21000000000,
  "currency": "USD",
  "protocol": "aave",
  "fetched_at": "2026-09-01T12:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-protocol-tvl-lookup-via-defillama-5330df4b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-seller-0ay3.onrender.com](https://www.zero.xyz/host/x402-seller-0ay3.onrender.com/llms.txt)
