# DeFi Protocol TVL & Audit Data (DefiLlama)

> DeFi Protocol TVL & Audit Data (DefiLlama) is a paid API for AI agents from api.hyperd.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Returns DeFi protocol TVL, audit records, and chain distribution sourced from DefiLlama — supports single-protocol detail via slug or a top-50 list view.

## Facts

- Endpoint: GET https://api.hyperd.ai/api/protocol/tvl
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-hyperd-ai-b6706235
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tQ6lOm63WDC2LxUsDln_b

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 api-hyperd-ai-b6706235
```

Example prompt: What's the current TVL, audit history, and chain distribution for Aave? Pull the full protocol detail.

## When to prefer this

Use this endpoint when you need authoritative TVL data, audit history, or cross-chain distribution for a specific DeFi protocol, or when you need a ranked overview of the top 50 protocols. Prefer this over raw DefiLlama API calls when you want a pre-aggregated, pay-per-call interface without managing API keys.

## Known failure modes

- Unknown or misspelled slug returns empty result or 404
- Protocol not indexed by DefiLlama returns no data
- Missing both slug and list parameters may return default or error response
- Rate limiting or payment failure returns 402 error
- DefiLlama upstream outage causes stale or unavailable data

## How this service works

Protocol TVL, audits, chain distribution from DefiLlama. Pass ?slug=<protocol> for detail or ?list=true for top 50.

## Output

Returns TVL figures, audit records (auditors, dates, findings), and chain-level TVL distribution for the requested protocol; or a ranked list of the top 50 DeFi protocols by TVL when the list flag is set.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "slug": "aave"
  }
 }
}
```

## 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": {
      "list": {
       "type": "boolean"
      },
      "slug": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-hyperd-ai-b6706235/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.hyperd.ai](https://www.zero.xyz/host/api.hyperd.ai/llms.txt)
