VOOZH about

URL: https://apify.com/hulkscrape/url-to-screenshot

โ‡ฑ URL to Screenshot ยท Apify


Pricing

from $12.00 / 1,000 results

Go to Apify Store

An easy way to capture a screenshot of a full webpage

Pricing

from $12.00 / 1,000 results

Rating

0.0

(0)

Developer

๐Ÿ‘ Kulwinder

Kulwinder

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

0

Monthly active users

2 months ago

Last modified

Share

๐Ÿ“ธ URL to Screenshot

Capture full-page or viewport screenshots of any public webpage โ€” clean, fast, and configurable.


Overview

URL to Screenshot is an Apify Actor that takes a URL and returns a screenshot of the page. It supports multiple image formats, device presets, dark mode, ad blocking, and cookie banner removal โ€” so you always get a clean, accurate capture.

Perfect for visual regression testing, web archiving, content previews, monitoring, and more.


Features

  • ๐Ÿ“„ Full-page or viewport-only screenshots
  • ๐Ÿ–ผ๏ธ Output in jpeg, png, webp, or pdf
  • ๐Ÿ“ฑ Device presets: mobile, tablet, desktop, 4K
  • ๐Ÿšซ Blocks ads, trackers, and cookie banners by default
  • ๐ŸŒ™ Dark mode support
  • ๐ŸŽจ Transparent background option
  • ๐Ÿ”’ Proxy support for anti-bot protection

Input

The actor accepts a JSON input object. Only url is required.

Example Input

{
"url":"https://example.com",
"fullPage":true,
"fileType":"png",
"viewportDevice":"desktop",
"blockAds":true,
"blockTrackers":true,
"blockCookiesBanner":true,
"darkMode":false,
"quality":90
}

Input Parameters

ParameterTypeDefaultRequiredDescription
urlstringโ€”โœ… YesThe URL of the page to screenshot. Must start with http:// or https://.
fullPagebooleantrueNoWhen true, captures the full scrollable page instead of just the visible viewport.
fileTypestring"jpeg"NoOutput image format. One of: jpeg, png, webp, pdf.
blockAdsbooleantrueNoRemoves ad banners and sponsored content before capturing.
blockTrackersbooleantrueNoDisables analytics scripts and tracking pixels for faster, more private captures.
blockCookiesBannerbooleantrueNoHides or removes GDPR/CCPA cookie consent banners for a cleaner output.
viewportDevicestring"desktop"NoSimulates a device screen size. One of: mobile, tablet, desktop, 4K.
viewportWidthinteger0NoCustom viewport width in pixels (0โ€“7680). Overrides viewportDevice if set.
viewportHeightinteger0NoCustom viewport height in pixels (0โ€“7680). Overrides viewportDevice if set.
omitBackgroundbooleanfalseNoRenders the screenshot with a transparent background. Only effective with png.
darkModebooleanfalseNoRequests the site's CSS dark theme via prefers-color-scheme: dark.
qualityinteger100NoImage quality from 1 to 100. Not applicable to png.
proxyConfigurationobject{ "useApifyProxy": false }NoProxy settings for bypassing anti-bot protection.

Parameter Details

url

The full URL of the page to capture. Must match the pattern:

https://example.com
http://sub.domain.co/path/to/page

fileType

Choose the output format based on your use case:

FormatBest For
jpegGeneral use, smaller file size
pngHigh quality, transparency support
webpModern compression, smaller than jpeg
pdfDocument archiving, print-ready output

viewportDevice vs viewportWidth / viewportHeight

Use viewportDevice to quickly simulate a known device. If you need exact dimensions, set viewportWidth and/or viewportHeight โ€” these will override viewportDevice.

DeviceApproximate Width
mobile~375px
tablet~768px
desktop~1280px
4K~3840px

quality

Controls compression for jpeg and webp outputs. Has no effect on png, which is always lossless.

proxyConfiguration

Pass Apify Proxy settings to route requests through a proxy. Example:

{
"proxyConfiguration":{
"useApifyProxy":true,
"apifyProxyGroups":[
"RESIDENTIAL"
]
}
}

Output

The actor saves the screenshot to the Apify Key-Value Store under the key OUTPUT. You can retrieve it via the Apify API or the Actor run detail page.

Example API URL to fetch the output:

https://api.apify.com/v2/key-value-stores/{storeId}/records/OUTPUT

Usage Examples

Minimal โ€” just a URL

{
"url":"https://news.ycombinator.com"
}

Full-page PNG with clean rendering

{
"url":"https://example.com",
"fullPage":true,
"fileType":"png",
"blockAds":true,
"blockCookiesBanner":true
}

Mobile viewport screenshot

{
"url":"https://example.com",
"viewportDevice":"mobile",
"fileType":"jpeg",
"quality":80
}

Dark mode, custom resolution

{
"url":"https://example.com",
"darkMode":true,
"viewportWidth":1920,
"viewportHeight":1080,
"fileType":"png"
}

Limits & Notes

  • viewportWidth and viewportHeight accept values between 0 and 7680.
  • quality must be between 1 and 100; values outside this range will be rejected.
  • The omitBackground option only produces visible transparency in png output.
  • Cookie banner removal targets common GDPR/CCPA overlays; some custom implementations may not be detected.

You might also like

Website Screenshot API - Page Screenshot Generator

code-node-tools/website-screenshot-api

Website screenshot API to capture any webpage as an image. This screenshot API supports full page, viewport, and element screenshots. Website screenshot generator API for automated website screenshot capture, visual testing, monitoring, and thumbnail generation. Reliable page screenshot API.

7

Website Screenshot Generator

apify/screenshot-url

Create a screenshot of a website based on a specified URL. The screenshot is stored as the output in a key-value store. It can be used to monitor web changes regularly after setting up the scheduler.

Screenshot Downloader

scrapeai/screenshot-downloader

Screenshot Downloader lets you capture and download high-quality webpage screenshots instantly. Save full or partial page images from any URL with ease โ€” fast, simple, and perfect for developers, designers, and content creators.

Website Screenshot

i-scraper/website-screenshot

โšก๏ธ Website screenshot: easy-peasy screenshots, PNG & JPG formats

Ultimate Webpage Screenshot

yasir-on-apify/ultimate-webpage-screenshot

Ultimate Webpage Screenshot is a powerful Apify tool for capturing high-quality screenshots of any webpage using advanced browser emulation. Ideal for web scraping, monitoring, and automation, it supports full page screenshots, custom browser presets, and options like disabling cookie popups.

Store Screenshot Url

dainty_screw/store-screenshot-url

Effortlessly capture and extract URL screenshots with the Store Screenshot URL Extractor. This powerful Apify actor is designed to streamline your data collection process, providing high-quality snapshots of web pages with ease. Ideal for market research, content verification, and SEO analysis, this

๐Ÿ‘ User avatar

codemaster devops

88

5.0

Multi-Resolution Screenshot Tool

incredible_moment/screenshot-tool

Automate website screenshot capture across Mobile, Tablet, and Desktop viewports instantly. Supports full-page capture, custom resolutions, and Base64 output. Ideal for QA and UI testing.

Related articles

How to take screenshots and generate PDFs with Puppeteer
Read more