Send a web address to one API call and get back a screenshot of the whole page, from the top to the bottom, not just the first screen. You get an image link, the pixel size, the final address after redirects and the page title for each capture. This guide uses the Website Screenshot API Actor on Apify and a real run against a long Wikipedia article.
Why this way
A normal screenshot tool captures what fits on the screen. For a long page you then have to scroll, stitch and wait for lazy images yourself. With fullPage set to true, the Actor scrolls lazy images into view first and captures the full length in one image.
Other points that matter for this job:
- Pages taller than 16,384 px are cut there and the row says
truncated: true, so a very long page cannot produce an enormous file. - Cookie banners from common consent tools (OneTrust, Cookiebot, Didomi and others) are closed by clicking their accept button, and banners still showing are hidden. This is best effort. A few sites cannot be cleared.
- There is nothing to set up: no login, no API key for the site and no proxy.
- You only pay for screenshots that succeed. Failed captures, 404s, timeouts and blocked sites are free.
Steps
1. The input
This is the exact input used for the run below:
{ "urls": [ { "url": "https://en.wikipedia.org/wiki/Web_scraping" } ], "fullPage": true, "viewports": [ "desktop" ] } desktop is 1920x1080. The other sizes are laptop (1366x768), tablet (820x1180) and mobile (390x844). Add more than one and you get one row per address and size.
For pages that show a consent banner, add "dismissCookieBanners": true. The README's own example sets it. The run in this guide did not include it, so the sample output says nothing about banners.
2. Call it with curl
curl -X POST "https://api.apify.com/v2/acts/goldensky_api~website-screenshot-api/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \ -H "Content-Type: application/json" \ -d '{"urls":[{"url":"https://en.wikipedia.org/wiki/Web_scraping"}],"fullPage":true,"viewports":["desktop"]}' 3. Call it with Python
from apify_client import ApifyClient client = ApifyClient("YOUR_APIFY_TOKEN") run = client.actor("goldensky_api/website-screenshot-api").call(run_input={ "urls": [{"url": "https://en.wikipedia.org/wiki/Web_scraping"}], "fullPage": True, "viewports": ["desktop"], }) for item in client.dataset(run["defaultDatasetId"]).iterate_items(): print(item["status"], item["imageUrl"]) 4. Call it with JavaScript
import { ApifyClient } from 'apify-client'; const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' }); const run = await client.actor('goldensky_api/website-screenshot-api').call({ urls: [{ url: 'https://en.wikipedia.org/wiki/Web_scraping' }], fullPage: true, viewports: ['desktop'], }); const { items } = await client.dataset(run.defaultDatasetId).listItems(); for (const item of items) console.log(item.status, item.imageUrl); Always check status first. Only success rows have an image.
What comes back
The run returned one item, a PNG at desktop size. The image is 1920 px wide and 8,778 px tall, so it covers the whole article, about eight screens of height. The signature on the image link is cut here:
{ "url": "https://en.wikipedia.org/wiki/Web_scraping", "viewport": "desktop", "status": "success", "message": null, "imageUrl": "https://api.apify.com/v2/key-value-stores/uLthCopscZP9iCkhG/records/shot-f23a832d609a011a.png?signature=...", "width": 1920, "height": 8778, "bytes": 396487, "httpStatus": 200, "finalUrl": "https://en.wikipedia.org/wiki/Web_scraping", "title": "Web scraping - Wikipedia", "format": "png", "truncated": false, "charged": true, "capturedAt": "2026-12-04T10:01:02.107Z", "key": "shot-f23a832d609a011a.png" } truncated is false, so nothing was cut. The file itself sits in the run's key-value store under key.
Only one address was sent, so there is only one item. A site that shows a bot check comes back differently. This example is from the Actor's README, not from this run:
{ "url": "https://example-protected.site", "viewport": "desktop", "status": "blocked", "message": "This site blocks automated visits (bot check page). We do not try to get around bot checks, so no screenshot was taken and you were not charged.", "charged": false } blocked and refused mean do not retry. timeout and error can be retried.
Cost
The price is $4.00 per 1,000 screenshots on the Free plan, which is $0.004 each. There is also a start fee of $0.003 per GB of run memory. A default run uses 2 GB, so that is $0.006 per run.
- This run (1 screenshot): $0.004 + $0.006 = $0.010.
- 1,000 screenshots: $4.00 for the images. A run takes up to 500 screenshots, so 1,000 needs at least two runs, which adds $0.012 in start fees, about $4.012 in total.
Paid Apify plans cost less per screenshot. Failed captures are not charged.
Next
- Several sizes at once. Set
viewportsto["desktop", "tablet", "mobile"]and get all three for each address in one call. - One part of a page. Pass a CSS selector such as
#pricingor.heroto capture just that element.