URL To Screenshot
FREEMIUM
By APILight
Updated 18 days ago

URL To Screenshot API Documentation

Gets a screenshot from a webpage. Simply indicate the webpage url, and our API will do the rest. You can also indicate various parameters such as width, height, allocated time, and mobile view settings. Also handles Lazy Loading…

Learn more about this API
GETGet screenshot
GETGet screenshot

Get a screenshot from a webpage url.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
AcceptSTRING
OPTIONAL
Required Parameters
urlSTRING
REQUIREDURL of the webpage
Optional Parameters
widthNUMBER
OPTIONALWidth of the screenshot in pixels. Maximum value: 2048.
heightNUMBER
OPTIONALHeight of the screenshot in pixels. If you want to take a full screenshot, set this parameter to -1. Maximum value: 10000.
mobileBOOLEAN
OPTIONALShould we emulate a mobile device?
allocated_timeNUMBER
OPTIONALTime allocated to load the webpage, in seconds. Maximum value: 10.0.
base64BOOLEAN
OPTIONALIf 0, the API returns a PNG image. If 1, the API returns the image encoded in base 64 format (in that case, it might be a good idea to change the accept header to \"text/html\").
Code Snippet
Install SDK

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication