Website Screenshot API: Full Page, Mobile, PDF
Pricing
from $3.20 / 1,000 screenshots
Website Screenshot API: Full Page, Mobile, PDF
Capture full-page screenshots or PDFs of up to 5,000 URLs per run: PNG, JPEG or WebP, desktop, tablet and mobile, one element only, dark mode. Cookie banners hidden, lazy images loaded, one file link per URL. Failed URLs are free.
Pricing
from $3.20 / 1,000 screenshots
Rating
0.0
(0)
Developer
abdulrahman alrashid
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
10 days ago
Last modified
Categories
Features
Share
Website Screenshot API turns a list of URLs into full-page screenshots (PNG, JPEG or WebP) or PDFs in one run. Each page gives one stored file with a link and one row with its size, final URL, status code and title. You pay only for files that were captured and stored; URLs that fail are listed separately and cost nothing.
What is Website Screenshot API?
Website Screenshot API is a bulk screenshot generator for web pages. It opens each URL in a real Chromium browser, waits until the page has loaded, hides cookie consent banners and chat widgets, scrolls down so lazy-loaded images appear, and captures the result. Use it to:
- put page shots into client reports, audits and dashboards;
- archive how a page looked on a given day, for QA or compliance;
- build previews for directories, marketplaces and link lists;
- give an AI agent a picture of a page;
- turn a URL into a PDF for reading or printing.
It replaces a screenshot API subscription: there is no monthly fee, you pay per stored file, and you can run it on a schedule or call it from your own code.
What can it capture?
- Full page or viewport: the whole page height (up to 20,000 px, see Limits) or only the visible screen.
- One element: only the first element that matches a CSS selector, for example a pricing table or a chart.
- Formats: PNG (lossless), JPEG and WebP (smaller files, quality 1 to 100) and PDF (the page printed to A4 with its background colours and images).
- Devices: desktop, desktop HD, tablet and mobile presets, or your own viewport width and height.
- Dark mode: pages that support
prefers-color-scheme: darkare shown in their dark theme. - Clean shots: cookie banners and chat widgets hidden, lazy images loaded, extra elements hidden with your own selectors.
How to take a full-page screenshot of a website
- Paste the pages into URLs, one per line (up to 5,000 per run). Bare domains such as
apify.comwork. - Keep Format at PNG and Full page on, or choose JPEG, WebP or PDF and a Device.
- Click Start. A typical page takes 5 to 20 seconds, and up to 3 pages are captured at a time with the default 2,048 MB of memory.
- Open the Output tab: the Overview view shows a preview of each capture with its link. Export the rows to JSON, CSV or Excel, or download the files from the run's key-value store.
How much does it cost to take 1,000 screenshots?
You pay one event per stored image or PDF. URLs that fail (the domain does not exist, the page does not load in time, the address is private, the element is not found, the URL is a file download) are listed in the FAILED record and are not charged. There is no extra charge for full-page captures, PDF, element capture or retries.
| Event | Charged when | Free plan | Bronze | Silver | Gold |
|---|---|---|---|---|---|
Screenshot (screenshot) | One image or PDF captured, stored with a link and saved as a row. URLs that fail (DNS errors, timeouts, blocked addresses, missing elements, file downloads) are not charged. | 4.00 USD per 1,000 events | 4.00 USD per 1,000 events | 3.60 USD per 1,000 events | 3.20 USD per 1,000 events |
Actor start (apify-actor-start) | Charged by Apify when the run starts: once up to 1 GB of memory, then once for each extra GB. | 0.05 USD per 1,000 runs | 0.05 USD per 1,000 runs | 0.05 USD per 1,000 runs | 0.05 USD per 1,000 runs |
Example: 1,000 screenshots on the Bronze plan cost 1,000 x 0.004 USD = 4.00 USD, plus 0.00005 USD for the run start. Platform usage (compute, storage, traffic) is included in these prices.
Free plan: the 5 USD of monthly Apify credit covers about 1,250 screenshots a month when no other Actor is used.
At the default 2,048 MB of memory the run start counts twice (2 x 0.00005 USD), as the table above describes.
Set a maximum cost per run in the run options. The Actor never stores a capture it cannot bill: it stops starting new URLs at the limit, keeps every row saved so far and writes its summary.
Pages that answer with an error status (404, 500) but show content are captured and charged, with statusCode set, because the error page is often what you want to see. Bot challenge pages are captured and charged too, and the row names the challenge in botChallenge (see Limits).
Input example
Full-page PNG screenshots of two pages on desktop:
{"urls": ["https://apify.com", "https://en.wikipedia.org/wiki/Kuwait"],"format": "png","fullPage": true,"device": "desktop"}
The infobox of a Wikipedia article as a mobile JPEG:
{"urls": ["https://en.wikipedia.org/wiki/Kuwait"],"device": "mobile","format": "jpeg","fullPage": false,"selector": "table.infobox"}
URL to PDF:
{"urls": ["https://example.com"],"format": "pdf"}
Output example
The row of the infobox capture above, from a test run (the store ID in the link is replaced by STORE_ID):
{"url": "https://en.wikipedia.org/wiki/Kuwait","finalUrl": "https://en.wikipedia.org/wiki/Kuwait","statusCode": 200,"title": "Kuwait - Wikipedia","screenshotUrl": "https://api.apify.com/v2/key-value-stores/STORE_ID/records/en.wikipedia.org-wiki-Kuwait-e9e0d840.jpg","key": "en.wikipedia.org-wiki-Kuwait-e9e0d840.jpg","format": "jpeg","device": "mobile","width": 620,"height": 4072,"bytes": 389888,"truncated": false,"pdfPages": null,"contentType": "text/html","botChallenge": null,"warnings": [],"loadMs": 7785,"capturedAt": "2026-11-12T23:06:02.810Z"}
Every row has these fields:
| Field | Type | Description |
|---|---|---|
url | string | The URL as requested, after a missing https:// was added and the host was written in lower case. |
finalUrl | string | The URL the browser ended on, after all redirects. |
statusCode | integer or null | HTTP status of the final page. Pages that answer 4xx or 5xx but show content are captured and charged, with this field set. |
title | string or null | Title of the page (at most 300 characters); null when the page has none. |
screenshotUrl | string | Link to the stored image or PDF in the run's key-value store. It works as long as the store is kept (see data retention in the README). |
key | string | Key of the file in the key-value store: host, path, a short hash of the URL and settings, and the extension. |
format | string | File format: png, jpeg, webp or pdf. |
device | string | Device preset used: desktop, desktop-hd, tablet or mobile (custom viewport sizes keep the preset name). |
width | integer or null | Image width in pixels, read from the stored file (CSS pixels times the device pixel density); null for PDF. |
height | integer or null | Image height in pixels, read from the stored file; null for PDF. |
bytes | integer | Size of the stored file in bytes. |
truncated | boolean | True when the page (or element) was taller than the size limit and the image shows only its top part, or when a PDF reached 100 pages. |
pdfPages | integer or null | Number of pages of the PDF; null for images. |
contentType | string or null | Media type of the final page as sent by the server, for example text/html. Other types (plain text, JSON, images) are captured as the browser shows them. |
botChallenge | string or null | Name of the bot challenge or block page the capture shows (for example Cloudflare challenge), or null. Such pages are captured as they appear; no attempt is made to pass them. |
warnings | array | Notes about the capture, for example that the network never went idle, that the page was cut at the height limit, or that requests to private addresses were blocked. |
loadMs | integer | Milliseconds from the start of navigation until the page reached the event in Wait for (or that wait ran out). Delays, scrolling and the capture come after. |
capturedAt | string | Time the file was stored (ISO 8601, UTC). |
The run also writes two records to its key-value store: SUMMARY (URLs captured, failed, charged, truncated and not processed, with the device, viewport and User-Agent used) and FAILED (each URL that gave no capture, with the reason and the number of attempts).
Devices and viewports
| Device | Viewport (CSS px) | Pixel density | Image width |
|---|---|---|---|
desktop (default) | 1366 x 768 | 1x | 1,366 px |
desktop-hd | 1920 x 1080 | 1x | 1,920 px |
tablet | 820 x 1180 | 2x | 1,640 px |
mobile | 390 x 844 | 2x | 780 px |
Tablet and mobile also emulate a touch screen and the mobile viewport, so responsive pages show their mobile layout. Viewport width (320 to 3,840 px) and Viewport height (320 to 4,320 px) replace the preset size and keep its pixel density. With Full page off, the image is exactly the viewport.
Hiding cookie banners and waiting for content
- Cookie banners and chat widgets: with Hide cookie banners and chat widgets on (the default), the Actor hides the banners of common consent tools (OneTrust, Cookiebot, Usercentrics, Didomi, Quantcast, Sourcepoint, TrustArc, CookieYes, Complianz, Borlabs, iubenda and others) and common chat widgets (Intercom, HubSpot, Drift, Crisp, Zendesk, Tidio and others) with CSS. Nothing is clicked: no consent is given or refused on your behalf, so the page loads as it does for a visitor who has not answered the banner. When a banner had locked scrolling, the lock is lifted so the full page can be captured. Banners of tools that are not on the list stay visible; add their selectors to Extra elements to hide.
- Wait for:
load(the default) waits for images and scripts;domcontentloadedis faster;networkidlewaits until there is no network traffic for half a second, at most 15 more seconds. Pages with live connections (chat, tickers, analytics beacons) never go idle: they are captured anyway, with a note inwarnings. - Extra delay: 1,000 ms by default, for animations and late content.
- Wait for element: wait until a CSS selector is visible before the capture, for example a chart that loads later.
- Lazy images: with Scroll to load lazy images on, the Actor scrolls down one screen at a time (up to 15 seconds and the height limit) and back to the top before a full-page or PDF capture. For an element capture it scrolls only to that element.
- Animations: CSS animations and transitions are stopped at the moment of the capture, so carousels and fade-ins do not blur the image.
- Video, analytics, advertising and session-recording requests are blocked while the page loads; images and fonts load normally.
Use with schedules, the API and MCP clients
- Schedules: save your input as a task and add a schedule in Apify Console to capture the same pages every day or week. Set Named store to keep the files: the same URL with the same settings keeps the same key, so each run replaces the previous capture and the link stays the same.
- API: start the Actor with the Apify API or the JavaScript and Python clients, wait for the run, then read the dataset items; each row's
screenshotUrlopens the file. Make, Zapier and n8n can start it and pass the links on. - AI agents and MCP clients: the Actor can be called as a tool from MCP clients that use the Apify MCP server; the agent gets one row per URL with a link to the image.
File links point to the key-value store of the run. Apify keeps a run's own store for the data retention period of your plan; a Named store is kept until you delete it.
Safety
- Only public
httpandhttpsaddresses are captured. Private, local, link-local and cloud metadata addresses are refused, for the page itself, for every redirect, and for every request the page makes (images, frames, scripts, WebSockets). The browser reaches the internet only by way of a local guard that resolves each host name, checks every address and connects to the checked address. - The browser identifies itself honestly:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<version>.0.0.0 Safari/537.36 WebsiteScreenshotAPI/0.1 (+https://apify.com/magicfingers/website-screenshot-api). It does not hide that it is an automated headless browser. - Service workers and downloads are switched off; pop-up windows are closed.
Limits
- No log-in pages: the Actor captures pages as an anonymous visitor sees them. It does not log in, keep cookies between runs or fill forms.
- Height limit: full-page captures are cut at 20,000 px of page height and the row is marked
truncated. Very wide or high-density captures are cut earlier so an image stays under 40 million pixels (for example 10,416 px for a 3,840 px wide page), and WebP images at 16,383 pixels per side, the format's own limit. Infinite-scroll pages stop at the limit. - Bot challenges: pages behind a bot challenge or block page (Cloudflare, DataDome, Akamai and others) are captured as they appear, and
botChallengenames what was recognised. No attempt is made to pass or solve a challenge, and no stealth techniques are used. - Pages that scroll inside a box: some pages scroll an inner container instead of the page itself; a full-page capture then shows only the first screen of that container.
- PDF: A4 pages with 10 mm margins, printed with the page's print styles, at most 100 pages (
truncatedis true at 100 pages). Element capture is not available for PDF. - File size: a capture above 50 MB fails and is not charged; use JPEG or WebP for very long pages.
- File downloads: URLs that make the browser download a file (PDF files, ZIP archives, CSV exports) fail with "not a web page" and are not charged. Plain text, JSON and images are captured as the browser shows them.
- Timeouts: each attempt has Page timeout seconds (60 by default). Timeouts, network errors and browser crashes are tried 3 times in total; DNS errors, blocked addresses and missing elements are not repeated.
- Banner list: banners and widgets that are not on the bundled list are not hidden unless you add their selectors.
FAQ
Am I charged for URLs that fail? No. Only stored files are charged. Failed URLs are listed in the FAILED record with the reason.
Why does my screenshot show a "Just a moment..." page? The site shows a bot challenge to automated browsers. The row has botChallenge set. The Actor does not try to pass it; try a proxy with a country close to the site, or contact the site owner.
Why is the image shorter than the page? The page is taller than the height limit (truncated is true), or it scrolls inside an inner box.
Can I capture a page behind a log-in? No. Only public pages that open without an account.
How long do the file links work? As long as the store is kept: the retention period of your plan for the run's own store, or until you delete it for a named store.
Can I see a page from another country? Yes. Set Proxy to Apify Proxy and choose a country.
Other Actors by the same author
- Tech Stack Detector: the CMS, shop platform, analytics, hosting and email provider of a list of websites.
- Website Contact Extractor: the emails, phone numbers and imprint data companies publish on their own websites.
- All Actors: apify.com/magicfingers