# DeFiLlama Protocol TVL Lookup

> DeFiLlama Protocol TVL Lookup is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.020000/call, status unknown (last checked 2026-09-14).

Fetches TVL, chain breakdown, 24h/7d/30d changes, audit info, categories, and parent protocol for any DeFi protocol via DeFiLlama.

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/defi-llama-protocol
- Price: $0.020000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-68c43a2b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zG8hT6YjqQ5Cq6xDpCWGX

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-deployer-x402-deployer-workers-dev-68c43a2b -d '<json body>'
```

Example prompt: Can you look up the current TVL for Uniswap on DeFiLlama, including its chain breakdown and how much the TVL has changed over the past 24 hours, 7 days, and 30 days?

## When to prefer this

Use this endpoint when you need structured DeFiLlama TVL data for a specific DeFi protocol including chain-level breakdowns, historical change metrics, audit status, and category tags — especially when you want a single paid, reliable API call rather than scraping DeFiLlama directly.

## Known failure modes

- Unknown or misspelled protocol slug returns 404 or empty result
- Protocol not indexed by DeFiLlama returns no data
- Upstream DeFiLlama API unavailable causes timeout or 5xx error
- Rate limiting or payment failure returns 402 or 429

## How this service works

DefiLlama protocol lookup — TVL, chain breakdown, current TVL, 24h/7d/30d changes, audits, parent protocol, categories. Free public API with attribution.

## Output

Returns the protocol's current total value locked (TVL), a breakdown of TVL across individual chains, percentage changes over 24h/7d/30d periods, associated categories (e.g. DEX, lending), audit records, and parent protocol if applicable.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "properties": {
      "protocol": {
       "type": "string",
       "description": "DefiLlama slug (lowercase, hyphenated). Examples: 'aave', 'lido', 'uniswap', 'makerdao', 'curve-dex'. See defillama.com/protocols for the canonical slug list."
      },
      "include_tvl_series": {
       "type": "boolean",
       "description": "If true, attach the full historical TVL time-series under tvl_summary.series. Adds significant payload size. Default false."
      }
     },
     "required": [
      "protocol"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "protocol_slug": {
       "type": "string"
      },
      "name": {
       "type": "string"
      },
      "symbol": {
       "type": "string"
      },
      "category": {
       "type": "null"
      },
      "chain": {
       "type": "null"
      },
      "parent_protocol": {
       "type": "null"
      },
      "url": {
       "type": "string"
      },
      "twitter": {
       "type": "string"
      },
      "audits": {
       "type": "null"
      },
      "audit_links": {
       "type": "array"
      },
      "description": {
       "type": "string"
      },
      "logo": {
       "type": "string"
      },
      "current_tvl_usd": {
       "type": "integer"
      },
      "chain_tvl_breakdown": {
       "type": "object",
       "properties": {
        "Ethereum": {
         "type": "integer"
        },
        "Polygon": {
         "type": "integer"
        },
        "Arbitrum": {
         "type": "integer"
        }
       }
      },
      "tvl_summary": {
       "type": "object",
       "properties": {
        "change_24h_pct": {
         "type": "number"
        },
        "change_7d_pct": {
         "type": "number"
        },
        "change_30d_pct": {
         "type": "number"
        }
       }
      },
      "attribution": {
   
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-68c43a2b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
