{"uid":"cap_22PB0dOWBnCXFTKyvR_I8","slug":"url-to-pdf-converter-screenshot-api-91391b69","name":"URL to PDF Converter (Screenshot API)","description":"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.","url":"https://screenshot-api-production-fe7e.up.railway.app/capture/pdf","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":null,"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_kFyHVWFZf7pyQf5e4YGcV","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 any public HTTP(S) URL to a PDF document in A4/A3/Letter/Legal/Tabloid format using headless Chromium with print emulation, returning the PDF base64-encoded in a JSON envelope.","exampleAgentPrompt":"Can you convert https://en.wikipedia.org/wiki/Artificial_intelligence to a PDF in Letter format and give me the base64-encoded file?","exampleUseCases":[{"title":"Archive web report as PDF","prompt":"Please render https://quarterly-report.example.com/2024-q4 as a PDF in A4 format — I want to archive the full page once all network requests have settled."},{"title":"Export invoice page for records","prompt":"Convert this invoice URL https://billing.acme.com/invoices/INV-20240501 to a PDF in Letter size so I can save it for our accounting records."},{"title":"Print legal document from web","prompt":"Turn https://contracts.example.com/agreement-v3 into a Legal-size PDF — make sure you wait for the page to fully load before capturing it."}],"resultDescription":"A JSON object containing: pdf_base64 (the full PDF file base64-encoded as a string), final_url (the resolved URL after any redirects), title (the HTML page title), format (the paper size used), and size (the byte size of the PDF).","failureModes":["Internal/loopback hostnames (e.g. localhost, 127.0.0.1) are rejected with an error","Invalid or unreachable URLs return an error","Unsupported format values outside A4/A3/Letter/Legal/Tabloid cause a validation error","Pages that require authentication may render blank or incomplete","Very large pages may time out during rendering","Invalid wait_until values cause a validation error"],"whenToPreferThis":"Choose this endpoint when you need a full print-emulated PDF of a web page — not just a screenshot — with control over paper size (A4, A3, Letter, Legal, Tabloid). It is ideal for archiving reports, invoices, contracts, or any content where PDF format and print layout matter. Prefer this over the sibling screenshot endpoints when the output must be a PDF rather than a PNG image.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T06:37:33.385Z","isFirstParty":false}