Website Screenshot API: Full Page & Sitemap avatar

Website Screenshot API: Full Page & Sitemap

Pricing

from $8.00 / 1,000 screenshots

Go to Apify Store
Website Screenshot API: Full Page & Sitemap

Website Screenshot API: Full Page & Sitemap

Website screenshot API for full-page, bulk and whole-sitemap captures. Cookie banners hidden and lazy images loaded. JPEG, PNG, WebP or PDF on desktop, tablet or mobile, plus a real-time API that returns the image. Failed screenshots are free. $8 per 1,000.

Pricing

from $8.00 / 1,000 screenshots

Rating

0.0

(0)

Developer

Brian Gomes

Brian Gomes

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

22 days ago

Last modified

Categories

Features

Limited permissionsSingle-tenantServer interface

Share

Website screenshot API for full-page, bulk and whole-sitemap captures, at $8 per 1,000 screenshots. Cookie banners are hidden, lazy-loaded images are loaded, and chat widgets do not cover the middle of the image. JPEG, PNG, WebP or PDF, on desktop, tablet or mobile. You can capture the full page, the visible screen, a fixed height, or one element. Run it as a batch, or call the real-time Standby API and get the image in the response. Failed screenshots are free.

  • No cookie banners or pop-ups. Banners from OneTrust, Cookiebot, Didomi, Quantcast, TrustArc, Usercentrics and 15 more consent platforms are hidden, along with any other fixed banner that talks about cookies, and sign-up and discount pop-ups. So is the dark overlay behind them, and the page can scroll again.
  • The whole page, really loaded. It scrolls through the page first, so lazy images and sections that load on scroll are in the shot.
  • No ads or trackers. Ad, analytics and tracking scripts aren't loaded, so pages load faster and come out cleaner. You can turn this off.
  • No floating widgets. Chat bubbles and bars stuck to the bottom of the window are hidden on full-page captures. The header stays at the top.
  • Capture what you need. The full page, the visible screen, a fixed height, or one element by CSS selector.
  • A whole site from its sitemap. Give it a website and it screenshots every page its sitemap lists.
  • Real-time API. GET https://bjgomes--website-screenshot.apify.actor/?url=https://example.com answers with the image.
  • Every screenshot on one page. Each run also saves a gallery: all its screenshots on one scrolling page, by section of the site, with a link to each live page. Free.
  • Failed screenshots are free. A page that times out or can't load gives you a row that says why, and isn't charged.

Quick start

  1. Put a page in Page URLs to screenshot.
  2. Click Start.
  3. Open the Output tab. Each row has a link to its image. Every image is also in the run's Key-value store.

What does Website Screenshot API do?

For each URL and device, it opens the page in Chromium, waits for it to load, cleans it up, and captures it:

  1. Loads the page and waits for the load event (at most 15 seconds, since ads can hold it back for minutes), then up to 3 seconds more for the network to go quiet.
  2. Waits for an element you name, or for an extra delay, if you set one.
  3. Hides cookie banners, pop-ups and their overlays, chat widgets, and any element you list.
  4. Scrolls down the page so lazy content loads, then back to the top.
  5. Captures the page, saves the image, then adds its row to the dataset. A row never points at an image that isn't saved yet.

Here's what a few rows look like:

urldevicewidth × heightstatusCodecookieBannersHidden
https://example.com/desktop1920 × 42102002
https://example.com/pricingmobile780 × 65322001
https://example.com/old-pagedesktop1920 × 10804040

(Example data. A page that answers 404 is still captured: you see what a visitor sees.)

Real-time API (Standby mode)

The same Actor answers HTTP requests directly. Send a URL and get the image back as the response, with no run to start and no dataset to read.

curl -H "Authorization: Bearer $APIFY_TOKEN" \
"https://bjgomes--website-screenshot.apify.actor/?url=https://example.com&device=mobile&format=jpeg" \
-o example.jpg
  • Every input option works as a query parameter, with the same name: captureMode, format, quality, height, selector, viewportWidth, viewportHeight, maxHeight, waitUntil, waitForSelector, delayMs, hideCookieBanners, hideStickyElements, scrollToLoad, blockAds and timeoutSecs. Use device (one of desktop, tablet, mobile) instead of devices, and give hideSelectors as a comma-separated list.
  • Or POST / with the same options as a JSON body.
  • The response headers describe the image: X-Final-Url, X-Status-Code (what the page answered), X-Truncated, X-Width and X-Height.
  • A request that fails gets a JSON error, and isn't charged: 400 for bad input or a private address, 422 when the page can't be loaded, 504 when it took longer than timeoutSecs, 503 when too many screenshots are already in progress (try again in a few seconds), and 402 when your maximum charge is reached.
  • The Endpoints tab on this page lets you try it from your browser.

In Standby mode you pay for each screenshot, plus Apify's compute for the time the server is up. That's how Apify bills every Standby Actor.

Input

FieldWhat it doesDefault
Page URLs to screenshot (urls)Single pages, each captured as given.none
Whole websites or sitemaps (startUrls)A website or a sitemap URL. Every page in its sitemap is captured. Pages robots.txt disallows are skipped.none
Maximum URLs (maxUrls)Stop after this many URLs. Each is captured once per device.100
Devices (devices)desktop, tablet (an iPad, 820 × 1180 at 2×) and mobile (an iPhone, 390 × 844 at 2×).desktop
What to capture (captureMode)fullPage, viewport (the visible screen), height (the top of the page, down to Height) or element (one element).fullPage
Height (height)For a fixed-height capture, in pixels.1080
Element selector (selector)For an element capture, a CSS selector like #pricing.none
Image format (format)jpeg, png, webp or pdf (A4 pages, with backgrounds). JPEG is fast and small; a full-page PNG is lossless but much larger and slower to make.jpeg
Quality (quality)For JPEG and WebP, 1 to 100.80
Desktop width and height (viewportWidth, viewportHeight)The desktop browser window.1920 × 1080
Maximum height (maxHeight)A full-page capture stops here. The row says truncated when the page was taller.15,000
Wait until (waitUntil)load, domcontentloaded or networkidle.load
Wait for element (waitForSelector)Wait until this element is visible before capturing.none
Extra delay (delayMs)Wait this long after loading, for animations.0
Hide cookie banners and pop-ups (hideCookieBanners)See above.on
Hide chat widgets and bottom bars (hideStickyElements)See above.on
Scroll to load images (scrollToLoad)See above.on
Block ads and trackers (blockAds)Don't load ads, analytics and tracking scripts.on
Also hide these elements (hideSelectors)CSS selectors for anything else to hide, like a newsletter popup.none
Screenshots at once (maxConcurrency)Pages loading at the same time. Loading pages is CPU work, and Apify gives a run 1 CPU per 4 GB of memory: keep it at 2 for every 4 GB.2
Timeout per screenshot (timeoutSecs)The longest a page may take to load and get ready. Capturing the image then gets up to 45 seconds more.60
Gallery images (galleryImages)embedded: smaller copies of the images inside GALLERY.html, so it works offline (linked instead when that would be over 9 MB). linked: the gallery links to the images in the run's storage. See The gallery.embedded

Example input:

{
"urls": [{ "url": "https://example.com" }],
"startUrls": [{ "url": "https://example.org/sitemap.xml" }],
"devices": ["desktop", "mobile"],
"format": "jpeg",
"maxUrls": 200
}

Output

One row per URL and device, in the run's dataset. Export it as CSV, JSON, Excel, XML or HTML, or read it through the Apify API. The images are in the run's key-value store.

FieldWhat it holds
typescreenshot, error for one that couldn't be taken, or summary for the last row, which links the gallery.
screenshotUrlA link to the image.
screenshotKeyThe image's key in the run's key-value store.
url, finalUrlThe URL asked for, and where it ended up after redirects.
device, formatAs captured.
width, height, bytesThe image's size in pixels and bytes.
truncatedtrue when a full page was taller than Maximum height and was cut off there.
statusCode, titleWhat the page answered, and its title.
cookieBannersHidden, popupsHidden, stickyHiddenHow many cookie banners, pop-ups, and widgets and bars were hidden.
loadTimeMsHow long the page took to load.
capturedAtWhen it was captured.
errorEmpty for a screenshot. Otherwise what went wrong, like timed out after 60 s.
foundIn, startUrlinput or sitemap, and for a sitemap page, the website it came from.
galleryUrl, galleryImages, galleryBytesOnly on the summary row: a link to GALLERY.html, whether its images are embedded or linked, and its size.

Every batch run also saves GALLERY.html: all its screenshots on one scrolling page, so you can look through a whole site without opening images one by one. It's free.

  • At the top: the site, the date and the devices, and a link to each section, such as Home (1), Collections (8), Products (23), Pages (5).
  • Then every page, one under the other, full width. Pages you listed come first, in your order. Sitemap pages are grouped by the first part of their path, in sitemap order.
  • A bar on each page stays at the top while you scroll its screenshot. It shows the path, the device, the page title and an "open live page" link.
  • Two devices: a page's desktop and mobile screenshots sit together under its bar.
  • At the end: any page that couldn't be captured, with the reason.

Embedded or linked. By default the images are inside the file, as copies at most 1,100 pixels wide, so it works offline and after you download it. If that would make the file over 9 MB, the images are linked instead and the run's status says so. With Gallery images set to linked, the page always links to the screenshots in the run's storage, which keeps it small.

Where to find it: first on the run's Output tab (Gallery), as GALLERY.html in the run's key-value store, and as galleryUrl on the last dataset row. The run's status ends with "Gallery: GALLERY.html".

How much does it cost?

You pay per screenshot. There's no monthly fee.

  • Each screenshot: $0.008, which is $8 per 1,000, whatever the capture mode or format. One URL on two devices is two screenshots.
  • Not charged: screenshots that fail (timeouts, pages that won't load, private addresses), pages a site blocks (401, 403, 407 or 429), pages robots.txt disallows, and the gallery.
  • Apify's standard start fee applies to each run. In Standby mode, Apify's compute is added (see above).

A worked example: a 500-page site, on desktop and mobile, is 1,000 screenshots, which costs $8.00.

Set Maximum URLs, or a maximum cost per run, for a hard ceiling. The run stops cleanly when the next screenshot wouldn't fit.

How it handles the hard cases

  • Cookie banners. Known consent platforms are hidden by a style sheet, so a banner the site adds again stays hidden. Any other fixed banner that mentions cookies or consent is hidden too, before and after scrolling, since some banners only show up late. It hides banners; it never clicks accept or reject.
  • Ads and trackers. Requests to 75 ad, analytics and tracking domains (Google Ads and Analytics, Tag Manager, Meta, Criteo, Taboola, Outbrain, Hotjar and others) are refused before they leave. On news and shopping sites that's most of the browser's work. A page you ask for by name is always loaded, even if it's on one of those services.
  • Chat widgets. Intercom, Drift, Crisp, HubSpot, Tidio, Tawk.to, Zendesk, Gorgias, LiveChat and Shopify Inbox are hidden in every capture mode. On a full-page capture, anything else fixed in the lower half of the window is hidden too, and so is a see-through layer over the whole window that only holds a widget.
  • Pop-ups. A dimmed layer over the whole window is hidden, and so is a dialog floating in the window or anything fixed with an email field in it, which covers most newsletter and discount pop-ups. A fixed header at the top, with its Sign up button, stays.
  • Lazy loading. Images marked loading="lazy" are switched to load right away, and the page is scrolled a screen at a time, for up to 10 seconds, so content that loads on scroll appears. Then it waits up to 3 seconds for those images.
  • Very tall pages. Infinite feeds keep growing. A full-page capture stops at Maximum height and says so in truncated.
  • Slow and stuck pages. Loading and getting the page ready has one timeout. Capturing the image then gets up to 45 seconds of its own, since a very tall PNG can take a while to encode, so a slow page doesn't leave its capture no time. Past either, you get a row that says which, and it isn't charged. After 20 failures in a row the run stops, rather than working through a site that's down.
  • Fonts. Color emoji and Chinese, Japanese and Korean fonts are installed, so text doesn't turn into boxes.
  • Private addresses. Every request the page makes, including redirects, images and frames, goes through an address check. Anything on a private network, loopback, or a cloud metadata address is refused. A page that points there gives you an error row.
  • robots.txt. Pages you list yourself are captured the way a person opening them would see them. Pages that come from a sitemap follow the site's robots.txt.
  • Bot protection and login walls. It runs a standard Chromium with no tricks. When a site answers 401, 403, 407 or 429 (a bot wall, a login page or a rate limit), you get an error row that says so, not a screenshot of the block page, and it isn't charged. A page that answers 404 or 500 is captured, since that's what visitors see.
  • Strict security headers. Some sites forbid added styles and scripts with a Content-Security-Policy. The browser is allowed past it for the clean-up, so banners are still hidden on those sites.

FAQ

How do I take a full-page screenshot of a website?

Put the URL in Page URLs to screenshot and run it. Full page is the default.

How do I screenshot every page of my website?

Put your homepage in Whole websites or sitemaps. It reads your sitemap and captures every page it lists, up to Maximum URLs.

Can I get a screenshot from my own code without starting a run?

Yes, use the real-time API above. One GET request returns the image.

How do I capture just one part of a page?

Set What to capture to One element and give a CSS selector, like #pricing or .hero.

Why is a banner or pop-up still showing?

Some sites use their own with no tell-tale words or markup. Add its CSS selector to Also hide these elements.

Should I use JPEG or PNG?

JPEG, unless you need every pixel exact. A full-page PNG of a long page can be 10 MB or more and takes many times longer to make. On a long page, a PNG can run out of time where a JPEG wouldn't.

Why is the image cut off at the bottom?

The page is taller than Maximum height. Raise it, up to 20,000 pixels.

Is it charged when a screenshot fails?

No. Only finished screenshots are charged. A site that blocks the browser isn't charged either.

Why did a site come back as "blocked the browser"?

Some large sites (news, shops, travel) block automated browsers with bot protection. This Actor doesn't try to get around it, so those sites return an error row, free of charge.

Limits

  • It doesn't log in, and it doesn't fill in forms.
  • It doesn't get around bot protection or CAPTCHAs.
  • Full-page captures stop at 20,000 pixels.
  • PDF output prints the page on A4 pages. The capture mode doesn't apply to PDFs.
  • It runs at 4 GB by default, which on Apify is one CPU, enough for 2 screenshots at a time. A typical page takes 10 to 30 seconds from opening to the finished image. For a large site, give the run more memory and raise Screenshots at once to match (2 per 4 GB).

API, n8n and MCP

This Actor runs on Apify, so everything the platform does works with it.

  • API. Start a run and read the results from your own code, in any language, or use the real-time API above. Apify API
curl -X POST "https://api.apify.com/v2/acts/bjgomes~website-screenshot/runs?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"urls":[{"url":"https://example.com"}],"devices":["desktop"]}'

When the run finishes, download the dataset as JSON, CSV, Excel or HTML from GET https://api.apify.com/v2/datasets/<datasetId>/items. In n8n, Make or Zapier, use the Apify integration and send the same JSON. Claude, ChatGPT and other MCP clients can run it through the Apify MCP server. This Actor does not expose its own MCP endpoint.

  • Schedules. Capture your pages every week and keep a visual history. Schedules
  • Tasks. Save your input once as a task and run it again with one click, or on a schedule. Tasks
  • Webhooks. Get a call to your own URL when a run succeeds or fails. Webhooks
  • Zapier, Make and n8n. Take a screenshot as one step of a workflow. Zapier, Make, n8n
  • AI agents (MCP). Claude, ChatGPT and other MCP clients can find and run this Actor through the Apify MCP server. Apify MCP server
  • Other Actors. Pass this Actor's results to another Actor when a run finishes. Actor-to-Actor

Six SEO Actors that work as a suite. Prices below are the public list price. Site Audit, PageSpeed, the broken link checker and the sitemap extractor cost less on paid Apify plans. A run can also have a small Actor start charge. The pricing page on each Actor is the source for the current price.

ActorWhat you getPrice
Keyword Search Volume, CPC & DifficultyGoogle search volume, CPC, keyword difficulty and search intent, in bulk$3 / 1,000 keywords with data
SEO AuditA 0-100 score and a fix for every page, plus what changed since the last run$5 / 1,000 pages
Bulk PageSpeed InsightsLighthouse score and Core Web Vitals for every sitemap URL, mobile and desktop$2.50 / 1,000 tests
Broken Link Checker404s, server errors, redirects and slow links, each with the page it is on$1 / 1,000 links, plus $0.50 / 1,000 pages
Sitemap URL ExtractorEvery URL in a site's sitemaps, with lastmod. HTTP status is optional$0.50 / 1,000 URLs, plus $0.50 / 1,000 status checks
Website Screenshot API (this one)Full-page screenshots of a URL list or a whole sitemap$8 / 1,000 screenshots

Support

Found a bug or need a feature? Open an issue on this Actor's Issues tab. Include the run ID and the URL you gave it.

If it saved you time, a quick review on the Reviews tab helps other people find it.