# DeFi TVL Lookup by Protocol Slug

> DeFi TVL Lookup by Protocol Slug is a paid API for AI agents from gateway.stride20k.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns the current total value locked (TVL) in USD for any DeFi protocol, aggregated across all chains, using a DefiLlama slug as identifier.

## Facts

- Endpoint: GET https://gateway.stride20k.com/defi/tvl/:protocol
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-tvl-lookup-by-protocol-slug-5c2aa164
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4tAbVHEJJ1clXfcQ398EE

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-by-protocol-slug-5c2aa164
```

Example prompt: What's Aave's current total value locked in USD across all chains? I want to check its protocol health before investing.

## When to prefer this

Use this endpoint when you need a quick, aggregated, cross-chain TVL figure for a specific DeFi protocol and already know its DefiLlama slug. Ideal for protocol health checks, risk screening, DeFi rankings, and market research by autonomous agents. Prefer this over scraping DefiLlama's website directly, as it provides structured JSON output with cache freshness metadata and requires only a single protocol slug parameter.

## Known failure modes

- Unknown or misspelled protocol slug returns an error (slugs must match DefiLlama's exact lowercase format)
- Protocol not yet indexed by DefiLlama returns a not-found error
- Upstream DefiLlama API unavailability causes a fetch failure
- Stale cache (up to 5 minutes) may return slightly outdated TVL during volatile market conditions
- Payment failure (x402) blocks the request if USDC balance is insufficient

## How this service works

DeFi TVL API: current total value locked in USD for any DeFi protocol by DefiLlama slug ('aave', 'uniswap', 'lido' — full list at defillama.com/protocols). Aggregates across every chain the protocol deploys on. Use for protocol health checks, DeFi rankings, risk screening, and market research by autonomous agents. Slugs are lowercase. Cached up to 5 minutes; freshness reported in meta.fetchedAt.

## Output

A JSON object containing the protocol slug, its current TVL in USD (aggregated across all chains), plus metadata including the upstream source (DefiLlama), whether the result was served from cache, and the ISO 8601 timestamp of when data was last fetched from the upstream (cached up to 5 minutes).

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-tvl-lookup-by-protocol-slug-5c2aa164/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.stride20k.com](https://www.zero.xyz/host/gateway.stride20k.com/llms.txt)
