# Webpage to Text Scraper

> Webpage to Text Scraper is a paid API for AI agents from www.x402financialdata.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-11).

Fetches any public webpage and returns clean readable text (no HTML/scripts/styles), plus title and meta description, ready for LLM ingestion

## Facts

- Endpoint: GET https://www.x402financialdata.com/scrape?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/webpage-to-text-scraper-e9f8fb2f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BeaychYLCHVnXp1BkOYxv

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 webpage-to-text-scraper-e9f8fb2f
```

Example prompt: Grab the readable text from https://www.bbc.com/news/technology-68234567 and give me the article content — keep it under 10,000 characters.

## When to prefer this

Choose this endpoint when you need clean, LLM-ready plain text from a public webpage quickly and cheaply ($0.025/call) without needing JavaScript rendering. Ideal for static pages, news articles, documentation, and blog posts. If the target page relies heavily on client-side JS to render its content, a headless-browser-based scraper would be more appropriate.

## Known failure modes

- 404 returned if the target page does not exist or URL is invalid
- 502 returned if the page blocks scrapers or returns unusable content
- 504 returned if the target page times out during fetch
- No JavaScript rendering — pages requiring JS execution will return incomplete or empty content
- max_chars must be between 1,000 and 200,000 or request may be rejected

## How this service works

Fetch any public webpage and get just its readable text (no HTML, scripts or styles) plus title and meta description, ready for an LLM context window. Optional max_chars cap. Returns 404 if the page is missing, 502 if blocked or unusable, 504 on timeout -- failed calls are not charged. No JavaScript rendering. $0.025/call.

## Output

Returns the clean readable text body of the requested webpage (stripped of HTML tags, scripts, and styles), along with the page title and meta description. Text can be capped via max_chars (1,000–200,000, default 50,000). Failed calls (404 page missing, 502 blocked/unusable, 504 timeout) are not charged.

## 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"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Public http(s) URL of the page to scrape, e.g. https://example.com"
      },
      "max_chars": {
       "type": "integer",
       "description": "Max characters of text to return (1,000-200,000), default 50,000."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/webpage-to-text-scraper-e9f8fb2f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.x402financialdata.com](https://www.zero.xyz/host/www.x402financialdata.com/llms.txt)
