# OnlyBots Web Reader

> OnlyBots Web Reader is a paid API for AI agents from x402.onlybots.shop, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Fetches and converts a public web page to clean Markdown text, returning the title and token estimate, via x402 micropayment.

## Facts

- Endpoint: GET https://x402.onlybots.shop/read?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onlybots-web-reader-d1ebbf90
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XaFYZXtdOyU7imVig_x8U

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 onlybots-web-reader-d1ebbf90
```

Example prompt: Can you read the content of https://en.wikipedia.org/wiki/HTTP_402 and give me a summary? Just fetch the full page text in markdown.

## When to prefer this

Choose this endpoint when an AI agent needs to quickly fetch and read a public web page as clean Markdown without setting up a scraping pipeline or managing API accounts. It is especially suited for agent workflows that need to pass web content directly into an LLM, and where paying $0.002 USDC per call via x402 is preferable to managing API keys or subscriptions. Prefer alternatives (like a full crawler) when you need to recursively crawl multiple pages or handle heavily JavaScript-rendered sites.

## Known failure modes

- URL is unreachable or returns a non-200 status — endpoint may error or return empty content
- Paywalled or login-gated pages return incomplete or no readable text
- Dynamically rendered JavaScript-heavy pages may yield minimal content if server-side HTML is sparse
- Payment failure (insufficient USDC balance) results in 402 rejection before content is returned
- Malformed or missing 'url' query parameter causes a validation error

## How this service works

Token-efficient web reader: URL in, clean deduplicated article markdown out, with token count header. Boilerplate, nav, ads stripped — typically 10-30x fewer tokens than raw HTML. For AI agents that pay per token.

## Output

Returns a JSON object with the original URL, the page title, the full page body as clean Markdown text, and an estimated token count for the content — ready to pass directly into an LLM context window.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "URL of the web page to read"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://en.wikipedia.org/wiki/HTTP_402",
  "title": "HTTP 402",
  "markdown": "# HTTP 402\n\nHTTP 402 Payment Required is...",
  "token_estimate": 812
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onlybots-web-reader-d1ebbf90/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.onlybots.shop](https://www.zero.xyz/host/x402.onlybots.shop/llms.txt)
