# Syra DefiLlama TVL Lookup

> Syra DefiLlama TVL Lookup is a paid API for AI agents from api.syraa.fun, paid per call via x402, $0.00108/call, status unknown (last checked 2026-09-14).

Fetches Total Value Locked (TVL) data for a specific blockchain chain or DeFi protocol via DefiLlama, delivered as a pay-per-call API on Solana.

## Facts

- Endpoint: GET https://api.syraa.fun/defillama/tvl
- Price: $0.00108/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/syra-defillama-tvl-lookup-d3d873ed
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dR9zyrBXtUj2CrbaO-xgt

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 syra-defillama-tvl-lookup-d3d873ed
```

Example prompt: What's the current total value locked for Aave? Pull the latest TVL data from DefiLlama.

## When to prefer this

Choose this endpoint when you need pay-per-call, agent-native TVL lookups on the x402 protocol with Solana-based micropayments — ideal for autonomous agents that need to query DeFi TVL data without a subscription or API key, paying only per query in USDC.

## Known failure modes

- Missing or invalid protocol slug or chain name returns an error
- Payment failure (insufficient USDC balance) returns a 402 response
- Unknown protocol or chain not indexed by DefiLlama returns empty or error data
- Network timeout or DefiLlama upstream unavailability causes delayed or failed response

## How this service works

Machine money for agents on Solana: live x402 pay-per-call APIs, MCP tools, typed SDK. Earn · Treasury · Invest · Spend · Grow.

## Output

A JSON object with ok and paid status flags, and TVL data for the requested chain or protocol sourced from DefiLlama — typically includes the numeric TVL value in USD.

## 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",
     "queryParams": {
      "chain": {
       "type": "string",
       "required": false,
       "description": "Blockchain name (e.g. Solana, Ethereum) — alternative to protocol"
      },
      "protocol": {
       "type": "string",
       "required": false,
       "description": "DefiLlama protocol slug (e.g. aave, uniswap) — alternative to chain"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/syra-defillama-tvl-lookup-d3d873ed/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.syraa.fun](https://www.zero.xyz/host/api.syraa.fun/llms.txt)
