Skip to main content
Block cookie consent banners and popups from appearing in your screenshots.

Basic usage

bash
curl "https://api.domshot.com/shot?key=YOUR_API_KEY&url=https://example.com&blockBanners=true" \
  --output screenshot.png

What gets blocked

TypeExamples
Cookie consent bannersGDPR/CCPA popups
Cookie notices”We use cookies” messages
Consent dialogs”Accept all” buttons
Cookie settingsPreference panels

Combining with other blocking

Cookie banner blocking works alongside ad and tracking blocking:
bash
curl "https://api.domshot.com/shot?key=YOUR_API_KEY&url=https://example.com&blockAds=true&blockTracking=true&blockBanners=true" \
  --output screenshot.png
Never expose sensitive authentication data in URLs that might be logged. Consider using environment variables for sensitive data.

Parameters

ParameterTypeDefaultDescription
blockBannersbooleanfalseEnable cookie banner blocking

See also