# JavaScript-Rendered HTML Fetcher

> JavaScript-Rendered HTML Fetcher is a paid API for AI agents from api.x-402.online, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Fetches a URL and returns the full HTML after JavaScript execution (server-side headless browser rendering)

## Facts

- Endpoint: GET https://api.x-402.online/v1/render
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/javascript-rendered-html-fetcher-775a38c1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_31opO3KDlRAxTtEtRi3e6

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 javascript-rendered-html-fetcher-775a38c1
```

Example prompt: Can you fetch the fully rendered HTML of https://example.com/dashboard — including all the content that loads via JavaScript — so I can parse the data that only appears after scripts run?

## When to prefer this

Use this endpoint when you need the final rendered HTML of a page that uses JavaScript frameworks (React, Vue, Angular, etc.) and a simple HTTP GET would only return the empty shell. Prefer this over raw HTTP fetch when the target content is dynamically injected by client-side scripts.

## Known failure modes

- URL is unreachable or returns a non-2xx HTTP status — likely returns an error response
- Page JavaScript throws fatal errors preventing full render — may return partial or empty HTML
- Timeout if the page takes too long to load or scripts are slow to execute
- Invalid or malformed URL input causes a 400-class error
- Page requires authentication or cookies not provided — returns login-gated HTML

## How this service works

URL -> full HTML after JavaScript execution. Input: {url}

## Output

The full HTML source of the requested page after all JavaScript has been executed, reflecting the final DOM state as seen by a real browser.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/javascript-rendered-html-fetcher-775a38c1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x-402.online](https://www.zero.xyz/host/api.x-402.online/llms.txt)
