DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober 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 Scan×
Skip to content
World desk6 min

How to Capture a Webpage Screenshot with an API Key

A practical guide to authenticated webpage screenshot requests: Cloudflare Browser Run, key safety, capture options, response checks, and common fixes.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To capture a webpage with an API, send an authenticated request to a screenshot service, provide the target URL, and save the image response. The service’s API key authorizes your request to that service; it does not automatically sign you in to a protected target website. For Cloudflare Browser Run, the REST API uses a Bearer token and a POST request. Keep that token on your server, check the response before saving it as an image, and supply separate target-site credentials if the page requires login.

Capture a screenshot with Cloudflare Browser Run

Cloudflare Browser Run accepts a screenshot request at https://api.cloudflare.com/client/v4/accounts/<accountId>/browser-run/screenshot. Replace <accountId> with your Cloudflare account ID and <apiToken> with a custom API token. The endpoint guide specifies the Browser Rendering - Edit permission for that token. Include either a url or html value in the JSON request. See the Cloudflare Browser Run screenshot documentation for endpoint details and options.

As an Amazon Associate I earn from qualifying purchases.

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

This command saves the response body as screenshot.png. Use a real account ID and token; the angle-bracketed values are placeholders. For a Workers integration, Cloudflare also documents a Browser Rendering binding that does not require an API token.

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.

Adjust what the capture includes

Cloudflare’s request supports screenshot controls inside screenshotOptions, page navigation controls inside gotoOptions, and a viewport setting. For example, its documentation demonstrates a 1280 × 720 viewport, networkidle0 as a wait condition, and a 45-second timeout. These are example values, not universal defaults; choose settings suitable for the page and verify the current API schema.

#1 Best Overall
IPEVO V4K Ultra High Definition 8MP USB Document Camera — Mac OS, Windows, Chromebook Compatible for Live Demo, Web Conferencing, Distance Learning, Remote Teaching, Green
  • Features an 8 Megapixel camera for capturing Ultra High Definition live images up to 3264 x 2448 pixels
  • High frame rate for lag-free live streaming – streams at up to 30 fps at full HD, and up to 15 fps at 3264 x 2448 pixel
  • Fast focusing speed helps minimize interruptions for frequent switching between different materials; features Sony CMOS Image Sensor for exceptional noise reduction and color Reproduction – great for capturing in dimly lit environments
  • Designed and made in Taiwan. Multi-jointed stand offers a simple fix for tightening loose joints caused by heavy daily use.Max Shooting Area:13.46 inch x 10.04 inch
  • Works with a variety of software and applications on Mac, PC and Chromebook that allows you to use it in different ways. System Requirements - Mac Intel Core i5 CPU 2.5 GHz or higher, OS X 10.10 or higher, Solid-state drive, and 200MB of free hard disk space, 256MB of dedicated video memory (For lag-free live streaming up to 1920 x 1080, and video recording of 1920 x 1080). Windows Recommended Requirements - Microsoft Windows 10,Intel Core i5 CPU 3.40 GHz or higher, 4 GB RAM, 200MB of free hard disk space, 256MB of dedicated video memory (For lag-free live streaming up to 1920 x 1080, and video recording of 1920 x 1080)
curl -X POST 'https://api.cloudflare.com/client/v4/accounts/<accountId>/browser-run/screenshot' 
  -H 'Authorization: Bearer <apiToken>' 
  -H 'Content-Type: application/json' 
  -d '{
    "url":"https://example.com",
    "screenshotOptions":{"fullPage":true},
    "viewport":{"width":1280,"height":720},
    "gotoOptions":{"waitUntil":"networkidle0","timeout":45000}
  }' 
  --output screenshot.png
  • Set screenshotOptions.fullPage when you want a full-page capture rather than only the visible viewport.
  • Set viewport dimensions to control the browser window size used to render the page.
  • Use gotoOptions to configure navigation and waiting. A network-idle wait may not suit every site, particularly pages with continuing background requests.
  • For one element rather than the whole page, Cloudflare’s guide shows the selector option. Check the guide for its expected placement and supported values.

Keep API authentication separate from target-site login

The Bearer token authenticates your request to Cloudflare. If the destination page is behind a login, the browser needs its own target-site authentication. Cloudflare documents session cookies, HTTP Basic credentials through authenticate, and target authorization headers through setExtraHTTPHeaders. These credentials serve the target website, not the screenshot API. Do not assume another provider offers the same mechanisms.

Cloudflare’s endpoint-specific guide names Browser Rendering - Edit for a custom token. Its broader API reference describes API tokens as the preferred method, lists legacy X-Auth-Email and X-Auth-Key headers, and lists Browser Rendering Write among accepted permissions. These terms appear in different documentation scopes; use the permission required by the endpoint guide for the request you are implementing, and consult the current references rather than treating the labels as interchangeable. See the Cloudflare Browser Rendering API reference.

Rank #2
THUSTAR 8MP Document Camera & Webcam 4K with Dual Microphones, USB Visualiser A3-Size, 3-Level LED Lights, Image Invert Function, Fold, for Live Demo, Distance Education -Windows, macOS and Chrome OS
  • USB Document Camera with adjustable image reversal: The camera that can manually adjust image reversal. In video chat or image output, the image can be freely adjusted left/right and up/down; you can also manually adjust the reversed image that appears in the device to a normal image
  • 8MP/2448P document camera with 30fps: it output ultra-high-definition images and videos live transmission, up to 2448P megapixels. Press the focus button once to automatically focus the document camera once. Moving the object under the lens, the camera will not be arbitrary automatic focus and the image dance. Macro can capture objects as close as 3.94"
  • Document Camera with Adjustable Image Brightness : the usb camera has brightness (plus) and brightness (minus) buttons, you can manually adjust the image brightness with 10 degree, to make sure that you can get the clear image. Camera comes with 14 ring lamp beads, 3 levels of brightness adjustable, which can eliminate shooting problems under difficult lighting conditions, allowing you to capture objects in dark and bright environments, and can also achieve Selfie fill-in function
  • Foldable Document Camera for teachers/classroom: embedded design, occupies a small space after folding, easy to carry; Multi-joint support with multi-angle rotate freely usb camera can capture 2D and 3D objects better and shooting high-definition images and videos. Maximum covering area: 16.5" x 116" in. (A3 paper)
  • USB Camera with highly compatible, plug-and-play : applicable to Windows PCS, Macs, and Chromebooks, automatically installs drivers when the device is plugged in, compatible with Tiktok, Google Meet, Skyp-Microsoft Teams, Zoom; it has built-in dual silicon microphones, which can reduce noise and improve sound quality

Protect the key and verify the response

Store credentials on the server

Read the API token from server-side secret storage or a server environment variable. Do not put it in public client-side JavaScript, a public environment variable, a repository, or a published URL. Avoid logging Authorization headers or key-bearing query strings. If a credential is exposed, revoke or replace it according to the provider’s process.

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

Do not assume every successful-looking file is an image

Screenshot APIs differ in how they return captures. ScreenshotEngine documents a successful HTTP 200 response as image bytes and errors as JSON; a failed request saved with an image extension is still an error response, not a screenshot. Check the HTTP status and response content type before treating a response body as an image. Follow the selected provider’s response contract, since some services may return a URL or another format instead.

Rank #3
Document Camera for Teachers and Classroom, Gawervan USB Webcam/Doc Camera Built-in Mic— Mac OS, Windows, Chromebook Compatible for Live Demo, Web Conferencing, Distance Learning, Remote Teaching
  • 🔍 3-in-1 Versatile Tool: The document camera transforms into a dynamic webcam and visualizer, ideal for classroom lessons or remote teaching. Adjust its 360° lens to capture crisp 1080P live demos, worksheets, or 3D objects—perfect for teachers and students sharing resources interactively
  • 🎒 Portable USB Design: Foldable hose and compact build make this USB document camera a travel-ready companion. Effortlessly rotate it for multi-angle views during video calls or homeschool sessions—no bulky setups required
  • 🎥 Crystal-Clear Focus & Detail: Designed as a document camera for teachers, its manual focus ensures sharp, blur-free images even in dim lighting. Show fine text, science experiments, or art projects in stunning 1080P resolution at 30fps
  • 🎤 Noise-Reduced Collaboration: Dual built-in mics eliminate background noise, delivering studio-quality sound for Zoom, Google Meet, or TikTok lessons. Perfect for classroom discussions, parent-teacher conferences, or lively student Q&A sessions
  • 💻 Plug-and-Play Compatibility: Works seamlessly with Windows, Mac, Chromebook, and apps like Microsoft Teams or Skype. Includes USB-C for instant setup—ideal for document camera for classroom tech or home office video chats!

Use another provider only according to its own API contract

ScreenshotEngine’s documented quickstart uses a different endpoint and authentication pattern. Its POST example sends a Bearer key to https://api.screenshotengine.com/v1/screenshot, includes a URL in a JSON body, and writes the response to a file. Its documentation says GET requests use an api_key query parameter, while POST is recommended for server integrations to keep the key out of the request URL. Do not copy Cloudflare’s endpoint, permissions, or target-page authentication options into a request for another provider.

curl -X POST 'https://api.screenshotengine.com/v1/screenshot' 
  -H 'Authorization: Bearer YOUR_API_KEY' 
  -H 'Content-Type: application/json' 
  -d '{"url":"https://example.com"}' 
  --output screenshot.png

ScreenshotEngine describes its endpoint as intended for public URLs and says it does not expose custom cookies, target-site Authorization headers, or login scripts. For its exact request and response behavior, see its quickstart documentation. These limitations are specific to that service, not a general rule for screenshot APIs.

Rank #4
INSWAN INS-1 Classic USB Document Camera/Webcam, 8MP, Built-in LED, Mic
  • [Crystal-Clear Imaging and Smooth Video Streaming] 8 Megapixel Ultra-High definition SONY camera captures live images at up to 3264 x 2448 pixels with lag-free video streaming at 30 fps across all resolutions.
  • [Your Space-Saving Multi-Joint Camera] Experience the durability of our multi-joint design while enjoying a generous viewing size of 14.72 x 11 inches. This compact camera is perfect for your desktop set up.
  • [Powerful Features, Crisp Image] Featuring LED light, and an anti-glare sheet for exposure challenges in varying lighting. 7-segment brightness control, image flip, and built-in mic ensure top-notch performance. Autofocus lens and macro capability (capturing objects as close as 3.9 inches).
  • [Feature-Packed INSWAN Documate Software] The bundled full-function INSWAN Documate software offers digital zoom, image annotation, hue adjustment, image rotation/flip, video recording, snapshots and other useful features. Download the latest version for free and access tutorial videos!
  • [Plug-n-Play & High Compatibility for Effortless Conferencing] The INS-1 comes with a USB-A cable for instant plug-and-play operation. Seamlessly works with Documate and other webinar software on PC (Windows 7/8/10/11), Mac (OS13.5 or higher), iPad (OS 17 or higher; must have a USB-C port) , Chromebook (38.0 or higher). Designed and made in Taiwan.

Troubleshoot common capture problems

  • Unauthorized or forbidden response: Check that the token is present, correctly formatted as Authorization: Bearer …, belongs to the intended account, and has the permission required by the selected endpoint. For Cloudflare Browser Run, the endpoint guide specifies Browser Rendering - Edit.
  • Request rejected as invalid: Confirm the account ID and endpoint path, valid JSON syntax, and that the body includes either url or html. Check option names against the provider’s current API documentation.
  • Output file contains JSON or is unreadable: Inspect the HTTP status and content type before saving or opening the body as an image. Providers may return structured error details instead of image bytes.
  • Capture shows a login page or access-denied page: The API token does not authenticate you to the target website. Configure target-site cookies, Basic credentials, or headers only if the chosen rendering API supports them.
  • Page is incomplete or timed out: Review the navigation wait condition and timeout, and consider whether the site keeps network activity open. Cloudflare’s documentation examples show networkidle0 and 45 seconds, but those values are not guaranteed to fit every site.
  • Key appeared in a URL or log: Treat it as exposed, rotate or revoke it, and change the integration to send credentials in a server-side request header where the provider supports that method.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server. Its one-call GET endpoint returns an image or PDF, and its parameters include ones used by other screenshot APIs to make switching easier. The API key authorizes ScreenshotNeo; it does not replace credentials required by a protected target site.

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.

Install no browser for this request; send the URL and your ScreenshotNeo key to the API. See the ScreenshotNeo API documentation.

Best Value
PAKOTOO 8MP USB Document Camera for Teachers and Classroom for A3 A4 Size with Dual Mic, 3-Level LED Light, Up and Down, Left and Right Image Inversion, for Distance Teaching & Learning
  • Document camera with Image reversal function: The image reversal function can be realized through the button (no need to pass the software). When video chatting or picture output, the picture can be freely reversed left and right, up and down; The PAKOTOO document camera connects the computer via USB 2.0 cable, it does not support zoom and HDMI features, nor it does compatible with iPad.
  • Document camera for teachers with 3 levels of brightness adjustment and 10 levels of exposure adjustment: The brightness function can be realized by buttons to ensure that you can get clearer images. It can also realize the Selfie fill light function in dark and bright environments
  • Document camera for classroom with Foldable: Embedded design, takes up little space after folding, and is easy to carry; multi-joint supports multi-angle free rotation, which can better capture 2D and 3D objects. Maximum coverage area: 16.5" x 11.6" in (A3 paper)
  • USB document camera with autofocus: 2448P high-definition document cameras, press the focus (AF) button once, and the document camera will automatically focus once. Move the object under the lens, the image will not be blurred. Macro captures objects as small as 3.94"
  • Important: PAKOTOO Document camera is not plug and play. You need to select "USB Camera" in the system that comes with your computer. The document camera is equipped with a USB-C cable, which can be directly used with devices with USB-C interface such as MacBook. Compatible with Windows PCS, Macs and Chromebooks, works with Tiktok, Google Meet, Skyp-Microsoft Teams, Zoom; If you encounter any problems during the use of the product, or the computer does not recognize the camera, please be sure to contact our friendly support team for a quick solution.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
  • Cookie and consent banners are accepted before capture, and 60+ known consent platforms, newsletter popups, and chat widgets can be removed; each step can be turned off.
  • Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing. Response headers identify the page verdict and whether the request was billed.
  • An MCP server provides take_screenshot, get_page_info, and capture_pdf tools for Claude, Cursor, and other MCP clients.
  • The Free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots.

Sign up for ScreenshotNeo’s free plan to get 1,000 screenshots a month with no card.

Choose an API based on the request you need

Before integrating a screenshot service, compare its credential method and permission scope, whether it can reach protected target pages, which capture controls it exposes, and what its response contains. The reviewed documentation does not establish comparative pricing, reliability, latency, quotas, or service-level guarantees for Cloudflare Browser Run and ScreenshotEngine, so those factors should be checked directly with providers rather than inferred from these examples.

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
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair 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.