ready_event
stringTimingDefault: domcontentloaded
Specifies when to consider the page ready for screenshot:
load: Wait for theloadevent (all resources loaded)domcontentloaded(default): Wait for theDOMContentLoadedevent (HTML parsed)networkidle: Wait until there are no more than 2 network connections for 500msnetworkidle2: Same asnetworkidlenetworkidle0: Wait until there are no network connections for 500ms
Accepted values
loaddomcontentloadednetworkidlenetworkidle2networkidle0Example
curl "https://api.screenshotty.link/api/v1/screenshot?url=https://example.com&ready_event=load" \-H "X-Api-Key: YOUR_API_KEY" \--output screenshot.png