# DripMetrics AI Protocol Fee Yield

> DripMetrics AI Protocol Fee Yield is a paid API for AI agents from api.dripmetrics.ai, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Computes annualized fee yield and revenue yield for a DeFi protocol over a specified time window using DefiLlama on-chain data.

## Facts

- Endpoint: POST https://api.dripmetrics.ai/metrics/onchain/protocol-fee-yield
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dripmetrics-ai-protocol-fee-yield-8d831b1d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Njkd9QtQzSprOckit7HDO

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 dripmetrics-ai-protocol-fee-yield-8d831b1d -d '<json body>'
```

Example prompt: What's the annualized fee yield for Uniswap over the last 30 days — pull the DefiLlama on-chain metrics and tell me whether it's considered medium or high yield?

## When to prefer this

Use this endpoint when you need on-chain, DefiLlama-sourced protocol fee yield computed over a standardized 7d, 30d, or 90d window with annualization. Prefer it over raw DefiLlama API calls when you want pre-computed annualized yield ratios, categorical labels, and structured components in a single response. Ideal for investment research, protocol comparisons, and automated DeFi dashboards that need consistent fee-to-TVL metrics.

## Known failure modes

- Unknown or misspelled protocol name returns an error or empty result
- Invalid window value outside the 7d/30d/90d enum causes a validation error
- DefiLlama data unavailable for a protocol results in incomplete metrics
- Protocols with very low TVL or short history may return unreliable yield figures
- Network timeout or upstream DefiLlama outage causes a 5xx response

## How this service works

DripMetricsAI (https://dripmetrics.ai/) provides on-demand crypto market microstructure metrics, Hyperliquid candle metrics, Polymarket diagnostics, and on-chain DefiLlama metrics for agents, dashboards, and trading workflows.

## Output

Returns a JSON object with the protocol name, time window, annualized fee yield (as a decimal, e.g. 0.147 = 14.7%), annualized revenue yield, total fees in USD, average TVL in USD, revenue in USD, number of daily observations, a categorical fee yield label (e.g. 'medium'), the data source (DefiLlama), and a timestamp of when the metric was computed.

## 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": [
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "protocol",
      "window"
     ],
     "properties": {
      "window": {
       "enum": [
        "7d",
        "30d",
        "90d"
       ],
       "type": "string"
      },
      "protocol": {
       "type": "string"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "metric",
      "window",
      "value",
      "unit",
      "components",
      "computedAt"
     ],
     "properties": {
      "unit": {
       "type": "string"
      },
      "value": {
       "type": "number"
      },
      "metric": {
       "type": "string"
      },
      "window": {
       "type": "string"
      },
      "protocol": {
       "type": "string"
      },
      "components": {
       "type": "object"
      },
      "computedAt": {
       "type": "string",
       "format": "date-time"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "unit": "annualized_fee_yield",
  "value": 0.147,
  "metric": "protocol-fee-yield",
  "window": "30d",
  "protocol": "uniswap",
  "components": {
   "source": "DefiLlama",
   "feesUsd": 36200000,
   "avgTvlUsd": 2995918367,
   "revenueUsd": 4000000,
   "observations": 30,
   "feeYieldLabel": "medium",
   "annualizedFeeYield": 0.147,
   "annualizedRevenueYield": 0.016247
  },
  "computedAt": "2026-06-10T16:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dripmetrics-ai-protocol-fee-yield-8d831b1d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.dripmetrics.ai](https://www.zero.xyz/host/api.dripmetrics.ai/llms.txt)
