Website Screenshot API
Pricing
Pay per usage
Website Screenshot API
Capture full-page or viewport screenshots of public web pages as PNG or JPEG. Set viewport, device, wait time and format; each image is saved with a link in the dataset.
Pricing
Pay per usage
Rating
0.0
(0)
Developer
Cole Cassel
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
25 days ago
Last modified
Categories
Features
Share
Turn a list of URLs into clean, full-page PNG or JPEG screenshots taken with a real Chromium browser. The actor scrolls each page so lazy images load, keeps sticky headers from repeating down the image, and hides most cookie banners. Every result row includes a direct link to its image.
You pay $0.002 per successful screenshot. Errors, 404 pages and block pages are free.
What it does
- Opens each URL in headless Chromium (Playwright) with a desktop, laptop, tablet or mobile viewport, or a custom size.
- Waits for the page to load, then scrolls through it so lazy-loaded images appear. The scroll has a time limit.
- Fixes sticky and fixed headers so they don't repeat in full-page shots, and hides common cookie/consent banners. You can also hide your own CSS selectors.
- Saves a full-page or viewport screenshot as PNG, or as JPEG with adjustable quality, to the run's key-value store.
- Returns one dataset row per URL: final URL after redirects, HTTP status, page title, image URL, size and load time.
- Is polite by default:
- respects
robots.txt; - waits between requests to the same site;
- identifies itself in the User-Agent (
WebsiteScreenshotBot/1.0).
- respects
- Never tries to get past CAPTCHAs or anti-bot pages. If a page looks like one, the row is marked
possiblyBlocked: trueand isn't charged.
Use cases
- Visual archives of your own sites or competitors' public pages.
- Thumbnails for link directories, newsletters and dashboards.
- Before and after evidence for website redesigns, QA and regression checks.
- Proof that a public page showed certain content at a given time.
- Feeding page images to AI or vision models.
Input
Only startUrls is required. Everything else has a sensible default.
{"startUrls": [{ "url": "https://example.com" },{ "url": "https://www.python.org" }],"devicePreset": "desktop","fullPage": true,"format": "png","maxConcurrency": 3}
| Field | Default | Notes |
|---|---|---|
devicePreset | desktop | desktop 1920×1080, laptop 1366×768, tablet (iPad Mini), mobile (iPhone 13), or custom with viewportWidth/viewportHeight |
fullPage | true | false captures only the visible viewport |
format / jpegQuality | png / 80 | JPEG files are much smaller |
waitUntil / delayMs | load / 1000 | networkidle suits busy single-page apps |
scrollToLoadLazyContent / maxScrollSeconds | true / 10 | |
fixStickyHeaders, hideCookieBanners | true | hideSelectors takes extra CSS selectors to hide |
darkMode | false | Asks the page for its dark color scheme |
maxPageHeight | 16000 px | Very long pages are cut at this height |
respectRobotsTxt | true | Turn it off only for sites you own or are allowed to capture |
maxConcurrency / minDelayBetweenRequestsSecs | 3 / 1 s | |
navigationTimeoutSecs / maxRetries | 45 s / 2 | Retries use exponential backoff on timeouts and on 429/5xx |
Output
Real rows from a test run on 2026-10-18. On Apify, screenshotUrl is a public link to the image in the run's key-value store.
{"url": "https://www.python.org","ok": true,"finalUrl": "https://www.python.org/","httpStatus": 200,"title": "Welcome to Python.org","screenshotUrl": "https://api.apify.com/v2/key-value-stores/<store-id>/records/www.python.org-1ab11d99.png","screenshotKey": "www.python.org-1ab11d99.png","format": "png","width": 1920,"height": 2546,"bytes": 403009,"fullPage": true,"devicePreset": "desktop","possiblyBlocked": false,"charged": true,"loadTimeMs": 3219,"attempts": 1,"processedAt": "2026-10-18T19:04:01Z"}
A URL that can't be captured produces an error row. It is never charged and doesn't stop the run:
{"url": "https://www.google.com/search?q=apify","ok": false,"error": {"code": "ROBOTS_DISALLOWED","message": "Blocked by https://www.google.com/robots.txt (robots.txt rules). Set respectRobotsTxt to false only for sites you own or have permission to access."},"attempts": 1,"processedAt": "2026-10-18T19:04:13Z"}
Error codes:
INVALID_URL,PRIVATE_ADDRESS(localhost or internal networks are refused),DNS_ERROR,ROBOTS_DISALLOWED;TIMEOUT,NETWORK_ERROR,SSL_ERROR,HTTP_<status>(a 429/5xx that persisted after retries);DOWNLOAD_NOT_PAGE(the URL is a file download),BROWSER_ERROR,UNEXPECTED_ERROR.
In the test run, 13 URLs were processed in 20 seconds:
- 10 charged screenshots of gov.uk, BBC News, Wikipedia, NASA, WHO and others, ranging from 1,080 to 16,000 px tall;
- one 404 page, captured but free;
- one robots.txt block;
- one refused localhost URL.
Pricing
Pay per event:
| Event | Price |
|---|---|
| Successful screenshot | $0.002 ($2 per 1,000) |
| Run start (Apify standard) | $0.00005 per GB of memory |
You don't pay for error rows, 4xx/5xx pages or pages flagged as blocked. Apify platform usage is included in the price. You can set a maximum cost per run, and the actor stops cleanly when it is reached.
Limits
- Pages behind logins, paywalls or CAPTCHAs are not supported, and that is intentional.
- Pages taller than
maxPageHeight(16,000 px by default) are cut. Very tall PNGs can be several MB; the NASA homepage was about 5 MB. - Cookie-banner hiding uses common selectors and covers most sites, but not all of them.
- Up to 5,000 URLs per run. Memory defaults to 4 GB, which comfortably runs 3 browser tabs at once.
FAQ
Why was a page not charged?
Its HTTP status was 400 or higher, it looked like a bot-check page, or it failed. Look at charged, httpStatus and error in the row.
Can it screenshot pages behind a login? No. It only captures public pages.
Why is robots.txt respected by default?
It is the site owner's stated wish about automated access. You can switch it off for sites you own or have permission to capture.
How do I get the image files?
Each row's screenshotUrl is a direct download link. All images are also in the run's key-value store.
Can I get JPEGs for smaller files?
Yes. Set format to jpeg and choose a jpegQuality. Mobile viewport JPEGs at quality 70 were about 150 KB in testing.