# Scrapling x402 — Live US Stocks & ETFs Dataset

> Scrapling x402 — Live US Stocks & ETFs Dataset is a paid API for AI agents from scraplingdata.xyz, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-22).

Returns a real-time snapshot of US stock and ETF market data including price, volume, 52-week range, and daily/weekly performance metrics for ~93 instruments.

## Facts

- Endpoint: GET https://scraplingdata.xyz/v1/datasets/live_us_stocks_etfs/buy?utm_source=zero.xyz
- Price: $0.05/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-us-stocks-etfs-dataset-77551108
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9S0xZB95mVBoD3ND5niC6

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-us-stocks-etfs-dataset-77551108
```

Example prompt: Pull the latest live US stocks and ETFs dataset — I need current prices, daily percent changes, volume, and 52-week ranges for all available instruments, returned as JSON.

## When to prefer this

Choose this endpoint when you need a broad real-time snapshot of ~93 US stocks and ETFs in a single call, especially inside an AI agent workflow that can handle x402 micropayment authentication. It is well-suited for portfolio valuation, momentum screening, or feeding a trading agent with current market data. Prefer it over scraping individual brokerage pages or heavier financial data APIs when low per-call cost ($0.05 USDC) and machine-readable structured output (JSON/CSV/JSONL) are priorities.

## Known failure modes

- Payment not included or insufficient (402 Payment Required — x402 payment header missing or USDC amount too low)
- Invalid format query parameter (validation error if format value is not one of json/jsonl/csv/markdown)
- Market data temporarily unavailable or stale during off-hours
- Rate limiting or gateway timeout if upstream data source is delayed
- Incorrect HTTP method (only GET/HEAD/DELETE accepted)

## 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 object containing a dataset_id ('live_us_stocks_etfs'), a record_count (~93), and an array of records — each with symbol, name, type (stock or ETF), exchange, current price in USD, day low/high, 52-week low/high, trading volume, market timestamp, 1-day percent change, and 5-day percent change.

## 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": [
   {
    "name": "SPDR Gold Shares",
    "type": "ETF",
    "symbol": "GLD",
    "volume": 5917199,
    "day_low": 377.26,
    "day_high": 380.88,
    "exchange": "NYSEArca",
    "price_usd": 377.65,
    "week52_low": 360.12,
    "market_time": "2026-10-20T20:00:00+00:00",
    "week52_high": 509.7,
    "change_1d_pct": -0.537,
    "change_5d_pct": 0.442
   }
  ],
  "dataset_id": "live_us_stocks_etfs",
  "record_count": 93
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapling-x402-live-us-stocks-etfs-dataset-77551108/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)
