# Scrapling x402 DeFi Yield Lookup

> Scrapling x402 DeFi Yield Lookup is a paid API for AI agents from scraplingdata.xyz, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-22).

Returns current DeFi yield (APY) data for tokens on specified chains, including risk-adjusted APY and project source

## Facts

- Endpoint: GET https://scraplingdata.xyz/v1/lookup/yields?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapling-x402-defi-yield-lookup-19843837
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_36BFtKg4Cw9Fs1oRE8dc7

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 scrapling-x402-defi-yield-lookup-19843837
```

Example prompt: What's the current APY for USDC on Base across DeFi protocols, and what's the risk-adjusted yield?

## When to prefer this

Use this endpoint when you need current DeFi yield (APY) data for a specific token on a specific blockchain, especially when risk-adjusted returns are important. Prefer this over general web search when you need structured, machine-readable yield data with risk scores attached.

## Known failure modes

- Unsupported chain or token returns empty results array
- Missing required query parameters returns validation error
- Payment not settled results in HTTP 402 response requiring x402 payment
- Rate limiting or service downtime returns 5xx error

## How this service works

Best USDC (or any token) yield on Base or any chain: top 10 pools ranked by risk-adjusted APY, each with APY, TVL and a 0-100 risk score. Example: chain=Base&token=USDC, token=ETH, chain=Arbitrum. Refreshed about every 30 min

## Output

Returns a list of DeFi yield results for the queried chain and token, each containing: chain name, token symbol, APY percentage, project name (e.g. aave-v3), risk score (0-100), and risk-adjusted APY percentage.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "chain": {
       "type": "string"
      },
      "token": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "results": [
   {
    "chain": "Base",
    "symbol": "USDC",
    "apy_pct": 5.1,
    "project": "aave-v3",
    "risk_score_0_100": 10,
    "risk_adjusted_apy": 4.6
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapling-x402-defi-yield-lookup-19843837/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scraplingdata.xyz](https://www.zero.xyz/host/scraplingdata.xyz/llms.txt)
