Screenshots API
Capture high-quality PNG, JPG, or WebP screenshots of any website programmatically.Supports full-page capture, mobile viewports, lazy loading, and cookie acceptance.
Ready-to-use code snippets
import requests
url = "https://api.geekflare.com/screenshot"
payload = {"url": "https://example.com", "device": "desktop"}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Why Geekflare Screenshot API
Full-Page Capture
Automatically scrolls down the page to capture the entire content.
Multi-Device
Simulate mobile or desktop devices for responsive testing.
Anti-Bot Bypass
Rotating proxies and fingerprinting protection help you screenshot sites protected by security.
Global Network
Requests are routed through our global edge network to ensure low latency and high reliability.
Add Timestamp
Automatically overlay timestamps on your screenshots. Perfect for archiving, compliance, and legal evidence.
Customizable
Block ads, hide cookie banners, configure page height, remove backgrounds, highlight specific elements, and much more.
Simple, transparent pricing
Build more with Geekflare
Extract Metadata
Run Lighthouse Audit
Frequently Asked Questions
The generated CDN URLs are valid for 30 days. After this period, the images are automatically deleted. If your business requires longer retention periods, please contact us.
Generating a screenshot consumes 5 credits per request.
This usually happens when the target site uses sophisticated security measures, WAFs, or IP rate limiting to block automated traffic.
You may route your request through our residential proxy network by adding the proxyCountry parameter. This makes your request appear as a real user from a specific location. Please note that using premium proxies consumes 2 additional credits per request.