# DeFi Yield Comparator with Risk Screening

> DeFi Yield Comparator with Risk Screening is a paid API for AI agents from data.japanagent.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-11).

Compares DeFi pool yields across chains with built-in risk screening, flagging unsustainable APYs, reward-token dependence, low TVL, impermanent loss risk, and ML-predicted yield decline using DefiLlama data.

## Facts

- Endpoint: GET https://data.japanagent.dev/defi/yields?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-yield-comparator-with-risk-screening-8a219d79
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AUnyuLWEXbnAHKwGQ66LN

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 defi-yield-comparator-with-risk-screening-8a219d79
```

Example prompt: Find me the top 10 USDC DeFi pools on Arbitrum with at least $5 million TVL and a maximum risk level of low — I want to avoid trap yields and unsustainable APYs.

## When to prefer this

Use this endpoint when an agent needs to evaluate DeFi yield opportunities with safety screening rather than raw APY data. Prefer over raw DefiLlama API calls when risk filtering, trap detection, and ML-predicted decline signals are required. Ideal for agents managing yield allocation, portfolio rebalancing, or recommending DeFi strategies without chasing headline numbers.

## Known failure modes

- No pools match the specified filters (chain, asset, TVL, risk level) — returns empty result set
- Invalid chain or asset name returns an error or empty response
- max_risk enum value not in allowed set (low|medium|high) causes validation error
- limit exceeds 50 returns error or is capped
- DefiLlama upstream data unavailable causes service error

## How this service works

Compare DeFi pool yields across chains with built-in risk screening. Filters by chain, asset and minimum TVL, and flags trap yields — unsustainable APY, reward-token dependence, low TVL, impermanent-loss and ML-predicted decline — so agents don't chase headline numbers into losses. Data from DefiLlama.

## Output

A ranked list of DeFi pools matching the filters, each including pool name, chain, asset, current APY, TVL, and risk flags indicating whether the yield is a trap (e.g. unsustainable APY, reward-token dependence, low TVL, impermanent loss risk, ML-predicted decline).

## 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": {
      "asset": {
       "type": "string",
       "description": "Token symbol filter (e.g. USDC). Omit for all."
      },
      "chain": {
       "type": "string",
       "description": "Chain name (e.g. Base, Ethereum, Arbitrum). Omit for all."
      },
      "limit": {
       "type": "number",
       "description": "Max results, default 10, max 50"
      },
      "min_tvl": {
       "type": "number",
       "description": "Minimum pool TVL in USD, default 1000000"
      },
      "max_risk": {
       "type": "string",
       "description": "low | medium | high, default medium"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-yield-comparator-with-risk-screening-8a219d79/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.japanagent.dev](https://www.zero.xyz/host/data.japanagent.dev/llms.txt)
