By adding a single parameter "remove_modals" to the REST request, this algorithm seamlessly removes cookie pop-ups and modals, offering a solution to take screenshot without cookies popup.
The Challenge of Web Screenshots
One of the issues that can keep you from taking a nice clean screenshot of a web page is the cookie pop-up, consent banner, and promotional modal that GDPR regulations require. All of them sit on top of the rest of the content.
In the past, overcoming these barriers involved copying and pasting, writing custom scripts, or finding creative, often fragile, workarounds that would often break as sites' layouts changed.
The Solution: AI-Powered Modal Removal
How did we get there? We created a custom AI engine that take care of the cleanup automatically. Once the user set the target page, our engine recognizes if there are any overlays and automatically remove them before taking the screenshot.
This capability requires zero configuration. By simply appending the parameter remove_modals=true to your REST request, the API intelligently clears the view.

How It Works
- Send Request: Add the remove_modals=true parameter to your WebshotAPI call.
- AI Detection: Our algorithm reaches the target URL and automatically detects the cookie consent forms, newsletter pop-ups and modal windows
- Dynamic Removal: The detected overlays are cleared from the page environment, ensuring a clutter-free view.
- Clean Output: The API captures and returns a clean screenshot, ready for immediate use in documentation, presentations, or automated workflows.
Example Result

Conclusion
Automated Web Modal Removal Automate web modal removal to expedite your workflows and receive consistent visual assets. Add this single parameter to your screenshot pipeline and forget about time-consuming cleanup and other dev work.







