# DeFi Protocols TVL Leaderboard

> DeFi Protocols TVL Leaderboard 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-14).

Returns a ranked list of top DeFi protocols ordered by Total Value Locked (TVL)

## Facts

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

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-fbd24599
```

Example prompt: Show me the top DeFi protocols ranked by total value locked right now — I want to see which protocols are leading the market.

## When to prefer this

Use this endpoint when you need a ranked overview of the entire DeFi protocol landscape by TVL, rather than the TVL of a single specific protocol. Prefer this over the single-protocol TVL endpoint when you want comparative rankings or market share analysis across all major DeFi protocols.

## Known failure modes

- Upstream DefiLlama data unavailable — may return stale or empty data
- Payment required (402) if x402 micropayment not provided
- Rate limiting if too many requests in quick succession
- Empty protocol list if data pipeline is down

## How this service works

List top DeFi protocols ranked by TVL

## Output

Returns a list of DeFi protocols sorted by TVL, including protocol names and their respective locked values, along with a total count of protocols returned.

## 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": {
      "total": {
       "type": "number"
      },
      "protocols": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-web3identity-com-fbd24599/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)
