Capture clean screenshots with AI-powered content blocking. Our intelligent system automatically detects and removes ads, cookie banners, trackers, and unwanted elements for professional results.
Our AI-powered content blocking technology captures clean, distraction-free screenshots by intelligently detecting and removing unwanted elements like advertisements, cookie consent banners, tracking scripts, and custom selectors. Using advanced machine learning models trained on millions of web pages, our system adapts to new ad formats and blocking patterns automatically.
Why use AI-powered content blocking?
AI-powered advertisement blocking using machine learning models trained on millions of ad patterns. Intelligently detects and removes display ads, video ads, pop-ups, and banner advertisements across any website, even newly released ad formats.
booleanfalsecurl -X POST https://www.snapshotai.dev/api/v1/screenshots \
-H "Authorization: Bearer sk_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"options": {
"block_ads": true
}
}'AI-powered cookie banner detection using neural networks trained on thousands of consent patterns. Automatically identifies and removes cookie consent banners, GDPR notices, and privacy popups across all languages and designs. Our system learns and adapts to new cookie banner implementations in real-time.
booleanfalseconst response = await fetch('https://www.snapshotai.dev/api/v1/screenshots', {
method: 'POST',
headers: {
'Authorization': 'Bearer sk_live_YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
url: 'https://example.com',
options: {
block_cookie_banners: true
}
})
});
const data = await response.json();
console.log('Clean screenshot without cookie banners:', data.data.id);Intelligent tracker blocking powered by AI that identifies and blocks tracking scripts, analytics, and third-party monitoring tools. Our machine learning models recognize fingerprinting attempts and privacy-invasive scripts, reducing page load times by 30-50% while maintaining full functionality.
booleanfalsePerformance Tip: Blocking trackers can reduce page load time by 30-50% on some websites.
import requests
response = requests.post(
'https://www.snapshotai.dev/api/v1/screenshots',
headers={
'Authorization': 'Bearer sk_live_YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'url': 'https://example.com',
'options': {
'block_trackers': true
}
}
)
data = response.json()
print(f"Screenshot captured faster without trackers: {data['data']['id']}")Hide specific elements using CSS selectors. Perfect for removing custom elements like chat widgets, notification badges, user-specific content, or any element that shouldn't appear in the screenshot.
string[][]Note: Use valid CSS selectors. Multiple selectors can be provided to hide different elements.
const response = await fetch('https://www.snapshotai.dev/api/v1/screenshots', {
method: 'POST',
headers: {
'Authorization': 'Bearer sk_live_YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
url: 'https://example.com',
options: {
hide_selectors: [
'#chat-widget', // Chat widget
'.notification-badge', // Notification badges
'[data-user-content]', // User-specific content
'button.cookie-accept' // Cookie accept button
]
}
})
});For the cleanest possible screenshots, combine multiple blocking options. This is the recommended approach for documentation and marketing materials.
const response = await fetch('https://www.snapshotai.dev/api/v1/screenshots', {
method: 'POST',
headers: {
'Authorization': 'Bearer sk_live_YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
url: 'https://example.com',
options: {
// Block all common annoyances
block_ads: true,
block_cookie_banners: true,
block_trackers: true,
// Hide specific custom elements
hide_selectors: [
'#intercom-container', // Intercom chat
'.drift-frame-controller', // Drift chat
'#onetrust-banner-sdk', // OneTrust cookie banner
'.feedback-widget' // Feedback widget
],
// Optional: Wait for page to stabilize
delay: 2000,
// Optional: High quality for documentation
format: 'png',
viewport_width: 1920,
viewport_height: 1080
}
})
});
const data = await response.json();
console.log('Professional screenshot ready:', data.data.id);Our content blocking system is powered by advanced machine learning models that continuously learn and adapt to new blocking patterns across the web.
Our AI models are trained on millions of web pages, learning to identify ads, cookie banners, and trackers across thousands of different implementations. The system recognizes patterns in DOM structure, CSS classes, and behavioral signals to accurately detect unwanted content.
Unlike static blocking lists that require manual updates, our AI continuously learns from new patterns. When advertisers create new ad formats or cookie banners change design, our models adapt automatically without requiring any configuration changes.
Our AI understands cookie banners and consent forms in over 50 languages. The models recognize semantic patterns like "Accept cookies", "Aceptar cookies", or "Cookies akzeptieren" regardless of the specific wording or design.
Despite the advanced AI processing, content blocking adds less than 100ms to screenshot capture time. Our models run efficiently in parallel with page rendering, ensuring fast performance without compromising accuracy.
Our AI models are retrained weekly with data from millions of screenshots, ensuring we stay ahead of the latest ad formats and blocking techniques. This means:
Capture clean screenshots for technical documentation, user guides, and tutorials without distracting ads or banners.
Create professional screenshots for landing pages, presentations, and promotional materials without third-party elements.
Showcase your product without competitor ads, chat widgets, or user-specific content that would confuse viewers.
Display your work professionally in portfolios and case studies without outdated banners or cookie notices.
Remove elements that change frequently (dates, notifications, user-specific content):
import requests
response = requests.post(
'https://www.snapshotai.dev/api/v1/screenshots',
headers={
'Authorization': 'Bearer sk_live_YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'url': 'https://dashboard.example.com',
'options': {
'hide_selectors': [
'.timestamp', # Timestamps
'.notification-count', # Notification badges
'[data-user-email]', # Email addresses
'.last-login', # Last login time
'.user-avatar' # User avatars
],
'block_cookie_banners': True
}
}
)
data = response.json()
print(f"Clean dashboard screenshot: {data['data']['id']}")Perfect setup for marketing materials with maximum cleanliness:
curl -X POST https://www.snapshotai.dev/api/v1/screenshots \
-H "Authorization: Bearer sk_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://your-product.com",
"options": {
"block_ads": true,
"block_cookie_banners": true,
"block_trackers": true,
"hide_selectors": [
"#intercom-frame",
".crisp-client",
"#drift-widget",
".hubspot-messages-iframe-container",
"[data-testid=\"cookie-banner\"]"
],
"viewport_width": 1920,
"viewport_height": 1080,
"format": "png",
"delay": 3000,
"full_page": false
}
}'Use Templates for Consistency
Save blocking configurations as templates to maintain consistent screenshots across your documentation or marketing materials.
Add Delay for Accuracy
Some banners appear after a delay. Use delay: 2000 to ensure all unwanted elements are loaded before blocking.
Test Selectors First
Use browser DevTools to identify correct CSS selectors before adding them to hide_selectors.
Combine with Other Options
Pair content blocking with dark_mode, viewport settings, and format options for complete control.
Content blocking can significantly improve screenshot performance:
Our support team can help you identify the right selectors and blocking options for your use case.