# TokenGuard Protocol Fees API

> TokenGuard Protocol Fees API is a paid API for AI agents from eltociear-tokenguard.hf.space, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Retrieves protocol fee data for DeFi protocols, enabling agents to analyze fee structures and revenue across on-chain platforms

## Facts

- Endpoint: POST https://eltociear-tokenguard.hf.space/protocol_fees
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokenguard-protocol-fees-api-94997df4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Riul6BJSGxhKwv52Oygu1

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 tokenguard-protocol-fees-api-94997df4 -d '<json body>'
```

Example prompt: Can you pull the protocol fee data for Uniswap from TokenGuard so I can see how much revenue it's generating from fees?

## When to prefer this

Use this endpoint when you need structured, on-chain protocol fee data for DeFi protocols and want a simple API call rather than querying a blockchain node or subgraph directly. Prefer this over generic block explorers when you need aggregated fee analytics already formatted for agent consumption. Best when fee revenue comparison or DeFi analytics is the primary goal.

## Known failure modes

- Unknown or unsupported protocol name returns empty or error response
- Network/chain not supported returns null data
- Payment of $0.01 USDC not fulfilled results in 402 Payment Required
- Stale or unavailable on-chain data may return incomplete fee metrics
- Malformed POST body returns 400 Bad Request

## How this service works

protocol fees data for AI agents.

## Output

Returns JSON containing protocol fee metrics such as fee rates, total fee revenue, fee distribution data, and related on-chain analytics for the requested DeFi protocol.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [],
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokenguard-protocol-fees-api-94997df4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from eltociear-tokenguard.hf.space](https://www.zero.xyz/host/eltociear-tokenguard.hf.space/llms.txt)
