GET/api/v1/screenshot

Capture 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

NameTypeRequiredDescription
access_keystringrequiredYour API key.
urlstringrequiredThe page URL to render.
formatstringrequiredMust be pdf.
pdf_paper_formatstringoptionalPaper size: A4 (default), Letter, Legal, A3, etc.
pdf_landscapebooleanoptionalLandscape orientation. Default: false.
media_typestringoptionalUse 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.pdf

Response

(Raw PDF bytes, Content-Type: application/pdf)