{"uid":"cap_WuwKlWtE6hRl7bAMX7KnT","slug":"screenshot-api-pdf-capture-b61bec40","name":"Screenshot API – PDF Capture","description":"Headless Chromium screenshots, PDFs, full-page captures and element captures, with x402 payments.","url":"https://screenshot.payapi.market/capture/pdf?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"The http(s) URL to capture, e.g. 'https://example.com'. Internal/loopback hosts are rejected."},"format":{"type":"string","description":"Paper size: 'A4', 'A3', 'Letter', 'Legal', or 'Tabloid'. Defaults to 'A4'."},"wait_until":{"type":"string","description":"Playwright load state to wait for before capture: 'load', 'domcontentloaded', 'networkidle', or 'commit'. Defaults to 'networkidle'."}}},"responseSchema":{"type":"json","example":{"url":"https://example.com","title":"Example Domain","format":"A4","final_url":"https://example.com/","pdf_base64":"JVBERi0xLjQKJeLjz9MK... (base64-encoded PDF bytes, truncated)","size_bytes":45678}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_w8gSjhlg4nwvMfZT_Ga-x","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Renders a URL as a PDF using headless Chromium and returns the base64-encoded PDF bytes with configurable paper size and load state.","exampleAgentPrompt":"Can you turn https://example.com/report into a PDF for me using A4 paper and wait until the network is idle before capturing?","exampleUseCases":[{"title":"Invoice archival from web portal","prompt":"Grab the invoice page at https://billing.acme.com/invoices/12345 and convert it to a PDF with A4 paper size, waiting for the full page to load before capturing."},{"title":"Regulatory compliance document snapshot","prompt":"I need a PDF snapshot of https://sec.gov/filing/abc123 in Letter format — make sure you wait until the network is idle so all the content is loaded."},{"title":"Marketing landing page PDF export","prompt":"Convert our campaign landing page at https://promo.mycompany.com/summer-sale into an A3 PDF so we can share it in print materials — wait until the DOM content is loaded."}],"resultDescription":"A JSON object containing the original URL, the page title, the paper format used, the final resolved URL (after redirects), the PDF as a base64-encoded string, and the file size in bytes.","failureModes":["Internal or loopback host URLs are rejected with an error","Invalid format enum values result in a bad request error","Pages that never reach the specified load state may time out","Network errors or unreachable URLs return a capture failure response","Very large or complex pages may produce oversized PDFs or time out"],"whenToPreferThis":"Choose this endpoint when you need a paginated, print-ready PDF representation of a live web page with full Chromium rendering (CSS, JS, fonts), configurable paper size (A4, A3, Letter, Legal, Tabloid), and control over the page load state before capture. It is ideal over screenshot endpoints when the output must be a vector PDF document rather than a raster image.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T00:50:56.294Z","isFirstParty":false,"canonicalSlug":"screenshot-api-pdf-capture-b61bec40"}