1. readfetch
  2. choose
  3. /v1/screenshot

Data · Documents and structure

POST/v1/screenshot

PNG or JPEG of a rendered page: viewport, full page, or one element via CSS selector.

  • $0.003
  • full page
  • selector

What it does

Screenshot a public URL in headless Chromium (page JavaScript runs; no ad blocker) and return PNG or JPEG in JSON — `image_base64`, `mime`, `width`, `height`, `status_code`, `billed` (not a hosted URL). Scope: viewport only (`full_page: false`), full scrollable page (default), or one element (`selector`). `mode` caps total render time: fast (15 s), render (30 s, default), full (60 s, always full-page regardless of `full_page`). Set `width`/`height` before navigation (default 1280×800, max 3840×2160). `delay_ms` (0–30000) waits after navigation, then captures — raise it or use `mode=full` for slow SPAs and lazy media. Prefer readfetch_text or readfetch_scrape for extractable text; readfetch_pdf for PDF files; readfetch_fetch for raw HTTP without rendering. Read-only on the origin (GET + render, no form POST). Bot-check or blank frames may still return pixels with `billed: false` and a `hint`; paid x402 like other routes.

Price

Quoted by the 402 before anything runs.

  • $0.003per call
  • billedonly when content is delivered
  • no keythe payment is the credential

When to call it

Cheapest endpoint that answers the question, first.

Call it when the sentence above is the whole job. Its neighbours solve the same URL with a different trade-off — a browser instead of plain HTTP, a site instead of one page, one section instead of a document. /choose walks the decision, cheapest first, browser last.

Unsure whether another URL is worth paying for at all? /v1/probe is free: metadata plus the full extracted text on the first 3 probes per IP per day (a ~400-character preview after that) before you pay for a priced route.

Request fields

JSON body shape for POST /v1/screenshot — use with the client snippets below, not as a bare POST.

FieldTypeDefaultWhat it does
url requiredstring—Public http(s) URL to render in headless Chromium.
modestringrenderWhole-call budget: fast (15 s), render (30 s, default), or full (60 s; always captures the full scrollable page).
formatstringpngImage encoding for image_base64 (png default, or jpeg).
full_pagebooleantruetrue (default): entire scrollable document; false: viewport only. Ignored when mode=full.
selectorstring—CSS selector — capture that element's box only. Omit for page/viewport per full_page.
widthnumber—Viewport width in pixels before navigation (default 1280, max 3840).
heightnumber—Viewport height in pixels before navigation (default 800, max 2160).
delay_msnumber—Milliseconds to wait after navigation before capture (0–30000); use for SPAs and lazy-loaded content.

Make the call

Unpaid REST stops at 402. Use readfetch-client, @readfetch/client, or MCP @readfetch/mcp-x402-proxy — they sign x402 and retry. The JSON below is the argument shape for call() / route helpers.

example body
{
  "url": "https://example.com"
}

readfetch-client / @readfetch/client (latest+) handle x402 on paid routes — full API on /integrations#clients.

python
# pip install readfetch-client
# export EVM_PRIVATE_KEY=0x…
import asyncio
from readfetch_client import readfetch_screenshot

async def main():
    data = await readfetch_screenshot("https://example.com")

asyncio.run(main())
javascript
// npm install @readfetch/client
// export EVM_PRIVATE_KEY=0x…
import { readfetchScreenshot } from "@readfetch/client";

const data = await readfetchScreenshot("https://example.com");

Response

Fields shown are the ones a caller branches on.

200 ok
{
  "billed": true,
  "content_sha256": "...",
  "format": "png",
  "height": 800,
  "hint": null,
  "image_base64": "iVBORw0KG...",
  "mime": "image/png",
  "size": 48213,
  "status": "success",
  "status_code": 200,
  "url": "https://example.com",
  "width": 1280
}

Limits

Requests are JSON, 1 MiB maximum. Redirects are re-validated at every hop and capped at 5; the final URL is reported. Every call runs on one whole-call budget — DNS, connect, redirects, retries and any render share that clock, and no step starts a fresh timer. Where the endpoint publishes a timeout_s, its default and ceiling are the whole-call budget in the strip above. A budget that expires mid-walk returns status: "partial", and nothing is charged for what was not delivered.

Failures come back as {"error": "…", "hint": "…"} with a status to branch on. Shapes: /docs#errors.

Billing

$0.003 per delivered call. A response with billed: false settles nothing and names the next call to try.

billed: false on 200 usually means a blank render or bot-check page. 502/504 settle nothing.

RECEIPT, claims, and billing rules: /docs#billing.

Settlement, receipts and claims: /docs.