| Type | Supported Formats | Supported Types | |
|---|---|---|---|
| Library Template | png jpg jpeg webp pdf | base64 url binary |
Automate this template using integrations
You can generate Website Screenshot renders using Rest API and Orshot SDKs
await fetch("https://api.orshot.com/v1/generate/images", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer <ORSHOT_API_KEY>",
},
body: JSON.stringify({
"templateId": "website-screenshot",
"response": {
"format": "png",
"type": "base64"
"scale": 1
},
"modifications": {
"websiteUrl": "https://pinterest.com",
"fullCapture": "false",
"delay": "500",
"width": "1200",
"height": "1000",
"captureElement": ""
}
}),
});You can customize the template using following modifications
| Key | Description | Type |
|---|---|---|
| websiteUrl | Website URL | string |
| fullCapture | Capture full page. Takes more time since it waits for the whole page to load | boolean |
| delay | Delay in milliseconds, make sure to increase this value if the website takes time to load, has heavy content or animations | number |
| width | Width of output image | number |
| height | Height of output image | number |
| captureElement | Capture specific element using CSS selector (tag, class, or ID) | string |