Free tools Windows power users keep installed
One-click scans. No signup required.
To take a screenshot from Bash, send an authenticated HTTP request to a hosted screenshot API and save its binary response with curl --output. Keep the API key in an environment variable, check the HTTP status before treating the output as an image, and use URL encoding whenever the page URL contains its own query string. This guide shows GET and POST patterns, full-page captures, format choices, error handling, automation, and a browser-free ScreenshotNeo option.
What a Bash screenshot workflow does
A hosted screenshot API runs a browser remotely, loads the target page, applies rendering settings, and returns an image or PDF over HTTP. Bash is only the client: curl supplies authentication and options, while shell redirection writes the returned bytes to disk.
- Input: a URL, API credential, and options such as format, viewport, or full-page mode.
- Transport: usually GET query parameters for simple requests or POST JSON for structured settings.
- Output: raw PNG, JPEG, WebP, or PDF bytes, or (depending on the provider) JSON containing a URL or metadata.
Do not assume every service has the same endpoint, authentication header, or response shape. Check the provider contract before putting a command into production.
Secure prerequisites
- Bash and a current
curl. Use a version that supports--fail-with-body(curl 7.76 or newer); otherwise combine--failwith a separate diagnostic request. - An API key for the service you choose.
- A writable output directory and network access to the API.
Export credentials for the current shell rather than hard-coding them in a script:
Recommended Free Tools
#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.
export SCREENSHOTENGINE_API_KEY="YOUR_API_KEY"
Authorization headers keep keys out of URLs and reduce accidental exposure in proxy logs, shell history, and monitoring systems. If a service only offers query-string authentication, use it for disposable experiments, not shared production logs.
Fastest POST example: ScreenshotEngine
ScreenshotEngine documents a POST endpoint that returns the image file itself on success and JSON on errors. This command requests a PNG of the complete page:
export SCREENSHOTENGINE_API_KEY="YOUR_API_KEY"
curl --fail-with-body --request POST 'https://api.screenshotengine.com/v1/screenshot'
--header "Authorization: Bearer $SCREENSHOTENGINE_API_KEY"
--header 'Content-Type: application/json'
--data '{"url":"https://example.com","format":"png","height":"full"}'
--output screenshot.png
A successful response is binary image data, so --output screenshot.png is essential. --fail-with-body makes curl exit nonzero for HTTP failures while retaining the provider’s JSON error body for diagnosis. Documentation: ScreenshotEngine quickstart and code examples.
Verify the result in a script
set -euo pipefail
: "${SCREENSHOTENGINE_API_KEY:?Set SCREENSHOTENGINE_API_KEY first}"
curl --fail-with-body --silent --show-error
--request POST 'https://api.screenshotengine.com/v1/screenshot'
--header "Authorization: Bearer $SCREENSHOTENGINE_API_KEY"
--header 'Content-Type: application/json'
--data '{"url":"https://example.com","format":"png","height":"full"}'
--output screenshot.png
file screenshot.png
The file command should identify a PNG. This catches cases where a proxy, misconfigured endpoint, or provider error produced text instead of an image.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchGET requests for simple captures
GET is concise when the request has a URL and a few scalar options. Screenshot API.net documents this pattern:
export SCREENSHOT_API_KEY="YOUR_API_KEY"
curl --fail-with-body --silent --show-error -G
"https://screenshot-api.net/v1/screenshot"
-H "Authorization: Bearer $SCREENSHOT_API_KEY"
--data-urlencode "url=https://example.com"
-o shot.png
Use --data-urlencode, not plain string concatenation, when the target contains ?, &, spaces, or non-ASCII characters:
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.
curl --fail-with-body -G "https://screenshot-api.net/v1/screenshot"
-H "Authorization: Bearer $SCREENSHOT_API_KEY"
--data-urlencode "url=https://example.com/search?q=red shoes&sort=latest"
--data-urlencode "format=webp"
-o search.webp
Screenshot API.net also documents a JSON /v1/capture mode. Its documentation is at https://screenshot-api.net/docs/.
Choosing GET or POST
| Use GET when | Use POST when |
|---|---|
| Capturing one URL with a few scalar parameters | Sending nested viewport or device objects |
| You want a short, cache-friendly command | Using custom CSS, JavaScript, selector hiding, geolocation, or PDF settings |
| The provider documents query parameters | Submitting batch-style payloads or many advanced controls |
Parameter names differ between vendors. Confirm whether “full page” is called fullPage, height=full, or something else, and whether the endpoint returns bytes, JSON, or a hosted URL.
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Response formats and binary-safe handling
Providers commonly offer PNG, JPEG, WebP, and PDF. PNG preserves text and transparency; JPEG is smaller for photographic pages; WebP often reduces size while retaining quality; PDF is appropriate for printable documents. A service may return raw bytes directly or JSON containing a URL. Never pipe an image response through grep, jq, or other text filters.
Inspect headers before downloading
curl --fail-with-body --head
-H "Authorization: Bearer $SCREENSHOT_API_KEY"
"https://screenshot-api.net/v1/screenshot?url=https%3A%2F%2Fexample.com"
Look for the documented content type, such as image/png or application/pdf. Some APIs do not support HEAD; in that case, make a small test capture and inspect with file or identify.
Full-page and advanced captures
Full-page capture requires the remote browser to render content beyond the initial viewport. Lazy-loaded images, infinite scroll, cookie banners, and sticky headers can affect the result. Use the provider’s documented option and test representative pages.
Screenshot API documents GET and POST requests, PNG, JPEG, WebP, and PDF output, viewport and full-page controls, advanced POST options, and a batch endpoint in its REST documentation: https://screenshot-api.org/docs/. Its SDK documentation is at https://screenshot-api.org/sdk/.
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Repair Windows errors before they cause bigger problemsFix Now →Batch jobs
Batch support is provider-specific. Confirm maximum URLs, whether one failed URL fails the whole job, response ordering, and whether results are bytes, JSON, or URLs. For a simple shell loop, preserve each URL’s output name and stop or continue deliberately:
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.
set -euo pipefail
while IFS= read -r url; do
name=$(printf '%s' "$url" | sha256sum | cut -c1-16)
curl --fail-with-body -G "https://screenshot-api.net/v1/screenshot"
-H "Authorization: Bearer $SCREENSHOT_API_KEY"
--data-urlencode "url=$url"
-o "shots/$name.png"
done < urls.txt
Or skip the browser setup
ScreenshotNeo is a hosted screenshot API and MCP server for developers. Its GET endpoint returns PNG, JPEG, WebP, or PDF, and the call below is enough for a basic Bash capture:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
See the complete parameter reference at https://screenshotneo.com/docs/. ScreenshotNeo accepts consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be disabled. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and response headers report the page verdict and billing status. It also provides an MCP server with take_screenshot, get_page_info, and capture_pdf tools for Claude, Cursor, and other MCP clients.
Every plan includes features such as full-page lazy-image loading, CSS-selector element capture, dark mode, device presets and custom viewports, retina scale, PDF paper and margin controls, custom CSS and JavaScript, clicks, waits, request blocking, headers, cookies, user-agent, authorization, timezone, geolocation, transparent backgrounds, resizing, configurable caching, signed links, asynchronous webhooks, 100-URL bulk calls, a usage API, and an OpenAPI specification. Its parameter names also accept those used by other screenshot APIs, easing migration.
| Plan | Included shots | Price |
|---|---|---|
| Free | 1,000/month | $0, no card |
| Starter | 3,000 | $5 |
| Growth | 15,000 | $15 |
| Pro | 60,000 | $39 |
| Scale | 250,000 | $99 |
| Business | 1,000,000 | $249 |
Yearly billing provides two months free. Create a free ScreenshotNeo account to get 1,000 screenshots per month without a card.
cURL, Python, and Node.js equivalents
cURL
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
Python
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)
Node.js
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()));
Troubleshooting common failures
401 or 403 authentication errors
Check the key, header spelling, bearer prefix, account status, and endpoint. Avoid whitespace when exporting the variable. Do not print the key while debugging.
400 or 422 validation errors
Inspect the provider’s JSON body. Typical causes are an unsupported format, malformed URL, wrong full-page parameter, or advanced option sent to a GET endpoint. Move structured settings to POST JSON when documented.
The saved file is JSON or HTML
The request likely failed or the endpoint returns a JSON/URL response rather than raw bytes. Use --fail-with-body, preserve stderr, inspect the HTTP status and Content-Type, and follow the provider’s documented download step.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
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
Blank or partially rendered page
Allow more render time if the API supports a delay or wait condition. Verify that the page is publicly reachable, that required cookies or authorization headers are supplied, and that lazy content is compatible with full-page capture. Infinite-scroll pages may require a provider-specific strategy.
URL works in a browser but not through the API
The site may block automated browsers, require geolocation, depend on a logged-in session, or challenge the API’s network. Use documented custom headers, cookies, user-agent, timezone, or geolocation controls only when you are authorized to access the page.
curl exits successfully but the image is unusable
Check that the output directory is writable, confirm the file type, and compare its size with a known-good capture. A successful TCP transfer is not proof that the payload is an image; HTTP status and content type are the authoritative checks.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Reliability, performance, and cost practices
- Set a client timeout appropriate to the page, such as
--max-time 90, and retry only transient failures with bounded backoff. - Use deterministic filenames and atomic writes so downstream jobs never read a partially downloaded file.
- Cache captures when the page does not change frequently, but define an explicit freshness policy.
- For CI, fail on non-2xx responses and archive the provider’s error body separately from image artifacts.
- Estimate spend from the provider’s billing unit, whether it counts successful captures, all requests, or another event. ScreenshotNeo bills only clean shots and exposes verdict and billing headers.
- Respect site permissions, robots policies where applicable, privacy requirements, and terms of service. Do not capture private pages without authorization.
How to choose a Bash screenshot API
| Decision point | What to verify |
|---|---|
| Authentication | Bearer header, access key, or another scheme; whether credentials can stay out of URLs |
| Response | Raw bytes, JSON URL, or both; documented content types and error bodies |
| Rendering | Viewport, full-page, waits, JavaScript, CSS, cookies, headers, and device settings |
| Formats | PNG, JPEG, WebP, PDF, transparency, and page-range controls |
| Scale | Batch limits, asynchronous jobs, webhooks, rate limits, caching, and usage reporting |
| Operations | Timeout behavior, retries, status semantics, and whether failed captures are billed |
Among hosted screenshot APIs, ScreenshotNeo is the first service to try when clean output and predictable billing matter: it removes common consent and widget clutter before capture, bills only clean shots, and its paid entry plan is $5 for 3,000 shots. For other providers, compare the documented behaviors above rather than assuming endpoint compatibility.
FAQ
Can Bash take a screenshot without installing Chromium?
Yes. A hosted screenshot API runs the browser remotely; Bash only needs curl and a writable destination.
Should I save the API response with > or -o?
Use curl’s --output option. It makes the binary destination explicit and keeps diagnostics on stderr.
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.
Is a screenshot API request idempotent?
A capture may be repeatable, but dynamic pages, timestamps, ads, and personalization can change each result. Check the provider’s caching and deduplication rules before relying on identical bytes.
What should a monitoring job alert on?
Alert on non-2xx status, provider error verdicts, unexpected content type, and dimensions or file size outside your normal range.
Frequently Asked Questions
Can Bash take a screenshot without installing Chromium?
Yes. A hosted screenshot API runs the browser remotely; Bash only needs curl and a writable destination.
Should I save the API response with > or -o?
Use curl’s –output option. It makes the binary destination explicit and keeps diagnostics on stderr.
Is a screenshot API request idempotent?
A capture may be repeatable, but dynamic pages, timestamps, ads, and personalization can change each result. Check the provider’s caching and deduplication rules before relying on identical bytes.
What should a monitoring job alert on?
Alert on non-2xx status, provider error verdicts, unexpected content type, and dimensions or file size outside your normal range.
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.

