GET
/api/v1/screenshotCapture a website as a PDF
Render any URL as a PDF document. Set format=pdf and optionally choose paper size and orientation.
Set format=pdf. All standard parameters (viewport, wait, custom CSS, etc.) still apply. See PDF Options for the full parameter list.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
access_key | string | required | Your API key. |
url | string | required | The page URL to render. |
format | string | required | Must be pdf. |
pdf_paper_format | string | optional | Paper size: A4 (default), Letter, Legal, A3, etc. |
pdf_landscape | boolean | optional | Landscape orientation. Default: false. |
media_type | string | optional | Use print to apply print-media CSS styles. |
Code Examples
curl "https://screenshotcore.com/api/v1/screenshot?access_key=YOUR_KEY&url=https://example.com&format=pdf&pdf_paper_format=A4&media_type=print" \
--output page.pdfResponse
(Raw PDF bytes, Content-Type: application/pdf)