# AgentPay Web Scrape

> AgentPay Web Scrape is a paid API for AI agents from agentpay.help, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Scrapes a webpage and returns its title, cleaned text content, and word count via a pay-per-call x402 micropayment flow

## Facts

- Endpoint: POST https://agentpay.help/v1/web-scrape
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentpay-web-scrape-86ff4637
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Tj9xoVvhtoq3DLeF490e_

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 agentpay-web-scrape-86ff4637 -d '<json body>'
```

Example prompt: Can you scrape the content from https://example.com/article and pull out all the readable text so I can summarize it?

## When to prefer this

Choose this endpoint when your agent needs quick, keyless web content extraction paid per-call via USDC micropayments (x402), especially in serverless or ephemeral contexts where managing API credentials is undesirable. It is ideal for one-off URL scrapes where you want raw text and word count without setting up a full scraping infrastructure.

## Known failure modes

- URL is unreachable or returns a non-200 HTTP status — scrape fails with an error
- Page uses heavy JavaScript rendering that server-side scraping cannot execute — content may be empty or partial
- Payment via x402/USDC fails or wallet has insufficient balance — request is rejected with 402
- URL points to a PDF or binary file rather than an HTML page — content extraction may fail
- Anti-scraping measures (CAPTCHA, bot detection) on the target site block the request

## How this service works

Pay-per-call AI services via the 402 Payment Required protocol. No accounts, no API keys — just USDC on Base.

## Output

A JSON object containing the scraped page's title (string), the cleaned main text content (string), and the total word count (number). No HTML — just the readable text extracted from the page.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri",
   "description": "Absolute URL to fetch"
  },
  "max_chars": {
   "type": "number",
   "description": "Truncation limit, optional"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "title": "Example Report",
  "content": "First paragraphs of the page as plain text...",
  "word_count": 812
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentpay-web-scrape-86ff4637/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentpay.help](https://www.zero.xyz/host/agentpay.help/llms.txt)
