# Scrapling x402 — E-commerce Price & Stock Dataset

> Scrapling x402 — E-commerce Price & Stock Dataset is a paid API for AI agents from scraplingdata.xyz, paid per call via x402, $0.05/call, status unknown (last checked 2026-12-02).

Returns current price and in-stock status for products across ~500 Shopify brands, filterable by brand, domain, or category.

## Facts

- Endpoint: GET https://scraplingdata.xyz/v1/datasets/ds_ecommerce_price_stock/buy?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapling-x402-e-commerce-price-stock-dataset-164e0610
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Pxu3qzjOzFROM_u5HR44S

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-e-commerce-price-stock-dataset-164e0610
```

Example prompt: Can you pull the current prices and stock status for apparel products from kith.com using the Scrapling e-commerce dataset?

## When to prefer this

Use this endpoint when you need structured, ready-to-query product price and stock data across a broad set of Shopify brands without having to scrape individual storefronts yourself. It is preferable over a raw scraping endpoint when you want pre-normalized records with SKUs, ratings, and categories, and when you need to filter by brand, domain, or category in a single call.

## Known failure modes

- No records returned if the brand/domain/category filter matches nothing in the dataset
- Invalid category value returns empty or error response
- Payment failure (HTTP 402) if x402 payment header is missing or insufficient
- Rate limiting if too many calls are made in a short period
- Stale data if the daily crawl has not yet refreshed for a given brand

## 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, record count, and an array of product records each with SKU, product name, category, price in USD, in-stock boolean, and rating.

## 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": {
      "brand": {
       "type": "string",
       "description": "Brand / vendor name (exact, case-insensitive)"
      },
      "domain": {
       "type": "string",
       "description": "Store domain, e.g. kith.com"
      },
      "category": {
       "type": "string",
       "description": "apparel, beauty, electronics, supplements, home, outdoor, jewelry, pets, toys"
      }
     }
    }
   },
   "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": [
   {
    "sku": "GPU-RTX-5090-32GB",
    "rating": 4.9,
    "category": "Computer Hardware",
    "in_stock": true,
    "price_usd": 2199,
    "product_name": "Flagship 32GB GDDR7 AI & Workstation GPU"
   }
  ],
  "dataset_id": "ds_ecommerce_price_stock",
  "record_count": 5
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapling-x402-e-commerce-price-stock-dataset-164e0610/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)
