# DeFi TVL Lookup via DefiLlama

> DeFi TVL Lookup via DefiLlama is a paid API for AI agents from defi.genexxis.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-30).

Returns DeFi TVL data from DefiLlama — top protocols by category/chain, chain TVL rankings, or a single protocol with per-chain breakdown and 90-day history.

## Facts

- Endpoint: GET https://defi.genexxis.com/defi-tvl?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-tvl-lookup-via-defillama-2d22d1c4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YanqQWQ6EIZ02LD_yBYxe

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-tvl-lookup-via-defillama-2d22d1c4
```

Example prompt: Pull the top 15 lending protocols by TVL on Ethereum from DefiLlama, including their 1-day and 7-day TVL changes.

## When to prefer this

Use this endpoint when you need structured, filterable DeFi TVL data sourced from DefiLlama — especially when you need to rank protocols by category or chain, compare TVL changes over time, or drill into a single protocol's cross-chain breakdown and historical TVL trend. Prefer this over direct DefiLlama API calls when you want a pay-per-call model with no API key management.

## Known failure modes

- Unknown protocol slug returns empty or error result
- Invalid category name returns zero matches
- Chain filter with non-standard casing may return no results
- maxItems outside 1-100 range may be rejected or clamped
- DefiLlama upstream API unavailability causes data fetch failure

## How this service works

DeFi TVL from DefiLlama: top protocols filtered by category and chain (TVL, 1d/7d change, market cap, chains), chain TVL rankings with protocol counts, or one protocol with per-chain TVL split and 90 days of daily TVL history.

## Output

Returns a JSON object with the mode used, filter parameters, total matched count, and an array of protocols or chains. Protocol entries include name, slug, TVL, market cap, 1d/7d change, category, and supported chains. Chain mode returns TVL rankings with protocol counts. Protocol mode adds per-chain TVL split and 90 days of daily TVL history.

## 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": {
      "mode": {
       "type": "string",
       "description": "protocols (default), chains or protocol"
      },
      "name": {
       "type": "string",
       "description": "protocol name or slug for mode=protocol, e.g. aave-v3"
      },
      "chain": {
       "type": "string",
       "description": "chain filter, e.g. Ethereum, Base, Solana"
      },
      "category": {
       "type": "string",
       "description": "DefiLlama category for mode=protocols, e.g. Lending, Dexs, Liquid Staking"
      },
      "maxItems": {
       "type": "string",
       "description": "1-100, default 10"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mode": "protocols",
  "count": 10,
  "source": "Data courtesy of DefiLlama (https://defillama.com, API api.llama.fi)",
  "filters": {
   "chain": null,
   "category": "Lending",
   "maxItems": 10
  },
  "matched": 655,
  "protocols": [
   {
    "tvl": 16718114450,
    "mcap": null,
    "name": "Aave V3",
    "slug": "aave-v3",
    "chains": [
     "Ethereum",
     "Base",
     "Arbitrum"
    ],
    "category": "Lending",
    "change_1d": -0.25,
    "change_7d": -1.16,
    "chainCount": 21
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-tvl-lookup-via-defillama-2d22d1c4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi.genexxis.com](https://www.zero.xyz/host/defi.genexxis.com/llms.txt)
