Find a button, link or element to click on before taking a screenshot.
This feature is useful for clicking on pop-up messages and notifications.
The name of the element to click, such as a link or button must be specified. The click value can be by:
View element selection examples.
To click on multiple items, repeat the click parameter such as &click=.button1&click=.button2
The screenshot below shows a website with a "This site uses cookies..." header with an OK button.
Example 1: Find the button with the text "OK" and click on it to hide the notice.
// Line breaks added for readability
https://api.addscreenshots.com/screenshots
?apikey=YOUR_API_KEY
&click=OK
&url=wherescape.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.
Exmaple 2: Find the button by the class name ".gdpr-viewed-action" and click on it to hide notice.
// Line breaks added for readability
https://api.addscreenshots.com/screenshots
?apikey=YOUR_API_KEY
&click=.gdpr-viewed-action
&url=wherescape.com