Take website screenshots without cookie banners or ads
A cookie-banner and ad-blocking screenshot API captures a web page as an image after removing consent pop-ups and ads, so you get a clean screenshot without writing any blocking code.
Geekflare's Screenshot API removes cookie consent banners and blocks ads before every capture. Both options are on by default, so a plain request returns a clean image.
Rated 4.9 on average: G2 4.8,
Google 4.9,
Product Hunt 5.0.
- 100 free screenshots every month
- No card to start
- Failed requests cost nothing
Try it on your own URL
Banners and ads are removed by default.
Trusted by teams at Pfizer, NBCUniversal, TCS, Hostinger, Kissflow, Lookout, Plivo, ClearSale, Sparkian, CBSplit and Omreon.
Two parameters, both on by default
Two request options control what gets removed. hideCookie removes cookie consent banners before the page is captured. blockAds blocks ads before the capture. Both default to true, so you don't need to send them. Set either one to false when you want the page exactly as a first-time visitor sees it, banner and ads included.
| Parameter | Default | What it does | Set to false to |
|---|---|---|---|
hideCookie | true | Removes cookie consent banners before the capture | Keep the consent banner in the image |
blockAds | true | Blocks ads before the capture | Capture the page with its ads |
skipCaptcha | true | Tries to get past a CAPTCHA before the capture | Leave CAPTCHA handling off |
Your first clean screenshot
Send the URL. The response contains a link to the image in data. Add fullPage for the whole scrolling page, device: "mobile" for a phone-sized view, or type for JPEG or WebP instead of PNG. If your tool can't fetch a URL, add inline: true to get the image as Base64 in the same response. Every option is in the Screenshot API docs.
# pip install geekflare-api
from geekflare_api.client import GeekflareClient
from geekflare_api.models import ScreenshotDto
with GeekflareClient(api_key="<api-key>") as client:
result = client.screenshot(
ScreenshotDto(
url="https://example.com",
full_page=True
)
)
print(result)// npm install @geekflare/api-node
import { GeekflareClient } from "@geekflare/api-node";
const client = new GeekflareClient({
apiKey: "<api-key>",
});
const result = await client.screenshot({
"url": "https://example.com",
"fullPage": true
});
console.log(result);curl --request POST \
--url 'https://api.geekflare.com/screenshot' \
--header 'x-api-key: YOUR_KEY' \
--header 'Content-Type: application/json' \
--data '{"url":"https://example.com","fullPage":true}'See it in 20 seconds
Hiding cookie banners in Puppeteer or Playwright
If you run the browser yourself, there are three common ways to get rid of a consent banner. You can click its accept button, which needs a selector for each site. You can hide it with injected CSS, which needs the same selectors. Or you can block the scripts that load it, which needs a list of consent and ad domains. All three work, and all three need upkeep because banners change. With the API, the same result is one request, and the browser, blocking and upkeep are not your job.
- Click the accept button: a selector per site, which breaks when the banner changes
- Hide it with CSS: the same selectors, and the banner can still shift the layout
- Block the consent and ad scripts: a domain list you maintain
When to keep the banner in the screenshot
Sometimes the banner is the thing you need to see. If you are checking that a consent banner appears, documenting what visitors in a country are shown, or keeping a record for compliance, set hideCookie to false. Do the same with blockAds when you need to see where ads appear on a page. Combine it with proxyCountry to see the banner a visitor in another country, such as Germany or France, gets.
What teams use clean screenshots for
Clean captures matter most where nobody checks the image before it is used.
- Visual testing: compare releases without a banner covering the part of the page you changed
- Link previews and thumbnails: show the page, not the consent pop-up
- Archiving: keep a dated visual record of a page with
addTimestamp - Reports and docs: screenshots that need no manual cleanup, in light or dark mode
How many screenshots each plan covers.
A screenshot costs 5 credits, with banner and ad removal included. The free plan has 500 credits a month, which is 100 screenshots, with no credit card. Failed requests cost nothing, and the same credits work for the Web Scraping and Search APIs.
| Covered per month | Free $0/mo No card | Starter $19/mo | Most popular Growth $69/mo | Business 500K $299/mo | Business 1M $499/mo |
|---|---|---|---|---|---|
Credits a month | 500 | 20,000 | 100,000 | 500,000 | 1,000,000 |
ScreenshotsFull page or viewport in a real Chrome browser, banners and ads removed.5 credits | 100 | 4,000 | 20,000 | 100,000 | 200,000 |
| Requests per second | 1 | 5 | 10 | 25 | 25 |
What customers say.
“Finally found a screenshot API that handles full-page captures correctly. Most others mess up the rendering of dynamic elements. Geekflare API captures the whole thing.”
“Geekflare screenshot API has been solid so far. I like how consistently it handles dynamic content and modern websites. Team feature is a plus, I can get my team members to get API key and request logs.”
“Great API and even better customer support. They went above and beyond to help me fix a rendering issue. Fast response times and effective solutions. 5 stars!”
Clean captures, specifically.
General screenshot questions are answered on the Screenshot API page.
Open the Screenshot API pagehideCookie is true unless you change it. You get back a link to a clean PNG, JPEG or WebP.hideCookie option removes the consent banner before the capture, and blockAds blocks ads. You can switch either off per request.blockAds, which is true by default. Ads are blocked before the page is captured, so a plain request already returns the page without them.hideCookie to false and the page is captured as a first-time visitor sees it. This is useful when you need to check or document the consent banner itself.fullPage: true and with device: "mobile". You can also set the viewport from 320 to 3840 pixels wide.hideCookie.Clean screenshots from the first request.
Create a free account and get 100 screenshots a month. No credit card needed.




