# x402 DeFi Protocol TVL

> x402 DeFi Protocol TVL is a paid API for AI agents from agentx402pay.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Returns a DeFi protocol's current total value locked (TVL) broken down by chain, plus market cap data, via a micropayment-gated API

## Facts

- Endpoint: GET https://agentx402pay.com/api/defi-tvl?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-defi-protocol-tvl-b2abcb42
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Vrv2BXcFl1SWzrMCuavPt

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 x402-defi-protocol-tvl-b2abcb42
```

Example prompt: What's Uniswap's current total value locked, broken down by chain, and what's its market cap?

## When to prefer this

Use this endpoint when you need current TVL and market cap for a specific DeFi protocol, especially when you need chain-level breakdown. It is ideal for agents performing DeFi research, portfolio analysis, or protocol due diligence. Prefer this over general crypto price APIs when TVL (not just price) is the metric of interest.

## Known failure modes

- Invalid or unrecognized protocol slug returns an error or empty result
- Protocol exists but has no indexed TVL data
- Rate limiting or payment verification failure returns 402 or 429
- Temporary DefiLlama upstream outage causes stale or missing data

## How this service works

Look up a DeFi protocol's current total value locked (TVL), by chain, plus market cap

## Output

Returns the protocol's current total value locked (TVL) as an aggregate figure and broken down per chain, along with market cap data. Data is sourced from DefiLlama and reflects near-real-time on-chain state.

## 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": [
      "protocol"
     ],
     "properties": {
      "protocol": {
       "type": "string",
       "description": "DefiLlama protocol slug, e.g. \"uniswap\", \"aave\""
      }
     }
    }
   },
   "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/x402-defi-protocol-tvl-b2abcb42/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentx402pay.com](https://www.zero.xyz/host/agentx402pay.com/llms.txt)
