# Aayat AI – DeFi Protocol Fee & Revenue Rankings

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

Returns a ranked list of up to 50 crypto protocols by fees paid by users or by protocol revenue over 24h, 7d, or 30d, optionally filtered by chain or category, using DefiLlama data.

## Facts

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

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-fee-revenue-rankings-7ddae01b
```

Example prompt: Show me the top 20 DeFi protocols ranked by fees paid over the last 7 days on Solana, including day-on-day changes.

## When to prefer this

Choose this endpoint when you need current or recent DeFi protocol fee and revenue rankings from DefiLlama, especially when filtering by chain or protocol category matters. Prefer it over generic crypto market data APIs because it specifically surfaces protocol-level economic activity (fees and revenue) rather than token prices or TVL. It is ideal for DeFi research agents, investment screening, and competitive protocol analysis.

## Known failure modes

- Invalid chain name returns empty results or error
- Invalid category string returns no matching protocols
- Limit out of range (below 1 or above 50) returns validation error
- DefiLlama data unavailability may cause stale or missing results
- Unsupported period value returns schema validation error

## How this service works

Which crypto protocols earn the most: a ranking by fees paid by users or by the protocol's own revenue over 24 hours, 7 days or 30 days, optionally for one chain (e.g. Base, Solana) or one category (Dexs, Lending, Stablecoin Issuer, Derivatives...). Up to 50 rows with amount, day-on-day change and number of chains. DefiLlama data.

## Output

A ranked JSON array of up to 50 DeFi protocols with protocol name, fee or revenue amount for the selected period, percentage change day-on-day, and number of chains the protocol operates on. Also includes metadata such as the ranking metric used, time period, optional chain/category filter applied, total number of protocols tracked, and the DefiLlama source attribution.

## 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": {
      "by": {
       "enum": [
        "fees",
        "revenue"
       ],
       "type": "string",
       "default": "fees",
       "description": "fees = what users paid; revenue = what the protocol kept."
      },
      "chain": {
       "type": "string",
       "maxLength": 60,
       "description": "Only this chain, e.g. Base (default: all chains)."
      },
      "limit": {
       "type": "integer",
       "default": 10,
       "maximum": 50,
       "minimum": 1,
       "description": "How many rows (1-50)."
      },
      "detail": {
       "enum": [
        "full",
        "brief"
       ],
       "type": "string",
       "default": "full",
       "description": "brief = key fields only (same price)"
      },
      "period": {
       "enum": [
        "24h",
        "7d",
        "30d"
       ],
       "type": "string",
       "default": "24h",
       "description": "Time window."
      },
      "category": {
       "type": "string",
       "maxLength": 60,
       "description": "Only this DefiLlama category, e.g. Dexs, Lending (default: all)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "by",
      "period",
      "protocols",
      "source"
     ],
     "properties": {
      "by": {
       "type": "string"
      },
      "chain": {
       "type": [
        "string",
        "null"
       ]
      },
      "trust": {
       "type": "object",
       "description": "Third-party text, cleaned: read trust.notice; removed = what we stripped."
      },
      "period": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "category": {
       "type": [
        "string",
        "null"
       ]
      },
      "protocols": {
       "type": "array",
       "items": {
        "type": "object"
       }
      },
      "totalTracked": {
       "type": "integer"
      }
     }
    }

… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aayat-ai-defi-protocol-fee-revenue-rankings-7ddae01b/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)
