# Scrapling x402 Web Scraper

> Scrapling x402 Web Scraper is a paid API for AI agents from scraplingdata.xyz, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-22).

Fetches and extracts structured content from any URL using tiered scraping (cached, static, or stealth browser), paid per-call via x402 micropayments

## Facts

- Endpoint: GET https://scraplingdata.xyz/v1/scrape?utm_source=zero.xyz
- Price: $0.005/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-web-scraper-05b826ff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zZK5iepKKWbxHLSRRgxa7

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-web-scraper-05b826ff
```

Example prompt: Scrape https://news.ycombinator.com for me using the static_scrape tier and give me the page content as markdown.

## When to prefer this

Choose this endpoint when you need to extract web content programmatically with per-call micropayment billing and no subscription setup. It is especially well-suited for AI agents operating autonomously that need to retrieve live web data on demand, with tiered options ranging from fast cached results to stealth browser rendering for JavaScript-heavy or bot-protected pages. Prefer it over full crawler services when you need a single URL fetched and returned as clean markdown or structured data.

## Known failure modes

- Target URL is unreachable or returns non-200 status — reflected in the status field
- Bot detection blocks the scrape even on stealth tier — may return empty or partial content
- CSS selector matches nothing — data fields return empty
- Payment failure via x402 — request is rejected before scraping begins
- Invalid URL format in queryParams.url — schema validation error
- Rate limiting or timeout on slow target sites — incomplete content returned

## How this service works

Current content of any web page (e.g. url=https://example.com) as Markdown, JSON-LD, tables and links; live fetch, $0.001-$0.025 by tier

## Output

Returns a JSON object containing the target URL, extracted page data (title, markdown text, tables, JSON-LD), HTTP status code, the scraping tier actually used, a SHA-256 provenance hash of the fetched page, and a quality score (0-100) indicating content richness.

## 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": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string"
      },
      "tier": {
       "enum": [
        "auto",
        "cached_intel",
        "static_scrape",
        "stealth_browser"
       ],
       "type": "string"
      },
      "css_selector": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com",
  "data": {
   "title": "Example Domain",
   "tables": [],
   "json_ld": [],
   "markdown": "# Example Domain ..."
  },
  "status": 200,
  "tier_used": "static_scrape",
  "provenance": {
   "sha256": "<sha256 of fetched page>"
  },
  "quality_score": 90
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapling-x402-web-scraper-05b826ff/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)
