# WickedAPI DeFi TVL Endpoint

> WickedAPI DeFi TVL Endpoint is a paid API for AI agents from api.wickedapi.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-10).

Returns total value locked (TVL) data across DeFi protocols for macroeconomic and market analysis

## Facts

- Endpoint: GET https://api.wickedapi.com/v1/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/wickedapi-defi-tvl-endpoint-baf8a7d3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1sll0ifJ-QJdfKRuuS1FM

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 wickedapi-defi-tvl-endpoint-baf8a7d3
```

Example prompt: What's the current total value locked across DeFi protocols? I need the latest TVL data for my macro market analysis.

## When to prefer this

Choose this endpoint when you need programmatic, pay-per-call access to DeFi TVL data without a long-term subscription, especially in agentic workflows that already support x402 USDC micropayments. It is ideal for trading bots, portfolio dashboards, or macro analysis pipelines that need current on-chain liquidity snapshots alongside other market data from the same WickedAPI suite.

## Known failure modes

- Invalid or missing required input parameters returns a 400 error
- Payment not provided or insufficient USDC balance triggers a 402 Payment Required response
- API key invalid or expired returns a 401 Unauthorized error
- Upstream data provider outage may result in stale or empty data fields
- Rate limiting may occur if too many calls are made in a short window

## How this service works

Agent-ready trading & market-data API: prices, indicators, prediction markets, macro, and an AI momentum score. Pay per call with x402 (USDC) or an API key.

## Output

Returns a JSON object containing DeFi TVL data (total value locked across protocols) with a meta object including a timestamp indicating when the data was recorded. The data field contains the TVL metrics for DeFi market analysis.

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "meta": {
   "timestamp": "2026-01-01T00:00:00.000Z"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wickedapi-defi-tvl-endpoint-baf8a7d3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.wickedapi.com](https://www.zero.xyz/host/api.wickedapi.com/llms.txt)
