web

AgentSearch Web Render

Load a URL in headless Chromium with JavaScript executed and get the rendered page back for an LLM or RAG pipeline: markdown, text, HTML, title, links and an optional screenshot. POST /v1/render with {url}. Robots.txt is honored and private addresses are refused. JSON in, JSON out, errors included. Pay per request in USDC; no account, no API key.

post/v1/agentsearch-web-render-v1

Request

  • Base URL: https://agent.pocket.network
  • URL: https://agent.pocket.network/v1/agentsearch-web-render-v1
  • Auth: none required

Request body

urlstring required

The public page to render (http or https, port 80 or 443).

formatsstring[]

Which renderings to return (default markdown).

max_charsinteger

Cap on returned characters (default 20000).

screenshotboolean

Include a base64 screenshot, at most 1 MB (default false).

screenshot_format'png' | 'jpeg'

Screenshot encoding (default png).

full_pageboolean

Screenshot the full page, clipped to 4000 px high (default false).

wait_until'domcontentloaded' | 'load' | 'networkidle'

When the page counts as loaded (default domcontentloaded).

wait_for_selectorstring

A CSS selector to wait for, at most 1.5 s.

wait_msinteger

Extra wait after load, in milliseconds (default 0).

blockstring[]

Resource types not to load (default media and font).

Response

The upstream response, served after payment settles.

object required

For POST /v1/render, a JSON object with request_id, url, requested_url, status_code, title, meta (render_ms, fetched_at, chars, truncated, js, robots, content_type, lang), error (null on success), warnings, links and the requested renderings, plus screenshot when asked. A page that cannot be rendered answers 200 with an error code such as ROBOTS_DISALLOWED; a bad request answers 4xx with { error: { code, message, retryable } }.

Changes

No recorded changes to this operation across all 1 revision of this API.