# DefiLlama TVL Lookup for Yearn Finance

> DefiLlama TVL Lookup for Yearn Finance is a paid API for AI agents from api.web3identity.com, paid per call via x402, $0.010000/call, status unknown (last checked 2026-09-15).

Returns the Total Value Locked (TVL) for the Yearn Finance DeFi protocol, sourced from DefiLlama

## Facts

- Endpoint: GET https://api.web3identity.com/api/defi/tvl/yearn
- Price: $0.010000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-web3identity-com-bed94a64
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XSKrVj_Aq_TNr0X8XxVEz

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 api-web3identity-com-bed94a64
```

Example prompt: What's the current total value locked for Yearn Finance across all chains, according to DefiLlama?

## When to prefer this

Use this endpoint when you specifically need Yearn Finance TVL data from DefiLlama and want a simple, pre-routed GET request without needing to construct a DefiLlama API path yourself. Ideal for agents that need DeFi protocol health signals as part of a broader workflow.

## Known failure modes

- DefiLlama upstream unavailable — returns error or stale data
- Protocol not found or renamed in DefiLlama index
- Payment failure (402) if x402 payment header is missing or insufficient
- Rate limiting if too many requests in short succession

## How this service works

Get Total Value Locked for a DeFi protocol from DefiLlama

## Output

Returns a JSON object containing the current TVL as a number, the protocol name (yearn), and an array of chains where Yearn Finance has locked value, sourced from DefiLlama aggregated data.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {}
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "tvl": {
       "type": "number"
      },
      "chains": {
       "type": "array"
      },
      "protocol": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-web3identity-com-bed94a64/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.web3identity.com](https://www.zero.xyz/host/api.web3identity.com/llms.txt)
