Any URL to a print-ready PDF. Same anti-bot engine as the scraper.
POST /v1/scrape/pdf·25 / 35 credits·Utilities
Point us at a URL and get back a base64-encoded PDF rendered through a real headless browser. Pick the paper size, portrait or landscape, and the viewport. Hostile sites are cleared by the same anti-bot engine as /v1/scrape/url, so you never run or babysit a browser yourself.
The hard part
A faithful PDF in production means running a headless browser, waiting for the page to actually settle, clearing anti-bot walls, and picking the right paper geometry — then keeping that browser fleet alive. You send a URL and a paper size; we return the bytes.
What it does
Paper sizes: Letter, Legal, Tabloid, Ledger, and A0–A6. `landscape=true` for wide content.
`viewport_width`/`viewport_height` control page layout before pagination.
`cookies` and `headers` render authenticated or gated pages; `session_id` reuses a sticky residential exit IP for multi-step flows.
`wait_extra_ms` waits out late-loading SPA content before capture.
Base64 returned inline (no S3 round-trip, no presigned-URL dance).