# x402-tools-hub URL-to-Text Scraper

> x402-tools-hub URL-to-Text Scraper is a paid API for AI agents from tools-hub-v4-xi.vercel.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-13).

Fetches a given URL and returns its textual content, enabling agents to read and process web pages

## Facts

- Endpoint: POST https://tools-hub-v4-xi.vercel.app/api/url-to-text?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-tools-hub-url-to-text-scraper-39ea5a46
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SwELbwsmHK6QbZN2KlhUa

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 x402-tools-hub-url-to-text-scraper-39ea5a46 -d '<json body>'
```

Example prompt: Can you scrape the text content from this URL for me: https://example.com/some-article — I need to read what's on the page.

## When to prefer this

Use this endpoint when an agent needs to read the raw text content of a specific URL without needing a full browser rendering pipeline. Best for articles, documentation pages, or any publicly accessible text-based web page. Prefer this over general web search APIs when you already have the target URL and just need its content.

## Known failure modes

- URL is unreachable or returns a non-200 status — empty or error data returned
- URL points to a non-text resource (e.g. PDF, image) — content may be missing or garbled
- Paywalled or JavaScript-heavy page — content may be incomplete or empty
- Invalid URL format — request fails with a validation error
- Payment not attached or insufficient — 402 Payment Required response

## How this service works

Agent Toolkit + AI Gateway + Alpha Scraper — 13 paid endpoints for AI agents.

## Output

Returns a data object containing the extracted textual content of the fetched web page, suitable for further processing, summarization, or analysis by the agent.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "URL to scrape"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-tools-hub-url-to-text-scraper-39ea5a46/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tools-hub-v4-xi.vercel.app](https://www.zero.xyz/host/tools-hub-v4-xi.vercel.app/llms.txt)
