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

You can use cURL to send a webpage URL to a screenshot API and save the returned PNG bytes to a file. cURL does not render HTML itself: a browser renderer at the service—or one you operate—must load the page and run its JavaScript first. The exact endpoint, authentication, options, and response format depend on the service.

Save a webpage screenshot as a PNG with cURL

Cloudflare Browser Rendering’s screenshot endpoint accepts a POST request and returns screenshot data that cURL can write to a file. Replace the account ID and API token with your own values:

curl -X POST 'https://api.cloudflare.com/client/v4/accounts/<accountId>/browser-rendering/screenshot' 
  -H 'Authorization: Bearer <apiToken>' 
  -H 'Content-Type: application/json' 
  -d '{"url":"https://example.com"}' 
  --output screenshot.png

The documented endpoint requires a url or an html value. It processes the page’s HTML and JavaScript before capture; its example uses a 1920 × 1080 viewport by default. See Cloudflare Browser Rendering documentation for the service’s current request schema and options.

Check that the file is actually an image

--output screenshot.png saves the response body under that name; the filename alone does not prove it is a PNG. Check the HTTP status and response type, and inspect the file before using it. An API may return JSON on an error, or may return a URL to a hosted image instead of image bytes.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Guermok Video Capture Card, 4K USB3.0 HDMI to USB C, 1080P 60FPS & 2K 30FPS
  • 【1080P 60FPS Video Capture Card】 This HDMI game capture card is based on USB3.0 high speed transmission port, input resolution up to 4K@30HZ, output resolution up to 2K@30Hz or 1920×1080@60Hz. Type c and USB interface can meet most of the devices in daily life. Easily meet the online capture, real-time recording, online meetings, live gaming and other functions, so you have a better visual enjoyment. Note: For capture use only; requires capture software to function and is not intended for direct screen casting to a monitor or TV
  • 【Ultra Low Latency Screen Sharing】 HDMI capture card is made of good quality aluminum alloy with strong heat dissipation, allowing you to enjoy ultra low latency while live gaming or video recording or live streaming, avoiding blue screens and lag. This HDMI to USBC capture card supports easy recording of good quality audio or HD video and transferring it to your computer or streaming platform, allowing you to record 60 fps HD video directly on your hard drive and real-time preview
  • 【Plug and Play, Easy to Carry】 This HDMI 1080P video capture card does not require any additional drivers or external power supply, just plug and play for fast capture. The capture card is small and lightweight, so you can put it in your bag for emergencies, making it very portable for outdoor live streaming. It's also a great way to share content in game recording, video conference, video recorder and online teaching
  • 【Wide Compatibility USB Capture Card】 Easily streams to Facebook, Youtube or Twitch. With the connection, this HDMI to USB C/3.0 video capture devices can be working on several Operating Systems and various software: Windows 7/ 8/ 10, Mac OS or above, Linux, Android, Laptop, Xbox One, PS3/PS4/PS5, Camera, DVDs, Set Top Box, Webcame, DSLR, Switch/Switch 2, TV BOX, HDTV, Potplayer/VLC, ZOOM, OBS Studio etc.
  • 【Package Content & Note】 1x HD Audio Capture Card , 1x USB 3.0 to USB C Adapter (A-side 3.0, B-side 2.0), 1x user manual. Please note that you need to restart the OBS Studio software after the audio setup is complete, otherwise it will result in no sound output. When using an adapter, if the device is recognized as USB 2.0, try using the other side with the USB-C port. Simply flip the capture card and reconnect it to be recognized as USB 3.0

For scripts, add --fail-with-body where supported by your cURL version to make HTTP errors visible, while preserving the response body for diagnosis. Do not treat a failed request’s output as a screenshot.

What the cURL command does—and does not do

cURL is an HTTP client. It submits the screenshot request, authenticates to the API, and saves the HTTP response. The browser rendering work happens at the screenshot service or in a browser renderer you run separately. The renderer opens the page, runs scripts, waits according to the service’s rules, and captures the rendered result.

That distinction matters when a page is blank or incomplete. Changing cURL flags cannot make a remote browser wait for a chart, dismiss a consent dialog, or log into a target website unless the screenshot endpoint exposes the relevant browser controls and you send them in the documented format.

Choose the capture extent and timing

Viewport or full page

A viewport capture records the visible browser area at the chosen dimensions. It is suitable for consistent previews and visual checks. A full-page capture extends beyond the initial viewport to include more of a long page, but can produce a very tall image and may encounter service-specific size limits.

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.

Cloudflare documents viewport dimensions and a fullPage option. HTML/CSS to Image also lists viewport, full-page, and CSS-selector controls. Check the endpoint’s own limits and parameter names rather than assuming one provider’s options work unchanged with another.

Rank #2
Capture Card, 4K HDMI Video Capture Card, Game Capture Card, 1080P 60FPS Video Capture Device, HDMI to USB 3.0 Capture Card for Streaming, Work with Camera/Xbox/PS4/PS5/PC/OBS
  • 【1080P HD High Quality】Capture resolution up to 1080p for video source and it is ideal for all HDMI devices such as PS4, PS3, Xbox One, Xbox 360, Wii U, DVDs, DSLR, Camera, Security Camera and set top box. Note: Video input supports 4K30/60Hz and 1080p120/144Hz. Does not support 4K120Hz/144Hz. Output supports up to 2K30Hz.
  • 【Plug and Play】No driver or external power supply required, true PnP. Once plugged in, the device is identified automatically as a webcam. Detect input and adjust output automatically. Won't occupy CPU, optional audio capture. No freeze with correct setting.
  • 【Compatible with Multiple Systems】suitable for Windows and Mac OS. High speed USB 3.0 technology and superior low latency technology makes it easier for you to transmit live streaming to Twitch, Youtube, Facebook, Twitter, OBS, Potplayer and VLC.
  • 【HDMI LOOP-OUT】Based on the high-speed USB 3.0 technology, it can capture one single channel HD HDMI video signal. There is no delay when you are playing game live.
  • 【Support Mic-in for Commentary】Rybozen capture card has microphone input and you can use it to add external commentary when playing a game. Please note: it only accepts 3.5mm TRS standard microphone headset.

Wait for the content you need

Navigation completing does not necessarily mean a JavaScript-heavy page is ready for a useful screenshot. A page can continue loading data, rendering charts, or revealing content after its initial document load. Cloudflare warns that the default load behavior may capture an incomplete result and documents wait strategies such as networkidle0, networkidle2, and waiting for a selector to appear.

Prefer a selector that signals the specific content you need when one exists. Network-idle waits can be unsuitable for pages that keep long-lived network connections open; a service-specific delay can help in some cases, but it is less precise and may add unnecessary wait time. Confirm the available settings in the service documentation.

Improve sharpness with device scale

If text or interface details look pixelated, check the renderer’s device scale factor as well as the viewport size. Cloudflare documents that a larger viewport can look blurry when deviceScaleFactor is too low and shows increasing that setting. A larger scale can also produce a larger output image, so use the smallest dimensions that meet your visual needs.

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

Authenticate the API and the target page separately

There are two distinct access checks. The bearer token in the cURL example authenticates your request to Cloudflare’s screenshot API. It does not log the browser into the webpage being captured.

If the target page requires access, Cloudflare documents session cookies, HTTP Basic Auth, and custom authorization headers for the target request. Use the method the target site and screenshot endpoint support. Keep API keys and session credentials out of shared scripts, source control, public logs, and URLs when the service supports header-based authentication. For GET-based screenshot APIs, query parameters may put a key in request logs; ScreenshotEngine’s quickstart recommends POST for server integrations to avoid exposing an API key in the request URL.

Rank #3
Capture Card, USB Video Capture Card Device, Audio Video Converter Grabber for RCA to USB-Convert VHS Mini DV VCR Hi8 DVD to Digital, for PC TV Tape Player Camcorder, MAC Windows Vista Compatible
  • AV TO USB Converter: Capture videos and audios from VHS, VCR, Hi8, DV tapes to a PC, with the help of our USB Video Converter. Save room while digitizing your favorite old memories
  • Quality Capture Card: Our USB Video Capture Card converting anolog RCA composite input into HD 720P USB output and capturing audio without any sound card. Advanced signal processing technology provides you with great precision, colors, resolutions, and details.
  • Plug and Play: Automatically install the driver once you hook up this RCA to USB Converter to a PC. No external power is needed. User-friendly and easy to operate
  • Wide Compatibility: The Video Capture Card can work with video devices with RCA connector or S-Video connector, such as VHS, VCR, Hi8, camcorder, compatible with Windows and Mac OS. Support video formats like NTSC, PAL, and support brightness, contrast, hue, and saturation control
  • Note: The Video Converter is used with acquisition software. We recommend OBS Studio or PotPlayer for Windows, and QuickTime Player for Mac. They can be downloaded for free online. Please operate according to the steps in User Manual or contact us if you have any questions

Adapt the request to other screenshot services

Do not assume every screenshot API accepts the same HTTP method or returns the same kind of response. For example, HTML/CSS to Image documents a cURL POST to https://hcti.io/v1/image with JSON and format set to png; its described result is a hosted .png URL. In that workflow, cURL receives a URL in the API response rather than necessarily receiving PNG bytes to save directly.

ScreenshotEngine’s quickstart demonstrates a GET-style request and advises using --data-urlencode for parameters, particularly when the target URL contains its own query string or special characters. That encoding guidance is specific to a query-parameter request; follow the chosen service’s documented authentication and request contract.

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

Before you wire a service into a script, verify these details in its documentation:

  • Whether the endpoint uses GET or POST, and the exact URL and authentication method.
  • Whether the response body is image bytes, JSON containing a hosted image URL, or an error payload.
  • How to request PNG output and whether the service defaults to another format.
  • Whether viewport, full-page, element-selector, wait, and authentication controls are available.
  • Any output dimensions, page-size limits, timeouts, or usage charges that apply to your account.

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server for developers. It accepts a URL in one GET request and can return PNG, JPEG, WebP, or PDF output. Its API performs the browser capture; you do not install and maintain the rendering browser for this request.

Here is a cURL call that saves a PNG:

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

The filename in this example is shot.webp, so change it to shot.png when requesting PNG output. See the ScreenshotNeo API documentation for the output-format parameter and the other supported request options. Python and Node.js examples are available there as well.

Rank #4
Video Capture Card, 4K USB3.0 HDMI to USB C, 1080P60FPS HDMI Capture Card for Streaming, Gaming, Video Recording Compatible with Switch, Xbox, PS4/5, OBS,iPad Mac OS Windows,Camera, Zoom(Silver)
  • 【4K HDMI Input, 2K@30Hz Recording】Powered by a true USB 3.0 high-speed interface, the capture card supports up to 4K@30Hz HDMI input and records at 2K@30Hz or 1080P@60Hz. Perfect for gamers, streamers, and professionals who need crisp, smooth video for live streaming, gameplay recording, or online meetings.
  • 【Ultra Low Latency Screen Sharing】Built with a premium aluminum alloy shell and advanced chipset for stable heat dissipation, ensuring ultra-low latency transmission. Capture high-quality video and dual-channel audio in real time—no lag, no frame drop—ideal for Twitch, YouTube, or OBS streaming.
  • 【Easy Plug and Play, Compact & Portable】No driver or external power required—just plug and play via USB 3.0 or Type-C connection to your Windows or macOS computer. Lightweight and compact design makes it easy to carry for outdoor streaming, live shows, or mobile recording setups.
  • 【Wide Compatibility & Multi-Device Support】Compatible with Windows 7 8 10 11, macOS, Linux,Android and supports most popular software such as OBS, Zoom, VLC, Twitch Studio, and more. Works seamlessly with PS4, PS5, Xbox, Switch, DSLR cameras, TV boxes, and other HDMI-output devices for streaming to YouTube, Twitch, etc.
  • 【What You Get】Includes: HDMI Capture Card, USB 3.0 to USB-C Adapter, User Manual. Tips: Make sure your tablet’s OTG function is enabled before connecting. Test your HDMI device with a monitor first to confirm video and audio output, then connect to the Video Capture Card for recording.

ScreenshotNeo removes cookie and consent banners, newsletter popups, and chat widgets before capture; each cleanup step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed; responses report the page verdict and billing status in headers. Its MCP server exposes take_screenshot, get_page_info, and capture_pdf for Claude, Cursor, and other MCP clients.

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

The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 screenshots. Sign up for 1,000 free screenshots a month with no card.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot a missing, wrong, or incomplete PNG

The output file contains JSON or an error message

The API may have rejected the request or returned a structured error instead of image bytes. Check the HTTP status and response body, verify the endpoint, credentials, required fields, and format setting, and avoid opening the result as though it were a PNG. Some services document error JSON explicitly; ScreenshotEngine’s quickstart uses --fail-with-body so HTTP errors are surfaced.

The image is blank or the page is only partly rendered

The target may need more time after navigation, or the expected content may depend on JavaScript. Configure a supported wait condition or wait for a selector that appears only once the content is ready. If the page requires a login, supply target-page cookies or credentials using the renderer’s documented mechanism; API authentication alone does not grant access to the site.

The target URL has query parameters

When the endpoint takes the target URL as a GET parameter, encode that parameter instead of concatenating it raw into the request URL. Otherwise, question marks, ampersands, or other special characters in the target can be interpreted as parameters to the screenshot API. ScreenshotEngine recommends cURL’s --data-urlencode for this case. For a JSON POST, use valid JSON and the service’s required content type.

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.

The screenshot looks blurry

Review the viewport dimensions and device scale factor supported by the renderer. Cloudflare specifically documents increasing deviceScaleFactor when a larger viewport looks blurry at a low scale. Recheck the resulting image dimensions and file size after changing it.

Best Value
VIXLW 4K HDMI Video Capture Card, Cam Link Card, HDMI to USB 2.0 Game Audio Adapter, Record Capture Device for Streaming, Teaching, Gaming, Live Broadcasting, Video Conference [Windows]
  • 【4K VIDEO CAPTURE CARD】Made with upgraded chip, captures 4K@60Hz video input at full speed, no lag, no delay, capture card also supports 1920×1080@30Hz highest image quality output, capture video to USB through HDMI, you can Directly save to computer and mobile phone; suitable for high-definition video live broadcast, video capture, online conference, video streaming, video course; equipped with high-definition USB cable.
  • 【HDMI real-time screen sharing】The HDMI interface is made of nano-metal material, so that the video can reach ultra-low latency. The audio and video capture card can capture video and audio at the same time, and store the video signal into the computer and smartphone, and support OBS post-video. Editor, this is an excellent solution for online meetings and live broadcasts, economical and fast, 4K HDMI Capture Card is widely used in live broadcast, conference, photography, medicine, daily office.
  • 【Plug and Play】4K video capture card has built-in drivers, no need to install complicated programs, no external power supply, plug and play, very convenient, just plug into your computer, you can use it, the shell is made of aluminum alloy seamlessly , small size, very convenient to carry, suitable for capturing interesting details in life, can be used for indoor and outdoor live broadcast, and the color of the picture is more delicate.
  • 【Wide Compatibility】The video capture card adopts advanced chips, intelligent identification equipment, and is widely compatible with electronic equipment, which can easily capture wonderful moments and comes with a USB cable. It supports third-party video capture software such as OBS, Win, MacOs, Android, etc. It can also perform video capture and online live broadcast at the same time, store and share videos at the same time, and easily realize video splicing, which is very convenient.
  • 【24 hours local technical support】We have a professional technical team for more than ten years, serving you 24 hours a day. You are welcome to contact us if you have any questions.

The screenshot does not include the entire page or desired element

Confirm that the endpoint supports full-page capture or selector capture and that you sent the option in its documented format. A viewport screenshot will not automatically expand to the full document. Selector controls are not universal, and a selector must match an element that exists when the renderer evaluates it.

The request is slow or times out

Long waits, pages with heavy scripts, and network-dependent content can all delay capture. Use a targeted readiness selector where practical instead of an unnecessarily broad wait, and set realistic client-side timeouts for the endpoint. A cURL timeout does not necessarily cancel work already accepted by a service, so check its job or billing behavior before automatically retrying failed requests.

Managed API or self-hosted renderer?

A managed screenshot API is useful when you want a browser rendered for you without operating the browser infrastructure. A self-hosted renderer gives you control of the deployment, but you own installation, scaling, updates, monitoring, and troubleshooting. Splash is one self-hosted option with local HTTP endpoints; its availability does not change the basic division of work: cURL makes the request, while the renderer produces the screenshot.

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

Choose based on the system you need to operate, not just the shell command. For either approach, establish how it handles authentication, page readiness, capture dimensions, response type, and failures before relying on it in CI or a production job.

Automate captures safely

  • Store API credentials in environment variables or a secrets manager and pass them using the provider’s recommended authentication method.
  • Check HTTP status and response content before marking a capture successful.
  • Use unique output names when saving repeated captures so parallel runs do not overwrite each other.
  • Set the viewport, wait rule, and capture extent explicitly when visual consistency matters.
  • Retry only transient failures, with a bounded retry policy; a persistent page error will not be fixed by repeating the same request.
  • Track the service’s account usage and response semantics so that a hosted URL, cache hit, or failed capture is handled as intended.

Frequently Asked Questions

Can cURL take a webpage screenshot by itself?

No. cURL sends the HTTP request and saves the response; a browser renderer must load and capture the webpage.

Why does my PNG output contain JSON?

The service likely returned an error payload or a JSON response containing an image URL. Check its status code and response contract before treating the body as image data.

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.