# x402 DeFi TVL Data API

> x402 DeFi TVL Data API is a paid API for AI agents from workspace-x402-paywall.onrender.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-11).

Returns live total value locked (TVL) data across DeFi protocols, payable per-call via x402 micro-payment in USDC

## Facts

- Endpoint: GET https://workspace-x402-paywall.onrender.com/defi/tvl?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-defi-tvl-data-api-6f905a0a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HFqxMgPDma7eI_D3UEPyw

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 x402-defi-tvl-data-api-6f905a0a
```

Example prompt: Can you pull the current TVL data for DeFi protocols and just return the name and price_usd fields?

## When to prefer this

Choose this endpoint when you need live, pay-per-call DeFi TVL data without a subscription, especially in micro-payment contexts using x402 on Base or Solana. Ideal for agents that query TVL occasionally rather than continuously and want to avoid monthly API key costs.

## Known failure modes

- Payment not provided or insufficient USDC — returns 402 Payment Required
- Invalid fields parameter value returns empty or malformed response
- Service unavailable if upstream DeFi data source is down
- Rate limiting if too many rapid sequential calls without valid payments

## How this service works

66 pay-per-call APIs: AI text/image generation ($0.01), Polymarket odds, crypto prices, DeFi yields, FX rates, weather, IP/geo, FBI wanted, SEC tickers, clinical trials, 250M academic papers, Stack Overflow, meme-coin launchpads (pump.fun, Clanker, Four.meme, SunPump), tokenized stocks, Solana top 100, and 40+ more. $0.005/call standard. USDC on Base and Solana via x402.

## Output

A JSON object containing TVL (total value locked) data for DeFi protocols, optionally filtered to specific fields such as name and price_usd, reflecting live on-chain liquidity metrics.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-defi-tvl-data-api-6f905a0a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from workspace-x402-paywall.onrender.com](https://www.zero.xyz/host/workspace-x402-paywall.onrender.com/llms.txt)
