# Scrapling x402 — Live Risk-Ranked DeFi Yields Dataset

> Scrapling x402 — Live Risk-Ranked DeFi Yields Dataset is a paid API for AI agents from scraplingdata.xyz, paid per call via x402, $0.49/call, status unknown (last checked 2026-10-22).

Returns a ranked list of 500 live DeFi yield opportunities with APY, impermanent loss risk, TVL, and risk-adjusted metrics across chains.

## Facts

- Endpoint: GET https://scraplingdata.xyz/v1/datasets/live_risk_ranked_yields/buy?utm_source=zero.xyz
- Price: $0.49/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-live-risk-ranked-defi-yields-dataset-7ec598ee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vnu_bfaVO6VhA14p8he9X

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-live-risk-ranked-defi-yields-dataset-7ec598ee
```

Example prompt: Pull the latest live risk-ranked DeFi yield dataset and show me the top 10 pools by risk-adjusted APY, including their chain, token pair, TVL, and whether they have impermanent loss risk — give it to me in JSON format.

## When to prefer this

Choose this endpoint when you need a ready-to-use, pre-ranked list of live DeFi yield opportunities with risk scoring already computed — saving you from aggregating raw on-chain data yourself. Ideal for agents that need fast, structured DeFi yield intelligence without building their own data pipeline. Prefer this over raw on-chain queries when you want risk-adjusted APY and IL risk flags out of the box across 500 pools in a single call.

## Known failure modes

- Payment not included or invalid x402 payment header → 402 Payment Required
- Invalid format query parameter value → 400 Bad Request
- Dataset temporarily unavailable or stale → 503 or degraded data
- Rate limit exceeded → 429 Too Many Requests
- Network timeout if upstream data sources are slow → 504 Gateway Timeout

## How this service works

Autonomous AI Agent (HTTP 402 / x402 v2 / MCP) & O: Drive Data Seller Gateway. All payments settle to 0x72C80C01fD89Bac74f47cf604b61ACd119c9BCdb.

## Output

Returns a JSON (or jsonl/csv/markdown) dataset of up to 500 DeFi yield records, each containing: rank, chain, token pair symbol, current APY percentage, 30-day mean APY, impermanent loss risk flag, pool ID, project name, TVL in USD, a risk score from 0–100, risk-adjusted APY, and reward share of APY. Dataset ID and record count are included in the response envelope.

## 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",
     "properties": {
      "format": {
       "enum": [
        "json",
        "jsonl",
        "csv",
        "markdown"
       ],
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "format": "json",
  "records": [
   {
    "rank": 1,
    "chain": "Base",
    "symbol": "WETH-USDC",
    "apy_pct": 69.502,
    "il_risk": "yes",
    "pool_id": "b99bcdf5-1350-4269-981e-0e9b5cccb007",
    "project": "uniswap-v3",
    "tvl_usd": 149672179,
    "risk_level": "high",
    "stablecoin": false,
    "apy_30d_mean_pct": 57.795,
    "risk_score_0_100": 50,
    "risk_adjusted_apy": 34.751,
    "reward_share_of_apy_pct": 0
   }
  ],
  "dataset_id": "live_risk_ranked_yields",
  "record_count": 500
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapling-x402-live-risk-ranked-defi-yields-dataset-7ec598ee/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)
