# Scrapling x402 Live DeFi Protocols TVL Dataset

> Scrapling x402 Live DeFi Protocols TVL 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 dataset of up to 500 live DeFi protocol records including TVL, category, chain, and 24h/7d price change metrics, paid via x402 micropayment.

## Facts

- Endpoint: GET https://scraplingdata.xyz/v1/datasets/live_defi_protocols_tvl/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-defi-protocols-tvl-dataset-0c2f0c20
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_h_-W4oIs8ZcQdgiD-qhgx

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-defi-protocols-tvl-dataset-0c2f0c20
```

Example prompt: Pull the latest live DeFi protocols TVL dataset — I want to see the top 500 protocols ranked by total value locked, including their 1-day and 7-day changes, categories, and chains, returned as JSON.

## When to prefer this

Choose this endpoint when you need a broad, ranked snapshot of live DeFi protocol TVL across multiple chains and categories (up to 500 records) in a single paid call. It is well-suited for agents that need structured, machine-readable DeFi market data quickly without scraping multiple sources. Prefer alternatives if you need historical TVL time series, a single protocol's data, or free data without micropayment friction.

## Known failure modes

- Payment not settled — x402 payment failure results in no data returned
- Invalid format enum value causes request rejection
- Network timeout on scraplingdata.xyz returns no response
- Stale or unavailable upstream DeFi data may result in outdated TVL figures
- Rate limiting or access denial if payment wallet is flagged

## How this service works

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

## Output

A JSON (or jsonl/csv/markdown) payload containing up to 500 DeFi protocol records, each with fields: url, name, rank, slug, chains, symbol, tvl_usd, category, main_chain, change_1d_pct, change_7d_pct, market_cap_usd. Also includes dataset_id and record_count metadata.

## 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": [
   {
    "url": "https://lido.fi/",
    "name": "Lido",
    "rank": 1,
    "slug": "lido",
    "chains": "Ethereum, Solana, Terra, Moonriver, Moonbeam",
    "symbol": "LDO",
    "tvl_usd": 23846310518,
    "category": "Liquid Staking",
    "main_chain": "Multi-Chain",
    "change_1d_pct": 3.113,
    "change_7d_pct": -1.76,
    "market_cap_usd": 342664122
   }
  ],
  "dataset_id": "live_defi_protocols_tvl",
  "record_count": 500
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapling-x402-live-defi-protocols-tvl-dataset-0c2f0c20/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)
