October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

How to Capture a Website with ScreenshotMachine After JavaScript Loads

Screenshot Machine’s documented CLI-style workflow is Bash plus curl. Set a longer fixed delay to give JavaScript-driven pages more time, then inspect the screenshot.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Screenshot Machine’s documented command-line example is a Bash script that uses curl to call its screenshot API; the reviewed official material does not establish a separate ScreenshotMachine CLI binary. To give JavaScript-driven content more time to appear, set the API’s delay parameter before capture, save the image, and inspect it. This is a fixed elapsed-time wait—not a signal that JavaScript, network activity, or page rendering has finished.

How do I wait for JavaScript to load before taking a screenshot?

Use Screenshot Machine’s HTTP API from Bash with curl. Its delay parameter controls how long the capture engine waits before creating the screenshot. The documented default is 200 milliseconds; the official sample uses 2,000 milliseconds. A longer wait can help with client-side rendering, animation, and late-loading images, but it cannot guarantee that all asynchronous work is complete.

The official API documentation describes an HTTP request and provides a Bash example; it does not document a separately installed CLI executable. The example below follows that approach, with placeholder credentials. Replace the target URL and set a customer key before running it.

Run the Bash and curl example

#!/usr/bin/env bash
set -euo pipefail

CUSTOMER_KEY="YOUR_CUSTOMER_KEY"
SECRET_PHRASE="" # Set this only if enabled for your account
URL="https://example.com"
DIMENSION="1366x768"
DEVICE="desktop"
FORMAT="png"
CACHE_LIMIT="0"
DELAY="2000"
ZOOM="100"

ARGS=(
  --data-urlencode "key=$CUSTOMER_KEY"
  --data-urlencode "dimension=$DIMENSION"
  --data-urlencode "device=$DEVICE"
  --data-urlencode "format=$FORMAT"
  --data-urlencode "cacheLimit=$CACHE_LIMIT"
  --data-urlencode "delay=$DELAY"
  --data-urlencode "zoom=$ZOOM"
  --data-urlencode "url=$URL"
)

if [[ -n "$SECRET_PHRASE" ]]; then
  HASH=$(echo -n "$URL$SECRET_PHRASE" | md5sum | cut -d ' ' -f 1)
  ARGS+=(--data-urlencode "hash=$HASH")
fi

curl -Gs "https://api.screenshotmachine.com" "${ARGS[@]}" -o output.png

Screenshot Machine’s documented API parameters, accepted values, and Bash pattern are described in its API documentation. Keep your customer key and any secret phrase out of public repositories and browser-side code. When a secret phrase is enabled in account settings, the documented request uses an MD5 hash of the URL value concatenated with the secret phrase; requests with a missing or incorrect hash are ignored.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • Auto-Light Balance: RightLight boosts brightness by up to 50%, reducing shadows so you look your best—compared to previous-generation Logitech webcams (1)
  • Privacy with a Slide: The integrated webcam cover makes it easy to get total, reliable privacy when you're not on a video call
  • Built-In Mic: The built-in microphone lets others hear you clearly during video calls
  • Easy Plug-And-Play: The Brio 101 works with most video calling platforms, including Microsoft Teams, Zoom and Google Meet—no hassle; it just works

Tune the wait by checking the image

  1. Start with the page URL and a customer key. The key is required for API requests.
  2. Choose a viewport and device mode that match the intended result. The sample uses 1366x768 and desktop.
  3. Set DELAY to a supported value. The documented choices are 0, 200, 400, 600, 800, 1,000, then 2,000 through 10,000 milliseconds in 1,000-millisecond increments.
  4. Run the request and inspect output.png for the content that appears after JavaScript runs.
  5. If content is missing, try a longer documented delay and capture again. Compare the resulting images rather than treating any value as a readiness guarantee.

Longer waits add time to each capture. Screenshot Machine’s documentation recommends more delay—such as 2,000 milliseconds or more—for long full-page captures containing images or animations. That is practical tuning advice, not proof that every image or script has finished.

How can I take a full-page screenshot after the page finishes loading?

Set dimension to a width and full, for example 1366xfull, then allow extra time if the page loads content farther down as it renders or scrolls. Full-page capture and a delay can improve the chance that late content is present, but Screenshot Machine documents the delay as elapsed time, not as a “page finished loading” condition.

Rank #2
Sale
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • Crisp HD 720p/30 fps video calls with diagonal 55° field of view and auto light correction. Compatible with popular platforms including Skype and Zoom.
  • The built-in noise-reducing mic makes sure your voice comes across clearly up to 1.5 meters away, even if you’re in busy surroundings.
  • C270’s RightLight 2 feature adjusts to lighting conditions, producing brighter, contrasted images to help you look good in all your conference calls.
  • The adjustable universal clip lets you attach the camera securely to your screen or laptop, or fold the clip and set the webcam on a shelf. You’re always ready for your next video call.

The API documentation gives a width range of 100–1,920 pixels and a height range of 100–9,999 pixels, or full for a full-length screenshot. It lists device choices as desktop, phone, and tablet; example dimensions are 1024×768, 480×800, and 800×1280 respectively. Use dimensions appropriate to the page layout you want to inspect.

Which parameters affect what appears in the capture?

Parameter What it controls Useful detail
delay Elapsed wait before capture Default is 200 ms; accepted choices run up to 10,000 ms. It is not a JavaScript-ready or network-idle detector.
dimension Viewport width and height, or full-page height Width 100–1,920; height 100–9,999, or use full as the height.
device Rendering context Choose desktop, phone, or tablet.
format Image format Accepted formats are jpg, png, and gif; documented default is JPG.
cacheLimit How old a cached screenshot may be Range is 0–14 days; 0 requests a fresh screenshot. The documentation also allows decimal values for sub-day freshness.
click, hide Interact with or hide selected elements Use CSS selectors; encode reserved characters such as #.
cookies, accept-language, user-agent Supply cookies or adjust request language and user agent Encode reserved characters in values.
selector, crop Capture one DOM element or crop a pixel rectangle Selectors and crop values must be valid for the requested capture.

The official example uses --data-urlencode for each parameter. Keep that pattern: it handles URL encoding for values that contain reserved characters. This matters for target URLs and CSS selectors, especially selectors containing #.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
NexiGo N60 1080P Webcam with Microphone, Software Control & Privacy Cover, USB HD Computer Web Camera, Plug and Play, for Zoom/Skype/Teams, Conferencing and Video Calling
  • 【Full HD 1080P Webcam】Powered by a 1080p FHD two-MP CMOS, the NexiGo N60 Webcam produces exceptionally sharp and clear videos at resolutions up to 1920 x 1080 with 30fps. The 3.6mm glass lens provides a crisp image at fixed distances and is optimized between 19.6 inches to 13 feet, making it ideal for almost any indoor use.
  • 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 8, 10 & 11 / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.
  • 【Built-in Noise-Cancelling Microphone】The built-in noise-canceling microphone reduces ambient noise to enhance the sound quality of your video. Great for Zoom / Facetime / Video Calling / OBS / Twitch / Facebook / YouTube / Conferencing / Gaming / Streaming / Recording / Online School.
  • 【USB Webcam with Privacy Protection Cover】The privacy cover blocks the lens when the webcam is not in use. It's perfect to help provide security and peace of mind to anyone, from individuals to large companies. 【Note:】Please contact our support for firmware update if you have noticed any audio delays.
  • 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 10 & 11, Pro / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.

What should I check when a screenshot is wrong or the request fails?

  • The image shows a loading state or misses content: Increase delay using a documented value, then inspect another capture. If the content still does not appear, check whether the page needs authentication, cookies, a click, or another supported input. The reviewed documentation does not describe a selector-wait or network-idle option.
  • The URL or selector behaves unexpectedly: Pass parameters through --data-urlencode. Reserved characters can change how query parameters are interpreted if they are not encoded.
  • The call returns an error image: Screenshot Machine says invalid or incomplete requests return an error image and an X-Screenshotmachine-Response header with an error code. Check that header and verify the key and URL first.
  • The header reports invalid_key or missing_key: Check that the customer key is present and correct.
  • The header reports invalid_url or missing_url: Check that the URL is present and valid, and that it is passed as one encoded parameter.
  • The header reports invalid_hash: If your account has a secret phrase enabled, calculate and send the required hash for the URL; otherwise check account settings and remove unintended hash handling.
  • The header reports invalid_selector or invalid_crop: Review the CSS selector or crop rectangle and encode its parameter value.
  • The header reports no_credits: Check remaining account credits and the current plan.

Or skip the browser setup

If you want a screenshot API that accepts a URL in one request, ScreenshotNeo is an option. Its API can remove cookie and consent banners, newsletter popups, and chat widgets before capture; those steps can be turned off. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and each response indicates the page verdict and billing status in headers. ScreenshotNeo also provides an MCP server with take_screenshot, get_page_info, and capture_pdf tools for AI agents.

For example, save a WebP screenshot from the target URL with cURL:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp

See the ScreenshotNeo API documentation for request options. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 screenshots. Sign up for ScreenshotNeo free.

Rank #4
Sale
EMEET C960 1080P Webcam with Microphone, 2 Mics, 90° FOV, Computer Camera
  • 1080P Webcam with Cover for Video Calls - EMEET computer webcam provides design and Optimization for professional video streaming. Realistic 1920 x 1080p video, 5-layer anti-glare lens, providing smooth video. C960 computer camera delivers 1920x1080 video with fixed focus (11.8–118.1 inches), so as to provide a clearer image. C960 USB webcam has a cover and can be removed automatically to meet your needs for privacy. For optimal image performance, use the webcam in a well-lit environment.
  • Built-in 2 Omnidirectional Mics - EMEET webcam with microphone for desktop features 2 built-in omnidirectional microphones, picking up your voice to create clear audio for communication. When installing the webcam, select EMEET C960 as the default microphone input device in your computer and video applications and select C960 as the default device in Zoom/Teams and ensure microphone permissions are enabled for proper use. Please note that C960 does not include built-in speakers.
  • Automatic Light Adjustment - Automatic exposure adjustment is applied in EMEET HD webcam 1080p so that the streaming webcam can deliver stable image performance. EMEET C960 camera for computer also features color adjustment and exposure optimization to help you look your best. For optimal video quality, it is recommended to use the webcam in normal or well-lit environments and select suitable video settings in your application. Proper lighting helps achieve a clearer and more balanced image.
  • Plug-and-Play & Upgraded USB Connectivity - New C960 webcam features both USB Type-A & A-to-C adapter connections for wider compatibility. For stable performance, connect the webcam directly to the computer's main USB port and ensure the device is recognized correctly. If a hub or docking station is used, please ensure it provides sufficient power and stable data transmission, as limited ports may affect performance. 90° wide-angle lens captures more participants without frequent adjustments.
  • High Compatibility & Multi Application - C960 webcam for laptop is compatible with Windows 10/11, macOS 10.14+, and Android TV 7.0+. Not supported: Windows Hello, TVs, tablets, or game consoles. It works with Zoom, Teams, Facetime, Google Meet, YouTube and more. Please select C960 webcam as the default camera and microphone device in your application and ensure camera/microphone permissions are enabled, especially on macOS. (Tips: Incompatible with Windows Hello)
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Frequently Asked Questions

Does ScreenshotMachine provide a standalone CLI binary?

The official material covered here documents a Bash script using curl to call the HTTP API; it does not establish a separately installed CLI binary.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Does a longer delay guarantee that JavaScript has finished?

No. It adds a fixed wait before capture and does not detect JavaScript completion, DOM readiness, or network idle.

Quick Recap

SaleBestseller No. 1
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
Compatible with Nintendo Switch 2’s new GameChat mode; Built-In Mic: The built-in microphone lets others hear you clearly during video calls
$35.72
SaleBestseller No. 2
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
Compatible with Nintendo Switch 2’s new GameChat mode
$16.89
Bestseller No. 5
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
Compatible with Nintendo Switch 2’s new GameChat mode; Fully compatible with Windows 11
$69.99
Best Value
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • HD lighting adjustment and autofocus: The Logitech webcam automatically fine-tunes the lighting, producing bright, razor-sharp images even in low-light settings. This makes it a great webcam for streaming and an ideal web camera for laptop use
  • Advanced capture software: Easily create and share video content with this Logitech camera that is suitable for use as a desktop computer camera or a monitor webcam
  • Stereo audio with dual mics: Capture natural sound during calls and recorded videos with this 1080p webcam, great as a video conference camera or a computer webcam
  • Full HD 1080p video calling and recording at 30 fps. You'll make a strong impression with this PC webcam that features crisp, clearly detailed, and vibrantly colored video

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Shenzhen desk3 min
    HONOR Expands Beyond Smartphones With Humanoid Robot RevealHONOR said it unveiled its first humanoid robot at MWC 2026 and named shopping assistance, workplace inspections, and supportive companionship as intended uses. Later Robotics D1 claims and a reported…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.