# SiteCheck DeFi Fees Lookup

> SiteCheck DeFi Fees Lookup is a paid API for AI agents from api.sitecheck-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-28).

Returns fee and revenue statistics for a DeFi protocol (e.g. Aave, Uniswap) sourced from DefiLlama, including 24h, 7d, and 30d totals and day-over-day change percentages.

## Facts

- Endpoint: GET https://api.sitecheck-api.workers.dev/api/defi/fees?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sitecheck-defi-fees-lookup-06703900
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VWDb7rcwPbNYOb_T2a1BH

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 sitecheck-defi-fees-lookup-06703900
```

Example prompt: What are the fees and revenue stats for Aave over the last 7 days — give me the 24h and 30d totals too, plus any day-over-day change?

## When to prefer this

Use this endpoint when you need structured, ready-to-use DeFi protocol fee and revenue metrics sourced from DefiLlama without building a direct DefiLlama integration. It is ideal for agents that need pay-per-call access to protocol analytics alongside other data types (web audits, compliance, blockchain) from a single multi-tool provider. Prefer this over direct DefiLlama API calls when using the SiteCheck ecosystem for other tasks.

## Known failure modes

- Unknown or misspelled protocol slug returns an error or empty data
- DefiLlama upstream unavailability causes data fetch failure
- Protocol exists but has no fee data tracked by DefiLlama
- Missing required 'protocol' query parameter triggers validation error
- Rate limiting or payment failure (402) if USDC balance is insufficient

## How this service works

A DeFi protocol's fees and revenue for 24 hours, 7 days and 30 days, with the change over the last day against the day before, and the chains it runs on. Attribution: Data: DefiLlama. Information only, not financial advice.

## Output

A JSON object containing total fees (24h, 7d, 30d in USD) and their 1-day percentage change, protocol revenue figures (24h, 7d, 30d in USD) with 1-day change, a list of chains the protocol operates on, the protocol's canonical name, a source URL to the underlying DefiLlama data, a timestamp, and a disclaimer noting the data is informational only.

## 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": [
      "protocol"
     ],
     "properties": {
      "protocol": {
       "type": "string",
       "description": "DefiLlama protocol slug, e.g. aave or uniswap-v3"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "fees": {
   "total7dUsd": 9204788,
   "change1dPct": 4.97,
   "total24hUsd": 1304655,
   "total30dUsd": 38268893
  },
  "chains": [
   "Ethereum",
   "Polygon",
   "Avalanche"
  ],
  "source": "https://api.llama.fi/summary/fees/aave",
  "revenue": {
   "total7dUsd": 1269162,
   "change1dPct": 68.66,
   "total24hUsd": 272990,
   "total30dUsd": 5062205
  },
  "protocol": "Aave",
  "checkedAt": "2026-10-14T07:00:24.717Z",
  "disclaimer": "Information only, not financial advice.",
  "attribution": "Data: DefiLlama"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sitecheck-defi-fees-lookup-06703900/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.sitecheck-api.workers.dev](https://www.zero.xyz/host/api.sitecheck-api.workers.dev/llms.txt)
