Options
waitBeforeScreenshot
Extra time to wait before the capture, in milliseconds, up to 60000.
- Type
- number
- Default
- 0
- Range
- 0 to 60,000 milliseconds
- Group
- Timing
On this page
OverviewLink to this section
Extra time to wait right before the capture, after the page has loaded, been scrolled, been cleaned of banners and had your script and styles added. Use it for charts, maps, fonts and animations that finish after the page has loaded.
The value is in milliseconds, so 1000 is one second. Values above 60,000 are capped at 60,000, and zero, negative numbers and anything that is not a number mean no extra wait.
ExampleLink to this section
The same request with the SDK, with cURL and as the raw JSON body.
screenshot.ts
import { Url2Image } from '@url2image/sdk'
const { success, data, message } = await Url2Image({
url: 'https://example.com',
token: process.env.URL2IMAGE_TOKEN,
options: {
waitBeforeScreenshot: 2000
}
})Good to knowLink to this section
Related optionsLink to this section
takeScreenshotWhenWhich loading step to wait for before capturing.scriptJavaScript added to the page right before the capture.
Every option, grouped, is in the options overview.
Something unclear or missing on this page?
Tell us