# AgentUtility JavaScript Render

> AgentUtility JavaScript Render is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.03/call, status unknown (last checked 2026-11-30).

Fetches a public URL using a headless browser with full JavaScript execution and returns the rendered HTML or a screenshot

## Facts

- Endpoint: POST https://x402.agentutility.ai/javascript-render?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentutility-javascript-render-0ab9d3b5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kyAMkrKJ7q2ew4sZAN92J

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 agentutility-javascript-render-0ab9d3b5 -d '<json body>'
```

Example prompt: Can you fetch the fully rendered HTML of https://news.ycombinator.com/ — it uses JavaScript so I need the page after it loads, and wait an extra 2000ms for any late-loading content?

## When to prefer this

Use this endpoint when you need the fully JavaScript-rendered DOM of a webpage — particularly single-page applications (React, Vue, Angular), dynamic content loaders, or sites that return empty shells without JS execution. Prefer this over a plain HTTP fetch when the page content is populated client-side. Also use this when you need a visual screenshot of a live webpage. At $0.03/call with no signup, it is well-suited for on-demand agent workflows that occasionally need rendered web content.

## Known failure modes

- Private or internal network URLs are rejected outright
- Pages with anti-bot protections (Cloudflare, reCAPTCHA) may return incomplete HTML
- Very slow pages may time out before full render if wait_ms is insufficient
- Malformed or non-HTTP URLs will cause validation errors
- Pages requiring authentication will return login screens rather than protected content
- Payment failures via x402 will prevent the call from executing

## How this service works

817 pay-per-call APIs for AI agents. Every endpoint is POST /<name> and is payable in USDC over x402 on Base and Solana — no signup, no API key, just pay-per-call. GET https://x402.agentutility.ai/ returns the same catalog as machine-readable JSON.

## Output

A JSON object containing the rendered HTML of the page (html), the page title (title), the original URL and final redirected URL (final_url), the size in bytes (bytes), a flag indicating if the response was truncated (truncated), and optionally a base64-encoded PNG screenshot if screenshot=true was requested.

## 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": {
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "maxLength": 4096,
       "description": "Absolute public http(s) URL to render. Max 4096 characters; private-network targets are rejected."
      },
      "wait_ms": {
       "type": "number",
       "description": "Extra milliseconds to wait after load for late JS (0-10000). Default 0."
      },
      "block_ads": {
       "type": "boolean",
       "description": "Accepted for compatibility; filtering behavior is selected by the browser runtime."
      },
      "full_page": {
       "type": "boolean",
       "description": "Accepted for compatibility when screenshot=true; capture dimensions are selected by the browser runtime."
      },
      "screenshot": {
       "type": "boolean",
       "description": "Return a base64 PNG screenshot instead of HTML. Default false."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string"
      },
      "html": {
       "type": "string"
      },
      "bytes": {
       "type": "integer"
      },
      "title": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "final_url": {
       "type": "string"
      },
      "truncated": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com",
  "html": "<html>…rendered DOM…</html>",
  "bytes": 1256,
  "title": "Example Domain",
  "source": "managed headless browser",
  "final_url": "https://example.com/",
  "truncated": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentutility-javascript-render-0ab9d3b5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
