Web, pages and documents logo

Page capture: screenshot or PDF of a public URL

$0.01 USDC per call · Developer and security · POST /api/v1/page-capture · Id page-capture

Renders one public web page in a real browser (Cloudflare Browser Run, JavaScript enabled) and returns a PNG or JPEG screenshot or a PDF as base64 with its sha256, for agents that need to see or archive a page. Does not log in, click or fill forms, does not capture private or internal hosts, and returns an error rather than a capture larger than 6 MB.

What you get

A rendered screenshot or PDF of any public page without running a headless browser.

Call it

Send the JSON body below to https://agents.writerslogic.com/api/v1/page-capture. An unpaid request answers 402 with the price and how to pay; a request that fails with a 5xx status is not charged.

curl -i -X POST https://agents.writerslogic.com/api/v1/page-capture \
  -H 'content-type: application/json' \
  -d '{"url":"https://example.com/","output":"png","viewport":{"width":1280,"height":800}}'

Input

FieldTypeRequiredDescription
urlstring; length 8..2048yesPublic http(s) URL.
outputstring; one of "png", "jpeg", "pdf"no
full_pagebooleannoCapture the full scroll height (screenshots only; a PDF is always the whole page).
viewportobjectnoDefault 1280x800.
wait_untilstring; one of "load", "networkidle0"no
timeout_msinteger; 1000..30000noPage navigation timeout.

Example request body

{
  "url": "https://example.com/",
  "output": "png",
  "viewport": {
    "width": 1280,
    "height": 800
  }
}

Result

The response is { "data": ..., "_provenance": ... }. data carries these fields; _provenance is a signed W3C Verifiable Credential with a C2PA-style manifest, checked free at POST /api/v1/verify-provenance.

FieldTypeRequiredDescription
urlstringno
outputstring; one of "png", "jpeg", "pdf"no
media_typestringno
bytesintegerno
content_base64stringno
content_sha256stringnosha256 of the decoded file bytes.
viewportobjectno
full_pagebooleanno
captured_atstringno
limitsobjectno

Pay and connect

Available through: x402 (USDC on Base), MCP, RapidAPI, Apify.

Machine-readable