# OnlyBots Web Reader (JavaScript-rendered)

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

Fetches and renders a web page using a JavaScript-capable browser, returning its content as clean Markdown with title and token count.

## Facts

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

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-javascript-rendered-b9afb328
```

Example prompt: Fetch and read the full content of https://en.wikipedia.org/wiki/HTTP_402 and give me the text as markdown so I can summarize it.

## When to prefer this

Choose this endpoint when you need to read the content of a web page that relies on JavaScript to render its content (single-page apps, dynamic sites), and when you need the result as clean Markdown suitable for LLM consumption. It is pay-per-call via x402/USDC with no account needed, making it ideal for autonomous agents needing lightweight, on-demand web access without API key management.

## Known failure modes

- URL is unreachable or returns an HTTP error — likely returns an error status with a message
- Page requires authentication or is behind a login wall — content may be empty or a login page
- JavaScript rendering times out for very slow or complex pages — partial or empty markdown returned
- Invalid or missing 'url' query parameter — schema validation error
- Payment not completed via x402 — 402 Payment Required response before content is served

## How this service works

OnlyBots paid endpoints: web reader, PDF reader, screenshots. x402, USDC on Base, no accounts.

## Output

A JSON object containing the source URL, the page title, the full page content rendered as Markdown, and an estimated token count for the content. Example: {url, title, markdown, token_estimate}.

## 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-javascript-rendered-b9afb328/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)
