Render an http(s) URL to a PDF (A4/A3/Letter/Legal/Tabloid) with print emulation; returns
Render an http(s) URL to a PDF (A4/A3/Letter/Legal/Tabloid) with print emulation; returns a JSON envelope with the PDF base64-encoded under pdf_base64, plus final_url, title, format, and size.
2000 (raw units)
price
5
calls / 30d
5
unique payers
2026-09-14
updated
Provider
screenshot-api-production-fe7e.up.railway.app · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xFFc458dB291b4ABcE020fE3de4f91F2770E537b1",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "2000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"format": "A4",
"url": "https://example.com",
"wait_until": "networkidle"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"final_url": "https://example.com/",
"format": "A4",
"pdf_base64": "JVBERi0xLjQKJeLjz9MK... (base64-encoded PDF bytes, truncated)",
"size_bytes": 45678,
"title": "Example Domain",
"url": "https://example.com"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"format": {
"description": "Paper size: 'A4', 'A3', 'Letter', 'Legal', or 'Tabloid'. Defaults to 'A4'.",
"type": "string"
},
"url": {
"description": "The http(s) URL to capture, e.g. 'https://example.com'. Internal/loopback hosts are rejected.",
"type": "string"
},
"wait_until": {
"description": "Playwright load state to wait for before capture: 'load', 'domcontentloaded', 'networkidle', or 'commit'. Defaults to 'networkidle'.",
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"final_url": {
"type": "string"
},
"format": {
"description": "The paper size used for the PDF.",
"type": "string"
},
"pdf_base64": {
"description": "Base64-encoded PDF bytes of the rendered page.",
"type": "string"
},
"size_bytes": {
"type": "integer"
},
"title": {
"type": "string"
},
"url": {
"type": "string"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://screenshot-api-production-fe7e.up.railway.app/capture/pdf" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://screenshot-api-production-fe7e.up.railway.app/capture/pdf");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://screenshot-api-production-fe7e.up.railway.app/capture/pdf")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/13027.json, and this resource appears in /discovery/resources and /discovery/search.