Screenshot
Capture any web page as an image: desktop, mobile, full page or retina. Cookie banners are hidden automatically.
https://jsonlink.io/api/screenshotParameters
urlstringRequiredThe full URL of the page to capture.
api_keystringRequiredYour API key.
viewport_widthintegerDefault: 1920Browser width in pixels. Use 390 for a phone.
viewport_heightintegerDefault: 1080Browser height in pixels.
device_scale_factorintegerDefault: 1Pixel density, from 1 to 3. Use 2 for retina-quality images.
full_pagebooleanDefault: falseSet to true to capture the whole scrollable page instead of the viewport.
formatstringDefault: jpgjpg or png.
qualityintegerDefault: 80JPG quality from 0 to 100. Ignored for PNG.
delaynumberDefault: 0Seconds to wait after the page loads before capturing, for animations or late content.
Response
pathstringPath of the image on our server.
urlstringPublic URL of the image. Download it — it is deleted after 7 days.
Store your screenshots. Images are kept for 7 days and hotlinking them is not allowed. Download the file and serve it from your own storage.
Errors
When a page can't be loaded the API returns {"error": "UNABLE_TO_LOAD_PAGE"} instead of capturing an error page. It is not billed. See Errors.
Recipes
- Mobile:
viewport_width=390&viewport_height=844&device_scale_factor=2 - Full page:
full_page=true— combine withformat=jpg&quality=70to keep files small. - Open Graph image:
viewport_width=1200&viewport_height=630 - Pages with animations:
delay=2