Use Playwright when you need browser-level control inside your own infrastructure; use a hosted API when you want an HTTPS request instead of maintaining Chromium. In Python, Playwright can save full-page or element images and return bytes for processing. Hosted services such as ScreenshotOne and ApiFlash handle browser operations remotely. For the simplest production endpoint, ScreenshotNeo adds consent and popup cleanup, usage-aware billing, and an MCP server for AI agents.
Choose the right Python screenshot approach
| Approach | Runs where | Authentication | Best for | Main trade-off |
|---|---|---|---|---|
| Playwright Python | Your machine, CI, or server | None for the browser; your own access to target sites | Precise interaction, custom waits, locator or clip captures | You install and operate a browser |
| ScreenshotOne | Managed service | Access key; signed requests can use a secret key | HTTP-based rendering with hosted browser features | Requires a network request and vendor credentials |
| ApiFlash | Managed service | Access key | Simple URL-to-image GET or POST requests | Less local browser control than Playwright |
| ScreenshotNeo | Managed API and MCP server | Access key | Clean production captures, automation, and AI-agent workflows | Requires an API request and account |
No controlled cross-provider benchmark establishes a universal speed, quality, or price winner. Select based on the control you need and the operational work you are willing to own.
Option 1: Capture a website with Playwright in Python
Playwright is the local, code-controlled route. Its Python API supports synchronous and asynchronous calls, full-page screenshots, image bytes, and screenshots of a locator or element.
Install the library and browser
python -m pip install playwright
python -m playwright install chromium
The browser install is required on a new development machine, CI runner, or container. Pin your Playwright version in your project so browser updates do not silently change rendering.
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
Save a full-page PNG
from playwright.sync_api import sync_playwright
TARGET = "https://example.com"
with sync_playwright() as p:
browser = p.chromium.launch()
page = browser.new_page(viewport={"width": 1440, "height": 900}, device_scale_factor=1)
page.goto(TARGET, wait_until="networkidle", timeout=60_000)
page.screenshot(path="screenshot.png", full_page=True)
browser.close()
full_page=True captures the scrollable document rather than only the initial viewport. wait_until="networkidle" waits for network activity to settle, but pages with analytics or live feeds may never become truly idle; use a bounded wait or a selector in those cases.
Capture bytes for post-processing
from pathlib import Path
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
browser = p.chromium.launch()
page = browser.new_page()
page.goto("https://example.com", wait_until="domcontentloaded")
screenshot_bytes = page.screenshot(type="jpeg", quality=85, full_page=True)
Path("screenshot.jpg").write_bytes(screenshot_bytes)
browser.close()
Byte capture lets you resize, hash, upload, or run image analysis without an intermediate browser file.
Capture one element
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
browser = p.chromium.launch()
page = browser.new_page()
page.goto("https://example.com", wait_until="domcontentloaded")
page.locator("header").screenshot(path="header.png")
browser.close()
Use a stable CSS selector or accessible locator. If the element is below the fold, Playwright scrolls it into view before capture. A missing or ambiguous selector is a code error, so test selectors against the page version you expect.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
Asynchronous capture
import asyncio
from playwright.async_api import async_playwright
async def main():
async with async_playwright() as p:
browser = await p.chromium.launch()
page = await browser.new_page()
await page.goto("https://example.com", wait_until="domcontentloaded")
await page.screenshot(path="async.png", full_page=True)
await browser.close()
asyncio.run(main())
The async API fits an asyncio service that captures several pages concurrently. Limit concurrency to the CPU and memory available to your browser workers.
Option 2: Use a managed Python screenshot API
A hosted API removes browser installation, patching, and process supervision. Your Python program sends a URL and options over HTTPS and receives image bytes or a result link.
ScreenshotOne with direct HTTP
ScreenshotOne documents GET https://api.screenshotone.com/take and a JSON POST form. Requests require an access key and HTTPS. Image formats return binary data; the service also accepts URL, HTML, and Markdown inputs and documents viewport, full-page, signatures, scripts, and blocking controls.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
import requests
params = {
"access_key": "YOUR_ACCESS_KEY",
"url": "https://example.com",
"format": "png",
"full_page": "true",
"viewport_width": 1440,
"viewport_height": 900,
}
r = requests.get("https://api.screenshotone.com/take", params=params, timeout=90)
r.raise_for_status()
with open("screenshotone.png", "wb") as f:
f.write(r.content)
ScreenshotOne Python SDK
The documented SDK installs with pip install screenshotone. It creates a client with an access key and secret key, builds TakeOptions.url(...), and can generate a signed URL or download an image stream.
python -m pip install screenshotone
from screenshotone import Client, TakeOptions
client = Client("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY")
options = TakeOptions.url("https://example.com").format("png").full_page(True)
image = client.take(options)
with open("screenshotone-sdk.png", "wb") as f:
f.write(image.content)
Check the SDK version’s exact method names before pinning production code; the HTTP endpoint is the stable fallback when you need to control every query parameter yourself.
Recommended Free Tools
ApiFlash
ApiFlash documents the HTTPS endpoint https://api.apiflash.com/v1/urltoimage. The required parameters are access_key and url. By default, the response is image data with appropriate content headers. Add response_type=json to receive a JSON document containing links to the screenshot.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
import requests
params = {
"access_key": "YOUR_ACCESS_KEY",
"url": "https://example.com",
"format": "png",
}
r = requests.get("https://api.apiflash.com/v1/urltoimage", params=params, timeout=90)
r.raise_for_status()
open("apiflash.png", "wb").write(r.content)
ScreenshotNeo: a managed API focused on clean captures
ScreenshotNeo is a website screenshot API and MCP server. Before capture it accepts cookie or consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be disabled. Only clean shots are billed: bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and response headers report the page verdict and billing status.
The API supports PNG, JPEG, WebP, and PDF output. Its 63 options include full-page lazy-image loading, CSS-selector element capture, dark mode, 12 device presets or custom viewports, retina scale, PDF paper and page controls, HTML/CSS rendering, custom JavaScript, click-before-capture, selector hiding, selector/delay/network-idle waits, ad and tracker blocking, custom headers, cookies, user agent and Authorization, timezone and geolocation, transparent backgrounds, resizing, TTL-based caching, signed links, asynchronous jobs with signed webhooks, bulk capture of up to 100 URLs per call, a usage API, and an OpenAPI specification. Parameter names used by other screenshot APIs also work, which can simplify migration.
One-call Python example
See the ScreenshotNeo documentation for all options and response headers.
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →import requests
r = requests.get(
"https://api.screenshotneo.com/v1/shot",
params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"},
timeout=90,
)
r.raise_for_status()
open("shot.webp", "wb").write(r.content)
Equivalent cURL and Node.js calls
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const fs = await import('node:fs/promises');
await fs.writeFile('shot.webp', Buffer.from(await res.arrayBuffer()));
Plans and operational fit
| Plan | Allowance | Price |
|---|---|---|
| Free | 1,000 shots/month | $0, no card |
| Starter | 3,000 shots | $5 |
| Growth | 15,000 shots | $15 |
| Pro | 60,000 shots | $39 |
| Scale | 250,000 shots | $99 |
| Business | 1,000,000 shots | $249 |
Yearly billing gives two months free, and every feature is on every plan. The MCP server exposes take_screenshot, get_page_info, and capture_pdf to Claude, Cursor, and other MCP clients.
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Rendering controls that affect results
Viewport, device scale, and format
- Set a fixed viewport for reproducible layouts; responsive breakpoints can otherwise change the output.
- Use PNG for sharp text and transparency, JPEG for smaller photographic files, and WebP when your downstream system supports it.
- Retina or device-scale settings increase pixel dimensions and file size; choose them deliberately for visual regression or high-density displays.
Dynamic content and lazy loading
Wait for a meaningful selector rather than an arbitrary long sleep when possible. Full-page algorithms may need to scroll to trigger lazy images. For dashboards, provide authentication cookies or headers and mask volatile timestamps before comparing images.
Privacy and access controls
Do not place API keys in client-side JavaScript or public image URLs unless you use a signed-link mechanism. Treat cookies, Authorization headers, and captured pages as sensitive data. Confirm that your target site’s terms permit automated access.
Troubleshooting checklist
- Browser executable missing: run
python -m playwright install chromiumin the same environment as the application. - Timeouts: increase the bounded timeout, wait for a specific selector, or avoid
networkidleon pages with persistent connections. - Blank or incomplete image: wait for the main content selector, trigger lazy loading, and verify that authentication cookies are valid.
- Element selector fails: inspect the live DOM, use a stable class or role, and handle an optional element before calling
screenshot(). - Hosted API returns an HTTP error: check HTTPS, URL encoding, access-key validity, quota, and response content before writing the file.
- Unexpected cookie banner or popup: hide it with Playwright code or use ScreenshotNeo’s consent, newsletter, and chat cleanup controls.
- Different images between runs: fix viewport, timezone, locale, fonts, animation state, and wait conditions; disable ads and other nondeterministic resources where your provider supports it.
- High memory use: reuse a browser process, cap concurrent pages, close contexts, and prefer a hosted API when operating browsers is not core to your service.
Or skip the browser setup
Call ScreenshotNeo with one HTTPS request instead of installing Chromium. Cookie banners, popups, and chat widgets are removed before the shot; bot checks, blank pages, and failed loads are never billed. Its MCP server lets AI agents take screenshots, and the Free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 shots. Create a free ScreenshotNeo account.
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Frequently Asked Questions
Can I screenshot a page that requires login?
Yes, when the tool supports the required cookies or Authorization headers and you have permission to automate the account. Keep credentials server-side and avoid exposing them in URLs.
Should I return image bytes or a URL from my Python service?
Return bytes for immediate downloads or internal pipelines; return a stored or signed URL when clients need asynchronous access or repeated delivery.
Is a hosted API always faster than Playwright?
No neutral benchmark establishes that. Network distance, queueing, page complexity, browser startup, and your own concurrency limit determine the result.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

