Block ads and unwanted content
Block ads, trackers, cookie banners, chat widgets, or any custom URL pattern. Resources are never loaded.
Blocking happens before the browser renders the page so blocked resources are never loaded. You can combine any of these flags.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
block_ads | boolean | optional | Block common ad networks (DoubleClick, AdSense, etc.). Default: false. |
block_trackers | boolean | optional | Block analytics and tracking scripts (GA, Segment, Hotjar, etc.). Default: false. |
block_cookie_banners | boolean | optional | Hide cookie consent / GDPR banners via CSS + JS. Default: false. |
block_chats | boolean | optional | Hide chat widgets (Intercom, Drift, Crisp, Zendesk, etc.). Default: false. |
block_requests | string | optional | Comma-separated URL patterns to abort (glob-style, e.g. *.ads.example.com). |
block_resources | string | optional | Comma-separated resource types to block: image, font, stylesheet, script, media, xhr, fetch. |
Code Examples
# Block ads + trackers + cookie banners
curl "https://screenshotcore.com/api/v1/screenshot?access_key=KEY&url=https://example.com&block_ads=true&block_trackers=true&block_cookie_banners=true" -o clean.png
# Block custom domain and all fonts
curl "https://screenshotcore.com/api/v1/screenshot?access_key=KEY&url=https://example.com&block_requests=*.ads.example.com&block_resources=font" -o out.pngResponse
(Raw PNG bytes with ads/banners removed, Content-Type: image/png)