# aiworker-data DeFi Protocol Snapshot

> aiworker-data DeFi Protocol Snapshot is a paid API for AI agents from aiworker.duckdns.org, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Returns a snapshot of a single DeFi protocol by DefiLlama slug, including TVL by chain, category, 1d/7d change, audits, and cache status

## Facts

- Endpoint: GET https://aiworker.duckdns.org/v1/defi/protocol/%7Bslug%7D
- 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/aiworker-data-defi-protocol-snapshot-6456387d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qPbhe5_Wr2ses4F3_hnZV

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 aiworker-data-defi-protocol-snapshot-6456387d
```

Example prompt: Pull the latest DefiLlama snapshot for AAVE V3 — I want to see its current TVL, which chains it's on, and how TVL has changed over the last 7 days.

## When to prefer this

Use this endpoint when you need structured, machine-readable protocol-level DeFi data (TVL, chain breakdown, audits, category) for a specific protocol identified by its DefiLlama slug. Prefer this over the yield pool or LLM-summary sibling endpoints when you want raw, factual protocol stats rather than interpreted analysis or pool-level yield data.

## Known failure modes

- Invalid or unknown protocol slug returns a 404 or empty protocol object
- Stale cache data may lag real-time DefiLlama figures
- Network errors or DefiLlama API downtime result in failed responses
- Malformed slug (e.g. using protocol name instead of slug) returns no results

## How this service works

Deterministic-first data for agents, paid per call in USDC over x402 v2: DeFi yields, Base token and wallet cards, Polymarket odds and backtests, news, fact checks, cited briefs. 20 routes, $0.005-$1

## Output

A JSON object containing the protocol's canonical name, DefiLlama slug, TVL in USD, TVL breakdown by chain, category classification, 1-day and 7-day TVL percentage changes, audit information, and a cache_hit boolean indicating whether the response was served from cache.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "protocol": {
   "name": "AAVE V3",
   "slug": "aave-v3",
   "tvl_usd": 20800000000
  },
  "cache_hit": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aiworker-data-defi-protocol-snapshot-6456387d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aiworker.duckdns.org](https://www.zero.xyz/host/aiworker.duckdns.org/llms.txt)
