Get a screenshot as PDF file

GET https://website-screenshot.whoisxmlapi.com/api/v1?type=pdf&url=google.com

Request Params

KeyDatatypeRequiredDescription
typestringImage output type. Acceptable values: jpg
urlstringThe target website's url.
creditsnullType of credits. Acceptable values: SA
retinanullIf specified (any value), emulates retina display.
uanullThe 'User-Agent' header string.
cookiesnullThe 'Cookie' header string in the following format: name1=value1;name2=value2.
mobilenullIf specified (any value), emulates mobile device.
touchScreennullIf specified (any value), emulates device with a touch screens.
landscapenullIf specified (any value), renders page in landscape mode (useful for smartphone emulation).
failOnHostnameChangenullIf specified (any value), the API responds with 422 HTTP error code when the target domain name is changed due to redirects.
imageOutputFormatnullResponse output format. Acceptable values: image
errorsOutputFormatnullErrors output format. Acceptable values: JSON
widthnullImage width (px).
heightnullImage height (px).
thumbWidthnullImage thumb width (px).
modenullfast - waiting for the document.load event. slow - waiting for network idle event.
scrollnullIf specified (any value), scrolls down and to the scrollPosition (useful for full-page screenshots).
scrollPositionnullSpecifies scroll's behavior Acceptable values: top
fullPagenullIf specified (any value), makes full-page screenshot.
noJsnullIf specified (any value), disables JS.
delaynullCustom delay (ms) before screen capture.
timeoutnullCustom timeout (ms) for page loading. API will respond with an error if our server can't load the page within the specified timeout.
scalenulldeviceScaleFactor value for the emulator.