# AgentDiet Yield Scanner

> AgentDiet Yield Scanner is a paid API for AI agents from rag-diet.agentdiet.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Scans and returns DeFi yield data for a specified asset, with compression ratio proof, via a pay-per-call x402 API settling in USDC on Base

## Facts

- Endpoint: GET https://rag-diet.agentdiet.dev/v1/yield-scanner?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-yield-scanner-dfde24eb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_m-4asTULND0NSSqEHaW-2

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 agentdiet-yield-scanner-dfde24eb
```

Example prompt: Can you scan current DeFi yields for USDC using AgentDiet's yield scanner and show me the ROI proof and compression ratio it returns?

## When to prefer this

Choose this endpoint when you need on-chain DeFi yield data for a specific asset with a built-in compression/ROI proof, especially in agentic pipelines that pay per-call via x402 on Base in USDC. Prefer this over generic DeFi aggregators when you need machine-verifiable compression ratio metadata alongside yield results.

## Known failure modes

- Missing or invalid 'asset' query parameter returns empty or error data
- Payment not received via x402 results in 402 Payment Required response
- Unsupported asset identifier returns empty data object
- Rate limiting or network issues on Base may delay USDC settlement and block access

## How this service works

Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.

## Output

A JSON response containing a status field ('ok'), a data object with yield information for the requested asset, and an roi_proof object that includes a compression_ratio_pct value (e.g. 91.4%) demonstrating how efficiently the intelligence was distilled.

## 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",
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "asset": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "ok",
  "roi_proof": {
   "compression_ratio_pct": 91.4
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-yield-scanner-dfde24eb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rag-diet.agentdiet.dev](https://www.zero.xyz/host/rag-diet.agentdiet.dev/llms.txt)
