# x402 DeFi Yield Intelligence

> x402 DeFi Yield Intelligence is a paid API for AI agents from cryptodefidataintel-production.up.railway.app, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-15).

Returns cross-chain DeFi yield opportunities for stable assets, ranked by TVL with AI-generated signal and insight, paid per-call via x402.

## Facts

- Endpoint: GET https://cryptodefidataintel-production.up.railway.app/api/yield-intel
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-defi-yield-intelligence-0f2d5e1c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0knROvLK9wwMHJtGTrdab

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 x402-defi-yield-intelligence-0f2d5e1c
```

Example prompt: Find me the top 10 stablecoin yield opportunities for USDC on Base with at least $2M TVL — give me the signal, confidence score, and a plain-English summary of what looks best right now.

## When to prefer this

Use this endpoint when an agent needs structured, interpreted DeFi yield data across multiple chains for stable assets, especially when a confidence-scored signal and human-readable insight summary are required alongside raw data. Prefer over generic DeFi scrapers when cross-chain coverage, TVL filtering, and AI-generated interpretation are needed in a single pay-per-call call.

## Known failure modes

- No results returned if asset/chain combination has no matching pools above minTvl
- Payment not processed via x402 returns 402 Payment Required
- Invalid chain name returns empty data or error
- limit exceeding 25 is clamped or rejected
- Low confidence score when upstream data sources are stale or unavailable

## How this service works

Crypto-agent toolkit: cross-chain DeFi intelligence + execution helpers + retrieval for agents. 16 endpoints: funding, open interest, long/short, token-safety, yield, prices, gas, tx-simulate, approval-check, bridge-quote, governance-search, lending, liquidations, protocol-search, swap-quote, token-resolve. Pay-per-call via x402.

## Output

An array of yield opportunity rows (pool, APY, TVL, chain, protocol), a machine-readable signal label (e.g. 'high-yield-stable'), a human-readable insight summarizing the findings, a confidence score between 0 and 1, a list of upstream data sources, a timestamp, response latency in ms, and the interpreter model used.

## 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",
     "required": [],
     "properties": {
      "asset": {
       "type": "string"
      },
      "chain": {
       "type": "string"
      },
      "limit": {
       "type": "integer"
      },
      "minTvl": {
       "type": "number"
      },
      "stableOnly": {
       "type": "boolean"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "apy": 33.28,
    "chain": "Base",
    "symbol": "USDC",
    "tvlUsd": 1850793,
    "project": "harvest-finance",
    "riskScore": 0.93
   }
  ],
  "signal": "stable_yield_opportunity",
  "insight": "Best risk-adjusted stablecoin yield on Base.",
  "sources": [
   "defillama"
  ],
  "confidence": 0.8
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-defi-yield-intelligence-0f2d5e1c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cryptodefidataintel-production.up.railway.app](https://www.zero.xyz/host/cryptodefidataintel-production.up.railway.app/llms.txt)
