jsonlink
DocsScreenshot
Endpoints

Screenshot

Capture any web page as an image: desktop, mobile, full page or retina. Cookie banners are hidden automatically.

GEThttps://jsonlink.io/api/screenshot
2 credits per successful requestFailed requests are freeTry it live →

Parameters

urlstringRequired

The full URL of the page to capture.

api_keystringRequired

Your API key.

viewport_widthintegerDefault: 1920

Browser width in pixels. Use 390 for a phone.

viewport_heightintegerDefault: 1080

Browser height in pixels.

device_scale_factorintegerDefault: 1

Pixel density, from 1 to 3. Use 2 for retina-quality images.

full_pagebooleanDefault: false

Set to true to capture the whole scrollable page instead of the viewport.

formatstringDefault: jpg

jpg or png.

qualityintegerDefault: 80

JPG quality from 0 to 100. Ignored for PNG.

delaynumberDefault: 0

Seconds to wait after the page loads before capturing, for animations or late content.

Response

pathstring

Path of the image on our server.

urlstring

Public 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 with format=jpg&quality=70 to keep files small.
  • Open Graph image: viewport_width=1200&viewport_height=630
  • Pages with animations: delay=2