Website Screenshot & PDF API (Full Page, HTML to Image) avatar

Website Screenshot & PDF API (Full Page, HTML to Image)

Pricing

from $3.00 / 1,000 screenshots

Go to Apify Store
Website Screenshot & PDF API (Full Page, HTML to Image)

Website Screenshot & PDF API (Full Page, HTML to Image)

Clean full-page screenshots and PDFs of any website, or of your own HTML (HTML to image and PDF). Cookie banners and chat widgets removed automatically. Desktop, laptop, tablet and phone in one run. JPEG, PNG, WebP or PDF.

Pricing

from $3.00 / 1,000 screenshots

Rating

0.0

(0)

Developer

Pagecraft Tools

Pagecraft Tools

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

10 hours ago

Last modified

Categories

Features

Limited permissions

Share

Website Screenshot & PDF API (Full Page, Any Device, HTML to Image)

Capture clean, full-page screenshots and PDFs of any website in seconds. Paste in your URLs, pick your devices and get pixel-perfect images back, with cookie banners, consent pop-ups and chat widgets removed automatically. You can also paste your own HTML (an invoice, report, email or social card) and get it back as an image or PDF.

HTML to image demo: an invoice in HTML goes in, a PNG of it comes out

Quick start

  1. Press Try for free. The form opens with a working example ({'url': 'https://apify.com'}, {'url': 'https://www.bbc.co.uk'}).
  2. Replace it with your own URLs.
  3. Press Start. Results appear as they are found; download them as Excel, CSV or JSON, or use the API.

A result looks like this (some columns):

urlsourcetitlestatusCodedevice
https://apify.comurlApify: Full-stack web scraping and data...200iphone

Ideal for website monitoring, design reviews, client reports, archiving, competitor tracking, social previews, QA and feeding visual context to AI agents.

Why this screenshot tool?

  • 🍪 No cookie banners. Accepts or hides consent dialogs from OneTrust, Cookiebot, Didomi, Quantcast, Usercentrics, Google, Sourcepoint and many more, including ones inside iframes and Shadow DOM. Works in English, German, French, Spanish, Italian, Dutch and more.
  • 📱 Every device in one run. Desktop, laptop, MacBook Retina, widescreen, iPad, iPhone 15 Pro, Pixel 7 or any custom size. Pick several and get a full responsive check per URL.
  • 📜 True full-page captures. Scrolls the page first so lazy-loaded images and sections actually appear.
  • 🧹 Clean output. Chat bubbles (Intercom, Drift, HubSpot, Zendesk, Crisp, Tawk) hidden, ads, trackers and autoplay video blocked, scrollbars and caret removed, animations frozen.
  • 🖼️ JPEG, PNG, WebP or PDF. Optimised compression, optional resizing for thumbnails, 1×, 2× or 3× pixel density.
  • 🧾 HTML to image and HTML to PDF. Paste an HTML document instead of a URL, or send a list of them through the API (htmlDocuments), and get PNG, JPEG, WebP or PDF files with the same options.
  • 🌙 Dark mode, custom CSS, wait-for-element, custom delays, browser language and time zone.
  • 💸 Fair pricing. Quick failures are retried automatically; a page that still fails or blocks us costs a small fee, far below a capture.
  • 🤖 AI-agent ready. Works through the Apify API and the Apify MCP server, so Claude, ChatGPT, Cursor and other agents can take screenshots for you.

How to use it

  1. Add one or more URLs (example.com works without https://), or paste HTML into the HTML field and clear the URLs.
  2. Choose devices and an output format.
  3. Click Start. Each screenshot appears in the results table with a preview and a direct download link.

Input example

{
"urls": [{ "url": "https://apify.com" }, { "url": "https://www.bbc.co.uk" }],
"devices": ["desktop", "iphone"],
"format": "jpeg",
"captureMode": "fullPage",
"removeCookieBanners": true
}

HTML to PDF, through the API (each document becomes one PDF):

{
"urls": [],
"htmlDocuments": ["<html><body><h1>Invoice 1001</h1><p>Total: £120.00</p></body></html>"],
"format": "pdf",
"pdfFormat": "A4"
}

Output example

Each capture produces one dataset item (for HTML, source is html, htmlDocument is its number in your list, and url is empty). The image itself is stored in the run's key-value store, and screenshotUrl links straight to it.

{
"url": "https://apify.com",
"source": "url",
"htmlDocument": null,
"finalUrl": "https://apify.com/",
"title": "Apify: Full-stack web scraping and data extraction platform",
"statusCode": 200,
"device": "iphone",
"deviceLabel": "iPhone 15 Pro",
"format": "jpeg",
"captureMode": "fullPage",
"screenshotUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/0001-apify-com-iphone.jpg",
"width": 1179,
"height": 15999,
"fileSizeBytes": 412530,
"cookieBannerDismissed": true,
"loadTimeMs": 6120,
"capturedAt": "2026-10-27T10:00:00.000Z",
"error": null
}

Download results as JSON, CSV, Excel or HTML, or fetch them with the API.

Options at a glance

OptionWhat it does
HTMLTurn your own HTML into an image or PDF instead of a URL
DevicesDesktop, laptop, MacBook Retina, widescreen, iPad, iPhone, Android, custom
What to captureFull page, visible area only, or a single element by CSS selector
Output formatJPEG (default, fastest), PNG (lossless), WebP (smallest), PDF
Remove cookie bannersOn by default
Hide chat widgets and popupsOn by default
Block ads, trackers and videoOn by default
Dark modeRenders the site's dark theme if it has one
Resize outputShrink to a set width for thumbnails
Pixel density1×, 2× or 3×
PDF optionsPaper size, landscape, backgrounds, screen or print styles
TimingWait until loaded or network idle, extra delay, wait for an element
AdvancedExtra elements to hide, custom CSS, language, time zone, proxy, retries

Pricing

Pay per capture, with no platform usage charges on top. You pay less for short captures, because they are much cheaper to make:

CaptureFree planBronzeSilverGold
Screenshot (visible area, an element, or a page up to 3 screens tall, captured in under 30 seconds with under 3 MB downloaded)$5 / 1,000$4 / 1,000$3.50 / 1,000$3 / 1,000
Full-page screenshot (taller pages), PDF, or a heavy page that takes over 30 seconds or downloads more than 3 MB to capture$12 / 1,000$10 / 1,000$9 / 1,000$8 / 1,000
  • Per run: a tiny start fee of $0.001 per GB of memory ($0.002 at the default 2 GB).
  • Failed or blocked pages cost $3 / 1,000 per started 20 seconds of work (most failures take one unit), because they still use a browser. Each result shows how it was billed in billedAs, and how long it took in loadTimeMs.
  • Limits: each page has an overall limit of 75 seconds, and after 6 MB of downloads its remaining images, scripts and fonts are skipped. Each result shows downloadedMb. If most pages in a run fail, the run stops early so you don't wait on a bad list.

Set Maximum cost per run to cap your spend: the tool only processes as many pages as your limit covers. Batch many URLs into one run for the best value.

Use the API

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

Tips

  • Very long pages are cut off at 15,000 px by default (adjustable). High pixel densities are capped at 16,000 output pixels tall so files stay usable.
  • For single-page apps that load slowly, choose Network idle or add Wait for element.
  • If a site blocks automated browsers, try the datacenter proxy option. Pages that answer with a block (HTTP 401, 403, 429 or 503) are returned with an error and the small failed-capture fee.
  • Need it faster? Give the run more memory: the tool captures one page in parallel per GB.

Responsible use

Only capture pages you're allowed to access. Private and local network addresses are blocked. This tool doesn't log in to websites or collect personal data from pages.

Feedback

Found a page that doesn't capture cleanly? Open an issue on the Issues tab with the URL and it will be looked at quickly.

Use with AI agents (MCP)

Connect this tool to Claude, Cursor, VS Code or any other MCP client through the Apify MCP server. To load only this tool, use this server URL:

https://mcp.apify.com?tools=pagecraft/website-screenshot-pdf

Then ask, for example: "Screenshot the pricing pages of these three competitors on desktop and mobile". The agent gets back image or PDF links for each page and device that the agent can show or analyse. Each call is charged per event at the prices in Pricing above. Agents without an Apify account can also pay per run through Apify's agentic payments.

Workflows with other Pagecraft tools

Pagecraft tools are built to work together. Ideas that use this one:

Check a domain before you buy, partner or send. Due diligence on any domain in minutes.

  1. WHOIS Lookup: Age, expiry date and registrar.
  2. DMARC, SPF & DKIM Checker: SPF, DKIM and DMARC email security records.
  3. Company Data Enrichment from Domain: Who runs the site and how to contact them.
  4. This tool: A dated screenshot or PDF of the site as evidence.

More Pagecraft tools

⌂ 换网址