---
title: "Headless Browser Render"
method: POST
path: "/v1/headless-browser-render"
tags: ["web"]
---

# Headless Browser Render

`POST /v1/headless-browser-render`

## Request

- Base URL: `https://agent.pocket.network`
- URL: `https://agent.pocket.network/v1/headless-browser-render`
- Auth: none required

Fetch a web page and return its title and raw HTML (up to 200,000 characters). No browser engine is used and JavaScript is not executed, despite the name. POST /v1/render with {url} and get one JSON object back. Pages are cached for 5 minutes. Pay per request in USDC; no account, no API key.

## Request body

- object: The request body for POST /v1/render.
  - `url` string, required: The page URL (http or https).

## Response `200`

The upstream response, served after payment settles.

- object: For POST /v1/render, a JSON object with url, title, html, js_rendered (false) and a cache flag. The exact shape is the service's own and is not pinned here; errors return a JSON object with an `error` field.

## Other responses

- `400`: Malformed request.
- `402`: Payment required. The x402 v2 terms are in the PAYMENT-REQUIRED header and, identically, in this body; sign the chosen option and retry with the PAYMENT-SIGNATURE header. The receipt arrives in PAYMENT-RESPONSE.
- `503`: This service is not currently available to serve.

---

[API](https://skmtc.dev/pocket/apis/pocket-agentic-portal.md) · [All operations](https://skmtc.dev/pocket/apis/pocket-agentic-portal/llms.txt) · [OpenAPI document](https://skmtc.dev/pocket/apis/pocket-agentic-portal/revisions/96d2176db014?raw)
