# TBS Crypto & DeFi API – DeFi TVL Lookup

> TBS Crypto & DeFi API – DeFi TVL Lookup is a paid API for AI agents from crypto-x402.tbs-digital.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-10).

Returns real-time Total Value Locked (TVL) data for DeFi protocols and chains, sourced from DefiLlama, filterable by chain or protocol slug.

## Facts

- Endpoint: GET https://crypto-x402.tbs-digital.com/defi/tvl?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tbs-crypto-defi-api-defi-tvl-lookup-e92386e5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_A48z9lIKnPrjOcEZ4_lkb

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 tbs-crypto-defi-api-defi-tvl-lookup-e92386e5
```

Example prompt: Can you pull the current total value locked for Aave from DefiLlama? I want to see how much is locked in that protocol right now.

## When to prefer this

Choose this endpoint when you need real-time DeFi TVL data specifically from DefiLlama for a given protocol or chain, payable via USDC on Base with no API key required. Prefer it over direct DefiLlama API calls when you need a unified, agent-ready schema with x402 micropayment support and sub-cent pricing.

## Known failure modes

- Invalid protocol slug returns null or empty protocol object
- Unknown chain name returns null chain data
- Missing required method field causes request rejection
- Network latency from upstream DefiLlama data feed may cause stale data
- USDC payment failure via x402 on Base blocks the request

## How this service works

Crypto & DeFi data for AI agents in one sub-cent call: real-time token prices, market data (market cap, volume, supply), DeFi TVL by protocol or chain, yield/APY pools, and a flagship bundle combining all of it. DefiLlama + Coinpaprika, keyless, unified schema, USDC-payable via x402 on Base.

## Output

Returns a JSON object containing a list of top chains with their TVL in USD, optionally filtered to a specific chain or DefiLlama protocol slug. Also includes the data source (DefiLlama), a request ID, payer address, network, and a generated timestamp.

## 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",
     "properties": {
      "chain": {
       "type": "string",
       "description": "Chain name, e.g. Ethereum (optional)"
      },
      "protocol": {
       "type": "string",
       "description": "DefiLlama protocol slug, e.g. aave (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "chain": {
       "type": "object",
       "nullable": true
      },
      "payer": {
       "type": "object",
       "properties": {
        "address": {
         "type": "string",
         "nullable": true
        },
        "network": {
         "type": "string"
        }
       }
      },
      "source": {
       "type": "string"
      },
      "protocol": {
       "type": "object",
       "nullable": true
      },
      "request_id": {
       "type": "string"
      },
      "top_chains": {
       "type": "array"
      },
      "generated_at": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "payer": {
   "address": "0x0000000000000000000000000000000000000000",
   "network": "base"
  },
  "source": "defillama",
  "request_id": "0b21c0e6-6a3f-4e2a-8b1e-2f9d4c7a1e55",
  "top_chains": [
   {
    "name": "Ethereum",
    "tvl_usd": 52100000000
   }
  ],
  "generated_at": "2026-08-11T12:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tbs-crypto-defi-api-defi-tvl-lookup-e92386e5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from crypto-x402.tbs-digital.com](https://www.zero.xyz/host/crypto-x402.tbs-digital.com/llms.txt)
