# Scrapling x402 Data Store: Live DEX Volume by Protocol

> Scrapling x402 Data Store: Live DEX Volume by Protocol is a paid API for AI agents from scraplingdata.xyz, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-26).

Returns real-time 24h trading volume, LP fees, TVL, and pool stats for 1,200+ DEX pools across major protocols and 7 chains

## Facts

- Endpoint: GET https://scraplingdata.xyz/v1/datasets/dex-volume?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-26
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapling-x402-data-store-live-dex-volume-by-protocol-5a55ecbe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ScyGmp81C6YTC6sQywt9g

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-data-store-live-dex-volume-by-protocol-5a55ecbe
```

Example prompt: Pull the latest 24h DEX volume breakdown by protocol — I want to see Uniswap, Curve, Balancer, PancakeSwap, Aerodrome and the rest ranked by volume with their TVL and LP fees, all computed on-chain.

## When to prefer this

Choose this endpoint when you need real-time, on-chain-computed DEX volume data covering 1,200+ pools across 7 major chains without relying on off-chain aggregators. It is ideal for DeFi analytics, protocol comparison, LP fee analysis, and market share tracking across Uniswap v2/v3/v4, Curve, Balancer, PancakeSwap, Aerodrome, Velodrome and more. Prefer it over CoinGecko or DeFiLlama API wrappers when you want verifiable on-chain sourcing and pay-per-call pricing with no subscription required.

## Known failure modes

- Payment not sent or insufficient USDC — 402 response requiring x402 payment
- Invalid query parameter type (e.g. non-integer limit) — 400 validation error
- Keyword filter matches no protocols — empty records array with total_rows 0
- offset beyond total rows — empty records array
- On-chain data refresh lag — updated_at timestamp may be minutes behind real-time
- Rate limiting if many requests submitted rapidly — potential 429 response

## How this service works

Live decentralized exchange volume per protocol: estimated 24h volume in USD, 24h LP fees, TVL, share of tracked 24h DEX volume, pools tracked and chains, plus a total row. Computed on-chain from pool fee accumulators (Uniswap v2/v3/v4, Curve, Balancer, PancakeSwap, Aerodrome, Velodrome and more; 1,200+ pools) on Ethereum, Base, Arbitrum, Optimism, Polygon, BNB Chain and Avalanche (7d/30d fields are null).

## Output

A JSON (or CSV) array of records, one per DEX protocol, each containing: rank, protocol name, category, chains active on, pools tracked, 24h volume in USD, 24h LP fees in USD, TVL in USD, share of tracked 24h DEX volume (%), and a data source label. Includes a total row, metadata fields (dataset name, title, updated_at timestamp, total_rows, returned_rows), and supports pagination via offset/next_offset. 7d and 30d volume fields are present but null.

## 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": {
      "q": {
       "type": "string",
       "description": "Optional keyword; keeps rows where any field contains it"
      },
      "limit": {
       "type": "integer",
       "maximum": 1000,
       "minimum": 1,
       "description": "Rows to return, default 200"
      },
      "format": {
       "enum": [
        "json",
        "csv"
       ],
       "type": "string"
      },
      "offset": {
       "type": "integer",
       "minimum": 0,
       "description": "Rows to skip, for paging"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "example": {
      "title": "Live DEX trading volume by protocol (24h, on-chain)",
      "dataset": "dex-volume",
      "records": [
       {
        "rank": 1,
        "chains": [
         "Arbitrum",
         "Base",
         "Ethereum",
         "Optimism",
         "Polygon"
        ],
        "source": "onchain",
        "tvl_usd": 920388844,
        "category": "Dexs",
        "protocol": "uniswap-v3",
        "fees_24h_usd": 424327,
        "change_1d_pct": null,
        "change_1m_pct": null,
        "change_7d_pct": null,
        "pools_tracked": 193,
        "share_24h_pct": 74,
        "volume_7d_usd": null,
        "volume_24h_usd": 366042916,
        "volume_30d_usd": null
       }
      ],
      "total_rows": 1,
      "updated_at": "2026-10-20T19:20:18Z",
      "returned_rows": 1
     },
     "required": [
      "dataset",
      "records"
     ],
     "properties": {
      "title": {
       "type": "string"
      },
      "offset": {
       "type": "integer"
      },
      "dataset": {
       "type": "string"
      },
      "records": {
       "type": "array",
       "items": {
        "type": "object"
       }
      },
      "total_rows": {
       "ty
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapling-x402-data-store-live-dex-volume-by-protocol-5a55ecbe/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)
