# Aayat AI – DeFi Protocol Fees & Revenue

> Aayat AI – DeFi Protocol Fees & Revenue is a paid API for AI agents from aayatai.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-02).

Returns user-paid fees and protocol-kept revenue for any DefiLlama-tracked DeFi protocol across multiple time windows (24h, 7d, 30d, 1y, all-time) along with day-on-day change, revenue share percentage, and chains.

## Facts

- Endpoint: GET https://aayatai.com/protocol/fees?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aayat-ai-defi-protocol-fees-revenue-ff58438e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g7b5Se7mCTWpspiclf3cC

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 aayat-ai-defi-protocol-fees-revenue-ff58438e
```

Example prompt: What fees did Uniswap generate over the last 7 days and 30 days, and what percentage of those fees does the protocol actually keep?

## When to prefer this

Use this endpoint when you need structured, multi-window fee and revenue data for a specific DeFi protocol — especially when you need the revenue-share ratio, chains breakdown, or day-on-day delta. Prefer this over generic DeFi data aggregators when the data needs to be machine-readable and the protocol is tracked by DefiLlama. Not suitable for individual wallet fee queries or token price lookups.

## Known failure modes

- Unknown or misspelled protocol slug returns an error or empty result
- Protocol exists on DefiLlama but has no fee tracking data
- Network timeout or upstream DefiLlama data unavailability
- Missing required 'protocol' query parameter returns a validation error
- Very new protocols may have incomplete historical windows (e.g. no 1y or all-time data)

## How this service works

What a DeFi protocol earns: fees paid by its users and the protocol's own revenue over the last 24 hours, 7 days, 30 days, a year and all time, the day-on-day change, the share of fees it keeps, and the chains it runs on. Any protocol DefiLlama tracks (Aave, Uniswap, Lido, Hyperliquid...). Protocol figures only, nothing about individual wallets.

## Output

A JSON object containing the protocol name and slug, an array of chains it operates on, fee and revenue figures in USD broken down by 24h/7d/30d/1y/all-time windows, the day-on-day percentage change, the 30-day revenue-as-share-of-fees percentage, and a source attribution field.

## 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",
       "maxLength": 80,
       "minLength": 2,
       "description": "Protocol name or DefiLlama slug, e.g. aave, uniswap, lido."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "protocol",
      "slug",
      "chains",
      "feesUsd",
      "revenueUsd",
      "source"
     ],
     "properties": {
      "slug": {
       "type": "string"
      },
      "trust": {
       "type": "object",
       "description": "Third-party text, cleaned: read trust.notice; removed = what we stripped."
      },
      "chains": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "source": {
       "type": "string"
      },
      "feesUsd": {
       "type": "object",
       "description": "Fees paid by users, in US dollars."
      },
      "protocol": {
       "type": "string"
      },
      "revenueUsd": {
       "type": "object",
       "description": "The part the protocol keeps, in US dollars."
      },
      "revenueShareOfFees30dPct": {
       "type": [
        "number",
        "null"
       ]
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aayat-ai-defi-protocol-fees-revenue-ff58438e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aayatai.com](https://www.zero.xyz/host/aayatai.com/llms.txt)
