URL to Screenshot avatar

URL to Screenshot

Pricing

from $12.00 / 1,000 results

Go to Apify Store
URL to Screenshot

URL to Screenshot

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

2

Total users

2

Monthly active users

2 days 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.