# x402 Agent Toolkit – URL to Text

> x402 Agent Toolkit – URL to Text is a paid API for AI agents from x402-agent-toolkit.vercel.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-11).

Scrapes a given URL and returns the full page content as plain text, along with character count

## Facts

- Endpoint: POST https://x402-agent-toolkit.vercel.app/api/url-to-text?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-agent-toolkit-url-to-text-4daff821
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5l9K954fVumQSzkVeAe-r

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-agent-toolkit-url-to-text-4daff821 -d '<json body>'
```

Example prompt: Can you fetch the text content from https://example.com/article and tell me what it says?

## When to prefer this

Use this endpoint when an AI agent needs to read the content of a public webpage as plain text without any LLM-based summarization or interpretation. Ideal for agents that need raw page content for downstream processing, when you want deterministic scraping billed per-call via USDC micropayment on Base or Solana.

## Known failure modes

- URL is unreachable or returns a non-200 status — request may fail or return empty text
- URL points to a binary file (PDF, image) rather than an HTML page — text extraction may be incomplete or empty
- URL is paywalled or behind authentication — only publicly accessible content will be returned
- Payment fails or is rejected — endpoint returns 402 before processing
- Very large pages may return truncated or partial text

## How this service works

Paid utility endpoints for AI agents. Pay with USDC on Base or Solana. Pure computation, no LLM dependency.

## Output

Returns a JSON object with the original URL, the full plain text extracted from the page, and the total character count of the extracted text.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string"
  },
  "text": {
   "type": "string"
  },
  "chars": {
   "type": "integer"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-agent-toolkit-url-to-text-4daff821/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent-toolkit.vercel.app](https://www.zero.xyz/host/x402-agent-toolkit.vercel.app/llms.txt)
