# Scrape Agent — Pay-Per-Use Web Scraping API

> Scrape Agent — Pay-Per-Use Web Scraping API is a paid API for AI agents from scrapeagent.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-10).

Extracts clean text, links, or HTML from any URL via a pay-per-use scraping API for $0.01 USDC per call on Base.

## Facts

- Endpoint: POST https://scrapeagent.xyz/api/scrape/x402?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrape-agent-pay-per-use-web-scraping-api-73f3f054
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rqaMdu6sdOAU_Z25q-0KM

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 scrape-agent-pay-per-use-web-scraping-api-73f3f054 -d '<json body>'
```

Example prompt: Can you scrape the text content from https://example.com/article and give me the clean readable text from that page?

## When to prefer this

Choose this endpoint when you need to fetch and extract readable content from a single arbitrary URL, especially in agent workflows where paying $0.01 USDC per call is acceptable and you want clean text, links, or raw HTML without managing a headless browser. Prefer this over browser automation tools when simplicity and cost-per-call pricing are priorities.

## Known failure modes

- URL is unreachable or returns a non-2xx HTTP status — status field will reflect the error
- Timeout exceeded — request times out if the target page is too slow and timeout parameter is too low
- Payment failure — x402 payment not accepted or insufficient USDC balance
- Invalid URL format — missing or malformed url parameter causes a validation error
- Page blocks scraping — some pages with bot protection may return empty or partial content

## How this service works

Pay-per-use web scraping API built on x402. Extract clean text, links or HTML from any URL for $0.01 USDC on Base.

## Output

Returns an object with the scraped URL, page title, extraction status, extracted content (text/HTML/links), elapsed processing time in milliseconds, and word count of the extracted content.

## Example request

```json
{
 "url": "https://example.com",
 "extract": "text",
 "timeout": 5000
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url"
 ],
 "properties": {
  "url": {
   "type": "string",
   "description": "The URL to scrape"
  },
  "extract": {
   "enum": [
    "text",
    "html",
    "links",
    "meta",
    "full"
   ],
   "type": "string",
   "description": "What to extract from the page"
  },
  "timeout": {
   "type": "number",
   "description": "Timeout in milliseconds"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url",
  "status"
 ],
 "properties": {
  "url": {
   "type": "string"
  },
  "title": {
   "type": "string"
  },
  "status": {
   "type": "string"
  },
  "content": {
   "type": "string"
  },
  "elapsed": {
   "type": "number"
  },
  "wordCount": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrape-agent-pay-per-use-web-scraping-api-73f3f054/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scrapeagent.xyz](https://www.zero.xyz/host/scrapeagent.xyz/llms.txt)
