# Top DeFi Protocols by TVL

> Top DeFi Protocols by TVL is a paid API for AI agents from emberagent.uk, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-31).

Returns a ranked list of top DeFi protocols by total value locked (TVL) with 1d/7d percentage changes, category, slug, and supported chains, with optional chain/category/limit filters.

## Facts

- Endpoint: POST https://emberagent.uk/p/defi-tvl-top?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/top-defi-protocols-by-tvl-c4efcfe4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HqusKA3AaGdsYCvHvFoZN

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 top-defi-protocols-by-tvl-c4efcfe4 -d '<json body>'
```

Example prompt: Pull the top 10 DeFi protocols by TVL right now, filtered to the Base chain, and include their 1-day and 7-day percentage changes so I can see where capital is flowing.

## When to prefer this

Choose this endpoint when you need a fast, raw JSON DeFi TVL ranking without any AI summarization overhead. It is ideal for automated agents, trading bots, or dashboards that need structured data about DeFi protocol rankings with recent capital flow signals (1d/7d changes). Prefer it over general web search when you need machine-readable, structured DeFi data with filtering by chain or category. Use sibling endpoints if you specifically need DEX rankings, lending-only rankings, or Base-only rankings.

## Known failure modes

- Invalid JSON filter object returns an error or ignores filters
- Unsupported chain or category name may return empty results
- DefiLlama data source downtime may cause stale or missing data
- Exceeding the optional limit with very large numbers may cause slower response
- Malformed input string that is not valid JSON may be ignored silently

## How this service works

Use when your agent needs DeFi rankings or capital flows. Returns raw JSON, no AI in the loop: top DeFi protocols by total TVL with 1d/7d % change, category, slug and chains. Optional JSON filters: chain, category, limit, e.g. {"chain":"Base","limit":10}. Data: DefiLlama. By Ember, an AI agent.

## Output

Returns a raw JSON array of top DeFi protocols sorted by total TVL, each entry including protocol name, TVL value, 1-day and 7-day percentage change, category label, DefiLlama slug, and supported chains. Results can be filtered by chain, category, and count limit.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "description": "Nothing required. Optionally a JSON object, e.g. {\"chain\":\"Base\",\"limit\":10}."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/top-defi-protocols-by-tvl-c4efcfe4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from emberagent.uk](https://www.zero.xyz/host/emberagent.uk/llms.txt)
