Website Screenshot and URL/HTML to PDF Renderer avatar

Website Screenshot and URL/HTML to PDF Renderer

Pricing

from $3.00 / 1,000 screenshot or pdf captureds

Go to Apify Store
Website Screenshot and URL/HTML to PDF Renderer

Website Screenshot and URL/HTML to PDF Renderer

Pricing

from $3.00 / 1,000 screenshot or pdf captureds

Rating

0.0

(0)

Developer

Bravona

Bravona

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

21 days ago

Last modified

Features

Limited permissions

Share

Website Screenshot and URL/HTML to PDF Renderer turns public web pages or your own raw HTML into PNG, JPEG or WebP screenshots (full page or viewport) or print-ready PDFs. Each file is saved to the run's key-value store, and a dataset record links to it, with its size, dimensions, page count and HTTP status.

You pay only for captures that succeed. Pages that fail, time out, sit behind a bot wall or a login, or point to a private address get an error record and are never charged.

What does it do?

  • Screenshots: full scrollable page (up to 30,000 px) or just the viewport, or one element (captureSelector). Choose PNG, JPEG or WebP and set the quality.
  • PDFs from any URL or HTML: A4, Letter, Legal, A3, A5 or Tabloid; portrait or landscape; margins; print backgrounds; print or screen CSS; scale; and a page cap.
  • Raw HTML to PNG/PDF. Good for invoices, reports, receipts and email previews. Relative links resolve against your base URL.
  • Devices: custom viewport (320–3840 × 240–2160) and 1×, 1.5×, 2× or 3× scale, or presets for desktop, HD desktop, retina laptop, iPhone 15 Pro, Pixel 5 and iPad Pro 11.
  • Waiting: DOM content loaded, load, or network idle (the default). You can also wait for a CSS selector or add a fixed delay. Lazy images are loaded by scrolling first.
  • Clean captures: optional cookie-banner hiding (CSS only; nothing is clicked or accepted), your own hide selectors and injected CSS. Ads and trackers are blocked by default.
  • Safe by design: private, internal, loopback and cloud-metadata addresses are refused, including through redirects, meta refresh and DNS. robots.txt is respected by default. Bot walls, CAPTCHAs and login pages are detected and reported, never bypassed.

Who is it for?

  • Marketers and SEO teams: archiving pages and competitor monitoring.
  • QA teams: visual checks across viewports.
  • Developers: generating PDFs from HTML templates.
  • Automation builders: anyone who needs "URL → image/PDF" as one step in a workflow (Make, Zapier, n8n, the API).

Input

FieldWhat it doesDefault
urlsPublic http(s) pages: plain strings "https://…" or { "url": "…" } objects (both work, mixed too)–
html, htmlBaseUrlOne raw HTML document (≤ 5 MB) and its base URL–
htmlDocumentsSeveral: [{ "name", "html", "baseUrl" }]–
formatpng, jpeg, webp or pdfpng
fullPageWhole page or viewport onlytrue
devicePresetcustom, desktop, desktopHd, laptopRetina, iPhone15Pro, pixel5, iPadPro11custom
viewportWidth / viewportHeight320–3840 / 240–21601280 / 800
deviceScaleFactor1, 1.5, 2, 31
qualityJPEG/WebP quality 1–10080
captureSelectorCapture one element only–
maxPageHeightFull-page height cap in CSS px (240–30000)20000
waitUntildomcontentloaded, load, networkidlenetworkidle
networkIdleTimeoutSecsLongest wait for idle; busy pages are captured anyway5
waitForSelectorSelector that must appear (else SELECTOR_TIMEOUT)–
delaySecsExtra wait before capture (0–30)0
scrollToLoadLazyContentScroll first so lazy images loadtrue
timeoutSecsHard limit per URL, load and capture included (5–180)60
hideCookieBannersHide common consent banners with CSSfalse
hideSelectors, injectCssYour own clean-up CSS–
blockAdsAndTrackersRefuse ~90 ad/analytics/tag-manager domainstrue
pdfPageSize, pdfLandscape, pdfMarginTop/Right/Bottom/Left, pdfPrintBackground, pdfMediaType, pdfScale, maxPdfPagesPDF layoutA4, portrait, 0, true, print, 1, 50
captureErrorPagesCapture HTTP 4xx/5xx pages (charged) instead of an error recordfalse
respectRobotsTxtSkip URLs robots.txt disallowstrue
maxCapturesSafety cap on sources per run (1–5000)100
maxConcurrency0 = automatic by memory0

Example:

{
"urls": ["https://example.com", { "url": "https://www.wikipedia.org" }],
"format": "pdf",
"pdfPageSize": "Letter",
"pdfMarginTop": "10mm", "pdfMarginBottom": "10mm",
"hideCookieBanners": true
}

Output

Files go in the run's default key-value store (capture-0001-example-com.png, …). There is one dataset record per source. Records arrive as captures finish; sourceIndex gives each one its position in the input:

{
"status": "ok", "sourceIndex": 0, "sourceType": "url", "source": "https://example.com",
"finalUrl": "https://example.com/", "httpStatus": 200, "title": "Example Domain",
"format": "png", "contentType": "image/png",
"fileKey": "capture-0000-example-com.png",
"fileUrl": "https://api.apify.com/v2/key-value-stores/<id>/records/capture-0000-example-com.png",
"sizeBytes": 34210, "widthPx": 1280, "heightPx": 800, "pageHeightCss": 800,
"heightTruncated": false, "pdfPageCount": null, "pdfTruncated": false,
"pageRequests": 2, "pageTransferBytes": 2021, "heavyPage": false,
"warnings": [], "billable": { "capture": 1, "heavy-page": 0 }, "errorCode": null, "errorMessage": null,
"loadMs": 812, "captureMs": 190, "processingMs": 1140, "capturedAt": "2026-11-04T18:00:00.000Z"
}

The OUTPUT record in the key-value store sums up the run: sources, ok/failed counts, errors by code, billable and charged events, the charge-limit flag, totals, memory and browser launches.

Error codes (never charged)

CodeMeaning
INVALID_URL, INVALID_HTMLNot an http(s) URL, or the HTML is empty or over 5 MB
BLOCKED_ADDRESSThe URL, a redirect or meta refresh, or its DNS points to a private/internal/loopback/metadata address
ROBOTS_DISALLOWED, ROBOTS_UNAVAILABLErobots.txt forbids the URL or could not be read
AUTH_REQUIREDHTTP 401/407 or a login page
CAPTCHA_OR_BOT_WALLA CAPTCHA or bot-protection page (Cloudflare, DataDome, PerimeterX, Akamai, …). It is reported, not bypassed
HTTP_ERRORHTTP 4xx/5xx (unless captureErrorPages is on)
NETWORK_ERRORDNS, TLS or connection failure
UNSUPPORTED_CONTENTThe URL is a download or non-HTML file
TIMEOUTOver timeoutSecs
SELECTOR_TIMEOUT, SELECTOR_NOT_FOUNDwaitForSelector never appeared / captureSelector matched nothing
CAPTURE_FAILEDThe browser could not produce the file
CHARGE_LIMIT_REACHEDYour max total charge was reached; the rest were skipped

Pricing

Pay per event. Failures cost nothing.

EventPrice
Actor Start$0.00005 per run, per GB of memory (2 GB default: $0.0001)
Screenshot or PDF captured (primary)$0.003 per successful screenshot or PDF
Heavy page add-on (3 MB+)$0.004, added to a capture when the page downloaded at least 3 MB over the network before capture (pageTransferBytes on the record; blocked ads and trackers not counted)

A light page costs $0.003; a heavy page $0.007. Failed sources are not charged. See PRICING.md for details.

Works on Apify's free plan; you pay a tiny start fee plus only for results returned (each captured screenshot or PDF, and the add-on for heavy pages). Charges come out of your Apify account's prepaid usage; on the Free plan, once that monthly usage is used up, runs stop until the next billing cycle.

Limits and notes

  • Only public, logged-out pages. There is no login, cookie or proxy input, and the actor never solves CAPTCHAs.
  • WebP images are cut at 16,383 px tall (a WebP format limit), with a warning. Use PNG or JPEG for taller pages.
  • Heavy news and ad-funded sites often hit bot walls, or load slowly and time out. They return error records and aren't charged.
  • One output format per run. Run twice to get both a PNG and a PDF.
  • Memory: 2 GB (default) runs 2 pages at a time. More memory runs more pages in parallel but costs about the same per capture.

Capture only pages you are allowed to copy. Respect sites' terms of service and copyright. The actor identifies itself in its user agent and follows robots.txt by default.