Tools / Web

Website screenshot

Opens the URL in a headless Chrome browser, waits for the page to settle and returns a PNG screenshot. Choose the viewport size and whether to capture the full scrolling page. Returns the image directly, or base64 JSON with format=json.

Price per call
$0.01 USDC
Endpoint
GET https://x402-tools.com/v1/screenshot
Also accepts
POST with a JSON body
Payment
x402, exact scheme, USDC on Base
Returns
image/png

Parameters

NameTypeDescription
url requiredstringPublic URL to capture.
widthnumberViewport width in pixels (default 1280, 320 to 1920).
heightnumberViewport height in pixels (default 800, 240 to 1600).
full_pagebooleanCapture the full scrolling page (default false).
formatstring'png' (default, raw image) or 'json' (base64 in JSON).

Call it from an agent

import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.AGENT_PRIVATE_KEY);
const paidFetch = wrapFetchWithPayment(fetch, account);

const res = await paidFetch("https://x402-tools.com/v1/screenshot?url=https%3A%2F%2Fexample.com&width=1280&height=800&full_page=false&format=png");
// costs $0.01 in USDC on Base

Without a payment the endpoint answers 402 with the price, so you can inspect it first:

curl -i "https://x402-tools.com/v1/screenshot?url=https%3A%2F%2Fexample.com&width=1280&height=800&full_page=false&format=png"

Example response

{
  "note": "Raw PNG bytes, or with format=json:",
  "url": "https://example.com/",
  "mime_type": "image/png",
  "image_base64": "iVBORw0KGgo…"
}

If the tool fails or your input is invalid, the payment is not settled.

Other tools