Website Screenshot & URL to PDF API avatar

Website Screenshot & URL to PDF API

Pricing

from $0.85 / 1,000 screenshot captureds

Go to Apify Store
Website Screenshot & URL to PDF API

Website Screenshot & URL to PDF API

Full page website screenshots and URL to PDF in bulk. Cookie banners removed automatically, lazy images loaded, sticky headers fixed. PNG, JPEG, WebP or PDF. Failed captures are free.

Pricing

from $0.85 / 1,000 screenshot captureds

Rating

0.0

(0)

Developer

saima mohammed

saima mohammed

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Features

Limited permissions

Share

Website Screenshot & URL to PDF turns any list of URLs into clean full page screenshots (PNG, JPEG, WebP) or PDF files, in bulk, via UI, API, schedule or MCP. It removes cookie banners and consent popups automatically, scrolls the page so lazy-loaded images actually appear, keeps sticky headers at the top, and never charges you for a failed capture.

Paste URLs → click Start → get a dataset with a link to each file. That's it.

✨ Why this screenshot API?

This ActorTypical screenshot Actor
🍪 Cookie banners / GDPR consent popupsClicked away automatically (300+ consent platforms + fallbacks)Banner covers the page
🖼️ Lazy-loaded imagesScrolls first, then captures from the topGrey boxes / missing thumbnails
📌 Sticky header / navbarStays at the top (or "unstick" / "hide")Header stuck in the middle of the image
📏 Custom height / above-the-foldAny width × height, or full pageWidth only
🧩 Capture one elementCSS selector—
📄 URL to PDFA4/Letter/…, margins, landscape, single long page—
📱 DevicesDesktop, HD, Retina, laptop, iPad, iPhone, AndroidDesktop
🌙 Dark mode, locale, time zone✅—
🚫 Ads & trackersOptional blocking (EasyList/EasyPrivacy)—
🪟 Newsletter / membership popupsClosed automaticallyPopup in the image
😀 Emojis & Asian scriptsNoto Color Emoji + CJK fonts installedEmpty boxes
⏱️ Pages that never finish loadingSoft waits, hard timeouts, retriesRun hangs for minutes
💸 Failed captures (404, blocked, timeout)FreeOften still billed

🚀 How to take a website screenshot (3 steps)

  1. Open the Input tab and paste one or more URLs (one per line, or upload a CSV/TXT list).
  2. Pick a format (PNG, JPEG, WebP or PDF) and a device. The defaults (full page, cookie banners removed, popups closed, lazy content loaded) work for most sites.
  3. Click Start. Each URL becomes a row in the Output tab with a screenshotUrl you can open, download or pass to your app.

💰 How much does a screenshot cost?

$0.85 per 1,000 successful captures, plus Apify platform usage (compute and storage for your run). Failed captures are free.

  • One PNG, JPEG or WebP screenshot, or one PDF, is one screenshot-captured event ($0.00085).
  • Pages that fail (HTTP 404/500, bot-protection page, timeout, blank page, element not found) are listed in the dataset with the reason and are not charged.
  • You also pay a small Actor start fee ($0.00005 per GB of memory allocated to the run, minimum one event) and the platform usage your run actually consumes. Usage depends on page complexity, image size and the memory you choose.
  • You can set Maximum cost per run in the run options; the Actor stops cleanly when it's reached.

📥 Input example

{
"urls": [
{ "url": "https://apify.com" },
{ "url": "https://www.bbc.com" },
{ "url": "https://github.com" }
],
"format": "png",
"fullPage": true,
"device": "desktop",
"cookieBanners": "accept",
"scrollToBottom": true,
"blockAds": false
}

More recipes:

  • Above-the-fold thumbnail for link previews (1200×630 JPEG): "fullPage": false, "width": 1200, "height": 630, "format": "jpeg", "quality": 80
  • Mobile screenshot: "device": "mobile" (iPhone, 3× pixel density, mobile user agent)
  • URL to PDF: "format": "pdf", "pdfFormat": "A4", "pdfMargin": "10mm" — or "pdfSinglePage": true for one long page
  • Only the pricing table: "selector": "#pricing"
  • Wait for a chart to render: "waitForSelector": ".chart-ready", "delay": 2000
  • Remove a chat widget: "hideSelectors": ["#intercom-container", ".drift-frame-controller"]
  • HTML to image / HTML to PDF: put your markup in "html"

📤 Output example

Every URL produces one dataset row (successful or not), so you always know what happened:

{
"url": "https://www.theguardian.com/international",
"status": "SUCCEEDED",
"screenshotUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/theguardian-com-international-1a2b3c4d5e.png",
"key": "theguardian-com-international-1a2b3c4d5e.png",
"format": "png",
"device": "desktop",
"finalUrl": "https://www.theguardian.com/international",
"httpStatus": 200,
"pageTitle": "News, sport and opinion from the Guardian's global edition",
"imageWidth": 1440,
"imageHeight": 16000,
"fileSizeBytes": 8123456,
"truncated": true,
"cookieBanner": { "cmp": "Sourcepoint-frame", "action": "accepted" },
"popupsClosed": 0,
"attempts": 1,
"timings": { "navigationMs": 1900, "consentMs": 650, "scrollMs": 5900, "captureMs": 2300, "totalMs": 12700 }
}

A failed row looks like this (and costs nothing):

{ "url": "https://example.com/missing", "status": "FAILED", "errorCode": "HTTP_404", "errorMessage": "The page responded with HTTP 404. Not charged. …", "attempts": 1 }

Error codes: HTTP_4xx/5xx, BLOCKED_BY_BOT_PROTECTION, TIMEOUT, DNS_NOT_RESOLVED, CONNECTION_FAILED, SSL_ERROR, BLANK_PAGE, SELECTOR_NOT_FOUND, WAIT_FOR_SELECTOR_TIMEOUT, CUSTOM_JS_ERROR, INVALID_URL.

The files themselves are in the run's key-value store; the Output tab shows a thumbnail table.

🔌 Use it as a screenshot API

Run it synchronously and get the dataset back in one call:

curl -X POST "https://api.apify.com/v2/acts/faisal_ahmed1931~website-screenshot-pdf/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"urls":[{"url":"https://example.com"}],"fullPage":false,"format":"jpeg"}'

The response is returned only after every file is stored, so screenshotUrl is ready to fetch. You can also use the JavaScript/Python clients, schedules (e.g. daily screenshots for website change monitoring), webhooks, Make, Zapier, n8n, or the Apify MCP server so AI agents (Claude, ChatGPT, Cursor) can "see" web pages.

🧠 Who uses website screenshots?

  • SEO & marketing agencies: client reports, competitor homepages, SERP landing pages
  • Website change monitoring & archiving: scheduled full-page captures as evidence
  • Link previews & directories: above-the-fold thumbnails at scale
  • QA & visual regression: desktop + mobile captures of every release
  • AI agents: give an LLM a screenshot or a PDF of any page
  • Compliance: PDF copies of terms, prices and ads as published

⚙️ Settings reference (short)

  • Full page / viewport: full page is cut at Max full-page height (default 16,000 px) so infinite-scroll feeds can't explode; truncated: true tells you when that happened.
  • Cookie banners: accept (default — clicks "Accept all" like a normal visitor, so the content is always visible), reject (privacy-first; some European news sites then show a "subscribe or accept" wall instead of the article), hide (no clicks), off. Powered by DuckDuckGo's open-source Autoconsent rules, plus fallbacks that click a clearly labelled accept button or hide leftover consent bars.
  • Popups: newsletter / membership modals are closed by default (closePopups).
  • Sticky elements: keep (default), unstick, hide.
  • Waiting: waitUntil (load / DOM ready / network idle — applied softly so chatty pages can't hang), delay, waitForSelector, max scroll time.
  • Proxy: optional Apify Proxy (residential helps on sites that block data-center IPs).

❓ FAQ

Will I be charged if a page fails? No. Only rows with status: "SUCCEEDED" are charged. Failed rows tell you why.

Why did a site fail with BLOCKED_BY_BOT_PROTECTION or HTTP 403? Some sites refuse automated browsers (Cloudflare challenge, DataDome, explicit bot bans). This Actor waits for ordinary browser checks to finish but does not solve CAPTCHAs or disguise itself. You can try a residential proxy; if the site prohibits automated access, respect that.

The cookie banner is still visible on one site. Open an issue with the URL — new consent tools appear all the time and we add rules quickly. Meanwhile use hideSelectors or customCss.

My page shows a loading spinner. Add waitForSelector for an element that appears when the content is ready, or increase delay.

Can I screenshot pages behind a login? Not supported. Only capture pages you are allowed to access.

Is it legal to screenshot websites? You supply the URLs and are responsible for having the right to capture them and for complying with each site's terms of service, robots rules, copyright and privacy law. Don't use the Actor to collect personal data without a legal basis.

🐞 Support

Found a site where the screenshot isn't perfect? Open an issue in the Issues tab with the URL and your input — issues are answered quickly, and fixes ship as new builds.


Open-source components: DuckDuckGo Autoconsent (MPL-2.0), Ghostery adblocker (MPL-2.0) with EasyList/EasyPrivacy filter lists (downloaded at build time; GPLv3 / CC BY-SA 3.0), Crawlee & Playwright (Apache-2.0), sharp (Apache-2.0).