Ensure your full-page screenshots are complete and accurate by utilizing our scroll wait feature. This functionality is essential for capturing webpages with long or infinite scroll bars, ensuring that all content is fully loaded before the screenshot is taken.
Long web pages often include dynamically loaded content or infinite scroll features that may cause incomplete screenshots if captured too quickly. By adding a scroll wait, you can guarantee that all content, including images and interactive elements, is fully rendered before capturing.
The default scroll wait is set to 100 milliseconds per screen (viewport) for capturing full-page screenshots. This brief pause ensures that content has time to load and display properly.
Depending on your subscription plan, you can customize the scroll wait duration to better fit your needs:
Here is an example of capturing a full-page screenshot without additional scroll waiting. The default wait time may not be adequate for pages with extensive or infinite scroll.
// Example API request with scroll wait disabled https://api.addscreenshots.com/screenshots
?apikey=YOUR_API_KEY
&fullpage=true
&url=trademe.co.nz
Your API key can be found on the API Keys page. Need an API Key? Sign up to get started.
For internal applications, replace YOUR_API_KEY with your own unique API Key.
For public facing websites or hotlinks, generate a signed URL.
In this example, a full-page screenshot is captured with a 250 milliseconds (1/4 second) scroll wait. This brief pause can help ensure that dynamically loaded content is included in the screenshot.
// Example API request with scroll wait enabled https://api.addscreenshots.com/screenshots
?apikey=YOUR_API_KEY
&fullpage=true
&scroll_wait=250
&url=trademe.co.nz
In this example, a full-page screenshot is captured without additional scroll waiting. The default 50 milliseconds scroll wait will still be applied, but it may not be sufficient for pages with extensive content.
// Example API request with scroll wait disabled https://api.addscreenshots.com/screenshots
?apikey=YOUR_API_KEY
&fullpage=true
&url=amazon.com
Your API key can be found on the API Keys page. Need an API Key? Sign up to get started.
For internal applications, replace YOUR_API_KEY with your own unique API Key.
For public facing websites or hotlinks, generate a signed URL.
This example shows how to capture a full-page screenshot with a 1000 milliseconds (1 second) scroll wait. This extended wait helps to ensure that dynamic content loads completely before capturing.
// Example API request with scroll wait enabled https://api.addscreenshots.com/screenshots
?apikey=YOUR_API_KEY
&fullpage=true
&scroll_wait=1000
&url=amazon.com