Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk7 min

How to Capture Screenshots of JavaScript-Rendered Pages with ScreenshotAPI.net

A practical guide to ScreenshotAPI.net readiness waits, capture scope, authentication, status checks, and fixes for blank or incomplete JavaScript-rendered screenshots.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To capture content rendered by JavaScript, request a screenshot only after the page has had time to produce the content you need. With ScreenshotAPI.net, send a GET request to https://screenshot-api.net/v1/screenshot, authenticate with a Bearer token, and choose a readiness signal and capture scope that fit the page. A delay is the documented option in the reviewed /v1/screenshot reference; selector and network-idle waits are described on the feature page, so verify support and parameter names for the endpoint version you use.

Make a JavaScript-rendered screenshot with a minimal request

Keep the API key in an environment variable and let cURL encode the query parameters. The response body is the image, so -o saves it as a file:

As an Amazon Associate I earn from qualifying purchases.

export SCREENSHOT_API_KEY='YOUR_API_KEY'
curl -G 'https://screenshot-api.net/v1/screenshot' 
  -H "Authorization: Bearer $SCREENSHOT_API_KEY" 
  --data-urlencode 'url=https://example.com' 
  --data-urlencode 'delay=2000' 
  --data-urlencode 'full_page=true' 
  -o screenshot.png

The endpoint requires a target url. The example requests a two-second delay and a full-page image; it illustrates the documented request shape and is not a tested capture. The API reference documents PNG as the default format, so no format parameter is needed for this filename. See the ScreenshotAPI.net API reference for the current endpoint parameters and response details.

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

For a normal application request, use Authorization: Bearer. The documentation also accepts a ?key= query parameter for embedding a capture as an image, but a key in a URL can be exposed through page source or server logs. Do not use that form for production secrets.

#1 Best Overall
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB
  • CRISP CLARITY: This 23.8″ Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
  • WORK SEAMLESSLY: This sleek monitor is virtually bezel-free on three sides, so the screen looks even bigger for the viewer. This minimalistic design also allows for seamless multi-monitor setups that enhance your workflow and boost productivity
  • A BETTER READING EXPERIENCE: For busy office workers, EasyRead mode provides a more paper-like experience for when viewing lengthy documents

Choose when the screenshot is taken

A page’s initial navigation completing does not necessarily mean that its JavaScript-driven content is ready. A widget might render after an API call, an element might appear only after client-side work, or requests might arrive in several waves. Match the wait condition to the signal that actually means “ready” for your page.

Readiness strategy Waits for Best fit and trade-off
Timed delay A fixed elapsed time after load, specified as delay. Simple when the page is predictable. It guesses: a short delay can capture too early, while a long one adds unnecessary waiting. The API reference documents 0–10,000 milliseconds.
Selector wait A chosen CSS selector to become available. Useful when a specific element reliably signals that the desired content has rendered. The feature page describes this capability; confirm the exact parameter and support for the endpoint/version you call.
Network idle Network activity to become idle. Can suit pages whose content is delivered through asynchronous requests. Pages with continuing background requests may make this a poor readiness signal. The feature page describes this option; confirm endpoint-specific support and naming.

The reviewed /v1/screenshot API reference explicitly documents delay. The feature page describes selector and network-idle waits, while separately surfaced v3 documentation belongs to another endpoint version. Do not copy parameter names across versions: use only the readiness parameters documented for the precise endpoint you call.

Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB
  • CRISP CLARITY: This 22 inch class (21.5″ viewable) Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • 100HZ FAST REFRESH RATE: 100Hz brings your favorite movies and video games to life. Stream, binge, and play effortlessly
  • SMOOTH ACTION WITH ADAPTIVE-SYNC: Adaptive-Sync technology ensures fluid action sequences and rapid response time. Every frame will be rendered smoothly with crystal clarity and without stutter
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors

Set a delay when elapsed time is the signal

For an asynchronous widget that usually renders shortly after navigation, try a modest delay and inspect the result. Increase it only if the capture demonstrates that the content is late; do not assume that a large delay is inherently more reliable. Because the documented maximum is 10,000 milliseconds, a page that needs longer may require another supported readiness strategy or a different workflow.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

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

Wait for a meaningful element when possible

If a known component appears only when its data is ready, waiting for that component is more directly tied to the result than guessing a duration. Choose a selector that represents usable content, not merely a container that exists before its contents arrive. Since selector waits are described on the feature page rather than explicitly in the reviewed endpoint reference, check the reference for your endpoint before adding one.

Rank #3
Sale
Dell 24 Monitor - SE2426H - 23.8-inch FHD (1920x1080) 144Hz 1ms Display, in-Plane Switching (IPS) Technology, AMD FreeSync™, TÜV 3-Star 2X HDMI, Tilt
  • Clear visuals. Fluid motion: A 144Hz refresh rate and 1ms MPRT deliver smooth, tear‑free motion across work, gaming, and streaming for clearer, more fluid viewing.
  • Eye comfort: TÜV Rheinland 3‑star* certification reduces harmful blue light while preserving stunning color quality without compromise. *TÜV Rheinland 3-star eye comfort certification.
  • Wide viewing angle: Get consistent views across a wide 178° /178° viewing angle.
  • In-Plane Switching (IPS): See excellent color accuracy and consistency across wide viewing angles with In-plane Switching (IPS) technology.
  • Ultra-thin bezels: Maximize your viewing experience with thin bezels.

Use network idle only when it represents readiness

Network quiet can be a useful signal when the page fills in through a sequence of requests. It can be misleading if the site polls continuously, opens long-lived connections, or finishes its important rendering while unrelated requests continue. Check endpoint documentation for the supported option and verify the capture rather than treating network idle as a universal guarantee.

Choose what part of the page to capture

Capture scope How to request it Use it when
Viewport Leave full_page false (the documented default). You need the visible viewport, such as a consistent above-the-fold check. Default dimensions are 1280 by 800 CSS pixels.
Full page Set full_page=true. You need the document beyond the initial viewport. The API reference caps full-page height at 4320 pixels.
One element Use the documented selector-capture option for your endpoint. You need a single chart, card, or component rather than the whole document. The element is scrolled into view; the API returns an error if no element matches.

Full-page output can be substantially taller than a viewport image, and the documented height cap means very long documents may not fit into one capture. If the page is too tall or only one component matters, use an element capture if supported by your endpoint. For full-page captures, the feature page says its process scrolls to activate off-screen lazy-loaded content; treat this as a provider-described behavior, not a guarantee for every site, and inspect the resulting image.

Rank #4
Sale
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor | 100Hz, Game Mode, Advanced Eye Comfort, HDMI and D-sub Ports (LS27D366GANXZA)
  • CURVED FOR ENHANCED ENGAGEMENT: An immersive viewing experience with a curved monitor that wraps more closely around your field of vision; It creates a wider view, enhancing depth perception and minimizing peripheral distraction
  • SMOOTH PERFORMANCE FOR SEAMLESS CONTENT: Stay in the action when playing games, watching videos, or working on creative projects; The 100Hz refresh rate reduces lag and motion blur so you don't miss a thing in fast-paced moments¹
  • MORE GAMING POWER: Gain the edge with optimizable game settings; Color and image contrast can be adjusted to see scenes more vividly and spot enemies hiding in the dark; Game Mode adjusts any game to fill the screen so you can view every detail²
  • KEEP IT EASY ON THE EYES: Care for your eyes and stay comfortable, even during long sessions; Advanced eye comfort technology certified by TÜV reduces eye strain by minimizing blue light and reducing irritating screen flicker²
  • INCREASED VERSATILITY: Connect to more; Plug devices straight into your monitor for increased flexibility, making your computing environment even more convenient

Set dimensions only when the default is not right

The documented defaults are width 1280 CSS pixels, height 800 CSS pixels, scale 1, and timeout 25 seconds. The reference lists maximum width 3840, maximum height 4320, scale up to 3, and timeout from 1 to 30 seconds. Keep the defaults unless the target layout or output needs a different viewport or pixel density. For responsive pages, remember that changing viewport width can change the page layout, not merely the image dimensions.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Check page status and access before trusting the image

A valid image file can still show a login screen, an error page, or an incomplete state. ScreenshotAPI.net documents X-Page-Status as the final document status after redirects. Check it alongside the image when the result is unexpected: a 401 or 403 can mean the capture shows an authentication or access-denied page rather than the intended content.

Best Value
Sale
Sceptre New 22-Inch Gaming Monitor, FHD 1080p, Up to 144Hz, HDMI, DisplayPort, Built-in Speakers, Machine Black (E225W-FW144 Series, 2026)
  • 【INTEGRATED SPEAKERS】Whether you're at work or in the midst of an intense gaming session, our built-in speakers provide rich and seamless audio, all while keeping your desk clutter-free.
  • 【EASY ON THE EYES】 Protect your eyes and enhance your comfort with Blue-Light Shift technology. This feature reduces harmful blue light emissions from your screen, helping to alleviate eye strain during long hours of use and promoting healthier viewing habits.
  • 【WIDEN YOUR PERSPECTIVE】Our sleek minimal bezel design ensures undivided attention. The nearly bezel-free display seamlessly connects in a dual monitor arrangement, delivering an unobstructed view that lets you focus on more at once, completely distraction-free.

For protected targets, the reference supports cookies, target-host request headers, and HTTP basic authentication. Supply only credentials needed to access the target, and keep both those credentials and the ScreenshotAPI.net API key out of public page source and logs.

Troubleshoot blank or incomplete captures

  • The image is blank or the component is missing: Confirm the target URL and inspect X-Page-Status first. Then determine whether the content appears after asynchronous work and select a matching readiness condition. A delay is documented for this endpoint; check endpoint-specific documentation before using selector or network-idle parameters.
  • The capture shows a login or error page: Check the final status after redirects. If the page requires authentication, use the documented cookies, target-host headers, or HTTP basic authentication, and ensure the credentials are valid for the target.
  • The full-page image omits lower content: Account for the 4320-pixel full-page height cap. Consider a specific element capture or a different viewport when the entire document cannot fit. Lazy-load activation is described as a feature, but inspect the output because site behavior can vary.
  • The response is not the image you expect: The endpoint returns image bytes with a content type matching the selected format. Check the response status and headers as well as the saved file; a file extension alone does not establish that the intended page was captured.
  • The request fails after increasing the wait: The documented timeout range is 1–30 seconds and the default is 25 seconds. A longer wait is not available beyond that documented maximum; choose a better readiness signal or investigate whether the target itself is slow or inaccessible.

Or skip the browser setup

ScreenshotNeo offers a screenshot API and MCP server. One GET request can return an image or PDF; its cleanup options accept cookie and consent banners and remove more than 60 known consent platforms, newsletter popups, and chat widgets before capture. Each cleanup step can be turned off. Only clean shots are billed: bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, with the outcome reported in response headers. Its MCP server provides take_screenshot, get_page_info, and capture_pdf for AI agents using Claude, Cursor, or another MCP client.

For example, this cURL request captures a page as WebP:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
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 documentation for request options. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000. Sign up for ScreenshotNeo and start with 1,000 free screenshots a month, no card required.

Frequently Asked Questions

Does ScreenshotAPI.net return a screenshot file or a link?

The documented screenshot endpoint returns image bytes in the response body, with a content type matching the selected image format.

Can a selector wait guarantee that every JavaScript widget is ready?

No. It is useful only when the chosen selector reliably signals that the needed content has rendered, and support and parameter names should be checked for the specific endpoint version.

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.

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

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. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

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.