Get a screenshot as PDF file
GET https://website-screenshot.whoisxmlapi.com/api/v1?type=pdf&url=google.com
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
type | string | Image output type. Acceptable values: jpg | |
url | string | The target website's url. | |
credits | null | Type of credits. Acceptable values: SA | |
retina | null | If specified (any value), emulates retina display. | |
ua | null | The 'User-Agent' header string. | |
cookies | null | The 'Cookie' header string in the following format: name1=value1;name2=value2. | |
mobile | null | If specified (any value), emulates mobile device. | |
touchScreen | null | If specified (any value), emulates device with a touch screens. | |
landscape | null | If specified (any value), renders page in landscape mode (useful for smartphone emulation). | |
failOnHostnameChange | null | If specified (any value), the API responds with 422 HTTP error code when the target domain name is changed due to redirects. | |
imageOutputFormat | null | Response output format. Acceptable values: image | |
errorsOutputFormat | null | Errors output format. Acceptable values: JSON | |
width | null | Image width (px). | |
height | null | Image height (px). | |
thumbWidth | null | Image thumb width (px). | |
mode | null | fast - waiting for the document.load event. slow - waiting for network idle event. | |
scroll | null | If specified (any value), scrolls down and to the scrollPosition (useful for full-page screenshots). | |
scrollPosition | null | Specifies scroll's behavior Acceptable values: top | |
fullPage | null | If specified (any value), makes full-page screenshot. | |
noJs | null | If specified (any value), disables JS. | |
delay | null | Custom delay (ms) before screen capture. | |
timeout | null | Custom timeout (ms) for page loading. API will respond with an error if our server can't load the page within the specified timeout. | |
scale | null | deviceScaleFactor value for the emulator. |