# DefiLlama Protocol TVL Detail

> DefiLlama Protocol TVL Detail is a paid API for AI agents from defillama.use.x402atlas.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns full historical TVL plus per-chain and per-token breakdowns for a single DeFi protocol identified by its slug.

## Facts

- Endpoint: GET https://defillama.use.x402atlas.com/protocol
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defillama-protocol-tvl-detail-96fd034e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hEboSWqlB60FliIeLoPnt

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 defillama-protocol-tvl-detail-96fd034e
```

Example prompt: Pull up the full TVL history and per-chain breakdown for Aave from DefiLlama — I want to see how its locked value has trended and which chains it's spread across.

## When to prefer this

Use this endpoint when you need deep, granular TVL data for a single known DeFi protocol — including historical time series and multi-chain/multi-token breakdowns. Prefer this over the protocols-list endpoint when you already know the protocol slug and need per-chain or per-token detail rather than a summary snapshot.

## Known failure modes

- Invalid or unknown protocol slug returns 404 or empty response
- Slug typo results in no data (e.g. 'aav' instead of 'aave')
- Protocol recently delisted from DefiLlama may return stale or missing data
- Rate limiting or payment failure returns 402 or 429

## How this service works

DeFi protocol detail by DefiLlama — full historical TVL plus per-chain and per-token breakdowns for one protocol by slug.

## Output

Returns a detailed object for the specified protocol including: full historical TVL time series (aggregate), per-chain TVL history, per-token TVL breakdown, protocol name, description, category, chains, and current TVL figures.

## 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",
     "required": [
      "slug"
     ],
     "properties": {
      "slug": {
       "type": "string",
       "pattern": "^[^/?#]+$",
       "maxLength": 100,
       "minLength": 1,
       "description": "Protocol slug (e.g. aave, uniswap, lido)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "queried_at",
      "data"
     ],
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "name": {
         "type": "string"
        },
        "slug": {
         "type": "string"
        },
        "chainTvls": {
         "type": "object",
         "description": "Per-chain historical TVL breakdown, keyed by chain name"
        }
       },
       "description": "Full protocol record relayed verbatim from DefiLlama"
      },
      "queried_at": {
       "type": "string",
       "format": "date-time",
       "description": "Time the upstream was queried"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "name": "Aave",
   "slug": "aave",
   "chainTvls": {
    "Ethereum": {}
   }
  },
  "queried_at": "2026-07-01T12:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defillama-protocol-tvl-detail-96fd034e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defillama.use.x402atlas.com](https://www.zero.xyz/host/defillama.use.x402atlas.com/llms.txt)
