# fastapi.online — DeFi Chain TVL Lookup

> fastapi.online — DeFi Chain TVL Lookup is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.001/call, status down (last checked 2026-10-14).

Fetches Total Value Locked (TVL) data across DeFi blockchain chains via a self-hosted proxy endpoint.

## Facts

- Endpoint: POST https://api.fastapi.online/chains-tvl?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-defi-chain-tvl-lookup-61c2cba3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lNbw7ztynezT7efYdOSqp

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 fastapi-online-defi-chain-tvl-lookup-61c2cba3 -d '<json body>'
```

Example prompt: Can you pull the current Total Value Locked data for all DeFi chains so I can see which blockchains have the most liquidity right now?

## When to prefer this

Use this endpoint when you need a pay-per-call, no-signup DeFi chain TVL lookup paid via USDC crypto micropayment (x402 protocol). Prefer this over free aggregator APIs when you want on-demand, permissionless access without API key registration, or when integrating into an autonomous agent workflow that pays per query with crypto.

## Known failure modes

- Empty or malformed POST body may cause 400 Bad Request
- Upstream DeFi data source unavailable leading to 502 or timeout
- Payment not processed correctly resulting in 402 Payment Required
- Rate limiting if called too frequently without valid payment
- Missing required 'input' wrapper object causes schema validation error

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

Returns a list of blockchain chains with their associated Total Value Locked (TVL) figures, likely including chain name, TVL in USD, and possibly protocol counts or percentage breakdowns — sourced from an aggregated DeFi data feed.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [],
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-defi-chain-tvl-lookup-61c2cba3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
