# DeFi Protocols by TVL

> DeFi Protocols by TVL 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 top DeFi protocols ranked by total value locked (TVL) in USD, sourced from DefiLlama, with an optional limit parameter.

## Facts

- Endpoint: GET https://x402-seller-0ay3.onrender.com/api/defi/protocols
- 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-protocols-by-tvl-2da2ef54
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5VD0yNj7m6B5JX6uTH02R

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-protocols-by-tvl-2da2ef54
```

Example prompt: Pull the top 20 DeFi protocols ranked by total value locked from DefiLlama and show me their names, chains, and TVL figures.

## When to prefer this

Choose this endpoint when you need a ranked list of DeFi protocols by TVL sourced from DefiLlama without building your own aggregation logic. It is ideal for market overviews, competitor research, or any workflow needing up-to-date TVL rankings across multiple chains. Prefer this over raw DefiLlama API calls when you want a pay-per-use, agent-compatible interface at low cost ($0.005 per call).

## Known failure modes

- limit parameter out of range (below 1 or above 100) may return an error or default behavior
- DefiLlama API unavailability may cause stale or missing data
- Network timeout on Render.com cold start if service is idle
- Missing or malformed query parameter may return default 20 results

## How this service works

Top DeFi protocols ranked by TVL (total value locked), highest first, source DefiLlama. Optional parameter: ?limit=<n> (1 to 100, default 20).

## Output

Returns a JSON object containing a count of results, the source URL (DefiLlama API), a fetch timestamp, and an array of protocol objects each with name, chain, token symbol, TVL in USD, and category — sorted highest TVL first.

## 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": {
      "limit": {
       "type": "integer",
       "description": "Number of protocols to return (1-100, default 20)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 20,
  "source": "https://api.llama.fi/protocols",
  "protocols": [
   {
    "name": "Binance CEX",
    "chain": "Multi-Chain",
    "symbol": "BNB",
    "tvl_usd": 120000000000,
    "category": "CEX"
   }
  ],
  "fetched_at": "2026-09-01T12:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-protocols-by-tvl-2da2ef54/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)
