Carabain Digital Apify Actors

Website Screenshot & PDF

Website Screenshot & PDF captures web pages as full-page PNG or JPEG screenshots or as PDFs with selectable text, for one URL or a long list. Cookie banners and popups are removed first, and pages behind Cloudflare or DataDome are retried through a built-in residential proxy, for archiving, visual monitoring and reports.

Run it on ApifyCreate a free Apify account

The Apify Free plan includes $5 of credit every month, no credit card needed.

One captured page in your dataset
fileUrl
Download link of the screenshot or PDF (run's key-value store)
url
Requested page URL
title
Page title
statusCode
HTTP status of the page
format
png, jpeg or pdf
fileSizeBytes
File size in bytes
viaResidentialProxy
Captured through the residential proxy

and 5 more fields, see Output

Who it is for

Compliance and legal teams who keep dated records of terms, prices and claims. SEO and marketing agencies who add page captures to audits and client reports. Developers and AI builders who need a rendered image of a page for visual checks or a vision model.

What you can do with the data

Keep dated records of what a page said

Print terms, price pages or ads to PDF with format set to pdf. The browser lays the page out for A4 or Letter with real, searchable text, and the dataset row stores capturedAt, the final URL and the HTTP status next to the file.

Compare pages across screen sizes

Run the same URLs with device set to desktop, tablet and mobile, or a custom viewportWidth. Schedule it and compare the images over time to catch layout breaks on your own site or redesigns at a competitor.

See the local version of a site

Set proxyCountry to a country such as DE or JP to load every page through a residential IP there. You see the language, prices and ads a local visitor sees, and pages that are blocked from other countries.

Give an AI model the rendered page

A vision model can look at the page as a visitor sees it, instead of raw HTML. Pass the fileUrl of each capture to the model, or let an agent call the Actor through the Apify MCP server.

Tutorial

How to save a list of web pages as A4 PDFs

  1. Sign up at Apify for free, then open the Actor with the Run it on Apify button on this page.
  2. Paste the URLs into startUrls, or upload a text or CSV file with one URL per line.
  3. Set format to pdf and pdfFormat to A4. Turn on pdfLandscape for wide tables.
  4. If a page loads content late, set waitForSelector to an element that appears last, such as .results-table, or raise waitSeconds.
  5. Add CSS selectors to hideSelectors for anything else to remove, such as a chat widget.
  6. Start the run. Each row in the Output tab links to its PDF through fileUrl; download them all from the run's key-value store.

Examples

Full-page screenshots of a list of websites

A full-page PNG of every URL in the list, with cookie banners and popups removed, also for sites behind Cloudflare. Paste your own URLs. Download the images from the Output tab or by API.

{
  "startUrls": [
    {
      "url": "https://www.capterra.com/customer-relationship-management-software/"
    },
    {
      "url": "https://www.bbc.com/news"
    },
    {
      "url": "https://www.g2.com/categories/crm"
    }
  ],
  "format": "png",
  "fullPage": true
}
Run this input from the Apify API (curl)
curl -X POST 'https://api.apify.com/v2/acts/carabain-digital~website-screenshot-pdf/run-sync-get-dataset-items' \
  -H "Authorization: Bearer $APIFY_TOKEN" -H 'Content-Type: application/json' \
  -d '{"startUrls": [{"url": "https://www.capterra.com/customer-relationship-management-software/"}, {"url": "https://www.bbc.com/news"}, {"url": "https://www.g2.com/categories/crm"}], "format": "png", "fullPage": true}'
Run it from Python
# pip install apify-client
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("carabain-digital/website-screenshot-pdf").call(run_input={'startUrls': [{'url': 'https://www.capterra.com/customer-relationship-management-software/'}, {'url': 'https://www.bbc.com/news'}, {'url': 'https://www.g2.com/categories/crm'}], 'format': 'png', 'fullPage': True})
items = client.dataset(run["defaultDatasetId"]).list_items().items

Save web pages as PDF documents

Every URL printed to an A4 PDF with selectable text and page breaks, backgrounds kept and cookie banners removed. For archiving, compliance records and offline reading. Paste your own URLs.

{
  "startUrls": [
    {
      "url": "https://en.wikipedia.org/wiki/Web_scraping"
    },
    {
      "url": "https://www.capterra.com/p/155928/Zoho-CRM/"
    }
  ],
  "format": "pdf",
  "pdfFormat": "A4"
}
Run this input from the Apify API (curl)
curl -X POST 'https://api.apify.com/v2/acts/carabain-digital~website-screenshot-pdf/run-sync-get-dataset-items' \
  -H "Authorization: Bearer $APIFY_TOKEN" -H 'Content-Type: application/json' \
  -d '{"startUrls": [{"url": "https://en.wikipedia.org/wiki/Web_scraping"}, {"url": "https://www.capterra.com/p/155928/Zoho-CRM/"}], "format": "pdf", "pdfFormat": "A4"}'
Run it from Python
# pip install apify-client
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("carabain-digital/website-screenshot-pdf").call(run_input={'startUrls': [{'url': 'https://en.wikipedia.org/wiki/Web_scraping'}, {'url': 'https://www.capterra.com/p/155928/Zoho-CRM/'}], 'format': 'pdf', 'pdfFormat': 'A4'})
items = client.dataset(run["defaultDatasetId"]).list_items().items

Set APIFY_TOKEN to your token from Apify Console, Settings, Integrations. The curl call waits up to 5 minutes; for bigger runs see running from the API and Python. AI agents can call it through the Apify MCP server: https://mcp.apify.com/?actors=carabain-digital/website-screenshot-pdf.

Input

FieldTypeWhat it does
startUrls
Page URLs
arrayThe pages to capture, one file per page. Paste a list, upload a text or CSV file, or link a file with URLs. example.com without https:// also works.
format
Format
stringScreenshot as PNG or JPEG, or a PDF printed by the browser with real, selectable text and page breaks.
Values: png, jpeg, pdf
Default: "png"
fullPage
Full page
booleanCapture the whole page down to the footer (lazy images are loaded first). Off = only the first screen. Very long pages are cut at 30,000 pixels. Screenshots only.
Default: true
device
Device
stringScreen size the page is rendered at. Screenshots only; a PDF is laid out for its paper size.
Values: desktop, laptop, tablet, mobile
Default: "desktop"
viewportWidth
Custom width (px)
integerOverrides the device width. Example: 1440.
viewportHeight
Custom height (px)
integerOverrides the device height (the first screen when Full page is off). Example: 900.
jpegQuality
JPEG quality
integerLower = smaller files. JPEG only.
Default: 80
pdfFormat
PDF paper size
stringPaper size of the PDF.
Values: A4, Letter, Legal, A3, A5
Default: "A4"
pdfLandscape
Landscape
booleanPrint the PDF in landscape orientation.
Default: false
pdfMarginInches
Margin (inches)
numberPage margin on all sides. Example: 0 for edge to edge.
Default: 0.4
pdfBackground
Print backgrounds
booleanKeep background colours and images, as on screen.
Default: true
dismissCookieBanners
Accept cookie banners
booleanClick the "Accept all" button of cookie banners (OneTrust, Cookiebot, Didomi, Usercentrics and others, in many languages) and hide what remains.
Default: true
hidePopups
Hide popups
booleanClose newsletter modals, sign-in prompts and dimmed overlays that cover the page. Small fixed headers and chat buttons stay.
Default: true
hideSelectors
Hide elements (CSS selectors)
arrayExtra elements to hide before capturing. Example: .ad-banner, #chat-widget.
waitForSelector
Wait for element (CSS selector)
stringWait until this element appears (up to 30 seconds), for pages that load content late. Example: .results-table.
waitSeconds
Extra wait (seconds)
numberPause before capturing, after the page has loaded and banners are closed. Raise it for animations or charts.
Default: 1
proxyCountry
Capture from country
stringLoad every page through a residential IP in this country, to capture the local version of a site (language, prices, geo-blocked pages). Each page through the residential IP costs the Unblocked page add-on, $5.00 per 1,000. Empty = pages load directly, and only a page that blocks the run is retried through a US residential IP automatically (and charged as Unblocked page when that works).
Values: US, GB, DE, FR, NL, BE, ES, IT, CA, AU, JP, BR, IN
maxItems
Max pages
integerCapture at most this many of the URLs. Example: 100.

Output

One dataset item per captured page. Export the dataset as JSON, CSV, Excel or XML from Apify Console or the API.

FieldTypeDescription
urlstringRequested page URL
finalUrlstringURL after redirects
titlestringPage title
statusCodeintegerHTTP status of the page
formatstringpng, jpeg or pdf
fileUrlstringDownload link of the screenshot or PDF (run's key-value store)
fileKeystringKey of the file in the run's key-value store
fileSizeBytesintegerFile size in bytes
viewportstringBrowser viewport, width x height in CSS pixels
fullPagebooleanWhole page (true) or the first screen (false); null for PDFs
viaResidentialProxybooleanCaptured through the residential proxy
capturedAtstringCapture time, ISO 8601 UTC

Frequently asked questions

What does it cost to capture 1,000 pages?

Each captured page costs $5 per 1,000, so 1,000 pages cost $5, plus a small start fee per run. A page that needed the residential proxy, because it blocked the direct load or because you set proxyCountry, adds $5 per 1,000 as the Unblocked page add-on. If 200 of the 1,000 pages needed it, that adds $1. Failed pages are not charged.

Do I need my own proxy for sites behind Cloudflare?

No. Each page loads directly first. When the site answers with a block or a challenge page, the Actor loads it again through a US residential IP that is built in, and tries a second one if needed. You pay the add-on only when that capture succeeds.

Which pages cannot be captured?

Pages that need a login, and pages with a captcha that must be solved by hand. Very long pages are cut at 30,000 pixels, the most a browser can paint in one image.

How long are the files kept?

Captures live in the run's storage, and Apify keeps that for 7 days on the Free plan, longer on paid plans. Download them or copy them elsewhere if you need them for longer. The links work without an API token.

Is a cookie banner sometimes still visible?

The Actor clicks Accept all on common banners in many languages and hides what is left. If one still shows on a site, add its CSS selector to hideSelectors and run again.

Is the PDF an image or real text?

Real text. The browser prints the page like Save as PDF, with selectable text, links and page breaks. Sites with a print stylesheet look like their printed version.

Is it legal to take screenshots of websites?

The Actor opens only pages that anyone can see without logging in. A capture can show personal data, which falls under rules such as the GDPR, and copyrighted content limits what you may publish, so how you store and use the files matters. Check your use case with a lawyer. More: Is web scraping legal?