October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk6 min

How to Capture Cookie-Protected Pages with a Screenshot API

Learn how to pass session cookies to a screenshot API, choose the right authentication format, wait for protected content to render, and diagnose failed captures.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To screenshot a page that requires a login, pass the screenshot API a current session cookie that is valid for the target site, use the cookie format that API expects, and wait until the protected content has rendered. Then inspect the returned image: a successful API response can still show a login page or an error instead of the page you intended to capture.

Before you send a cookie

Use a cookie only for an account and site you are authorized to access. A screenshot API cannot infer your browser’s logged-in session from a URL; you must supply a credential the site accepts. The reviewed provider documentation explains how to pass credentials, but does not prescribe a universal process for logging in and obtaining them. ScreenshotOne notes that obtaining a site cookie may require custom sign-in code. ScreenshotOne’s authenticated-pages guide

As an Amazon Associate I earn from qualifying purchases.

Treat session cookies, passwords, and authorization tokens as secrets. Do not put live values in shared examples, source control, public URLs, or logs. Use the minimum credential needed, and follow your site’s supported integration and access policies.

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.

Choose the authentication method the page uses

Cookies are one option, not a universal solution. Match the credential to the target’s authentication mechanism and use the syntax documented by your chosen screenshot service.

#1 Best Overall
Sale
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.
Method When it fits Documented approach
Session cookie The site authenticates an existing browser session with a cookie. Cloudflare Browser Run accepts a JSON array of cookie objects. ScreenshotOne demonstrates a serialized cookie string with attributes such as domain, path, HttpOnly, Secure, and SameSite. Their formats are not interchangeable. Cloudflare Browser Rendering documentation; ScreenshotOne guide
HTTP Basic Auth The target prompts for a username and password using Basic Authentication. Cloudflare documents an authenticate object with username and password. Cloudflare Browser Rendering documentation
Custom authorization header The target accepts a bearer token or another named HTTP header. Cloudflare documents setExtraHTTPHeaders; ScreenshotOne documents custom headers, including an Authorization header. Use the target’s required header name and value format. Cloudflare Browser Rendering documentation; ScreenshotOne guide
Firewall allowlisting You operate the target site and want to permit a screenshot provider’s servers through its firewall. ScreenshotOne describes this for sites you control. It is not a general method for bypassing a third party’s login or access controls. ScreenshotOne guide

Capture an authenticated page with Cloudflare Browser Run

Cloudflare’s documented screenshot endpoint is https://api.cloudflare.com/client/v4/accounts/<accountId>/browser-run/screenshot. Its REST example sends the target URL and a cookies array containing the cookie’s name, value, domain, and path. Replace the placeholders below with your account ID, API token, authorized target URL, and current cookie. The API token authenticates your request to Cloudflare; the session cookie authenticates the browser to the target site. They are separate credentials.

curl --request POST 
  "https://api.cloudflare.com/client/v4/accounts/<accountId>/browser-run/screenshot" 
  --header "Authorization: Bearer <CLOUDFLARE_API_TOKEN>" 
  --header "Content-Type: application/json" 
  --data '{
    "url": "https://example.com/protected-page",
    "cookies": [
      {
        "name": "session_id",
        "value": "<YOUR_SESSION_COOKIE_VALUE>",
        "domain": "example.com",
        "path": "/"
      }
    ]
  }' 
  --output protected-page.png

Use an API token with the documented Browser Rendering permission for REST access, or use Cloudflare’s documented Workers binding approach. The response/output handling can depend on the endpoint’s documented response format; check the current Browser Rendering documentation for the request and response details before integrating it into a production workflow. Cloudflare Browser Rendering documentation

Rank #2
Sale
acer USB 3.0 HDMI Capture Card, 4K HDMI Loop-Out, 1080P 60Hz for Streaming
  • 【4K Clarity, 1080P Performance】Enjoy stunning clarity with our USB 3.0 Video Capture Card—featuring 4K input and smooth 1080P@60Hz output. Featuring YUY2 technology, it delivers richer colors than MJPEG for lifelike live streaming and recording. Plus, it delivers high-quality video with minimal latency, making it perfect for gamers and content creators.
  • 【Mic-in for Easy Commentary】Plug in a headset or mic directly to stream/record voice easily—no extra adapters. Great for real-time gaming commentary, online classes, or vlog dubbing. Paired with its low-latency tech, it keeps voice synced perfectly with video, eliminating post-editing hassle from mismatched audio-visuals. Fits most 3.5mm devices—ideal for gamers, teachers, creators.
  • 【Plug and Play, no Extra-Drivers】No extra drivers or external power—just plug in and start capturing instantly. Small and lightweight, it fits easily in your bag for outdoor live streams, on-the-go recordings, or emergencies. Ideal for game capture, video conferences, and online teaching, it saves hassle while delivering smooth results.
  • 【Wide Compatibility: Apps & Devices】No extra adapters—works flawlessly with your go-to platforms and gear. It pairs with streaming/recording apps like Twitter, YouTube, Facebook, OBS, XSplit, and VLC, plus devices including Switch/Switch2, PS5/PS4, Xbox, DSLR cameras, PC, macOS, and Android. Whether gaming, streaming, or hosting video calls, it keeps HD quality intact, eliminating "compatibility headaches".
  • 【Worry-Free After-Sales Support】We are committed to delivering exceptional quality products that combine sophisticated design with affordable pricing, offering you the best solutions for seamlessly connecting your work and life. Whether you're a newcomer or a seasoned user, feel free to reach out anytime with any questions—your satisfaction is our top priority.

Check cookie scope and validity

Set the cookie’s domain and path to match the host and URL path it is intended to cover. A cookie for another domain or a narrower path may not accompany the request. Preserve the attributes and serialization required by the provider you use. Cookie syntax from one API should not be copied blindly into another.

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

Wait for the protected content

A page can navigate successfully before its JavaScript application has loaded the account data. Cloudflare recommends waiting for network idle or for a known selector. Its documented gotoOptions.waitUntil options include networkidle0 and networkidle2. Where a stable element identifies the authenticated content, waiting for that selector can be more useful than waiting for all network activity to stop, especially when the page keeps long-lived connections open. Cloudflare Browser Rendering documentation; Cloudflare snapshot documentation

Rank #3
Audio Express AXHDCAP 4K HDMI Video Capture Card, Cam Link Card Game Audio Adapter HDMI to USB 2.0 Record Capture Device for Streaming, Live Broadcasting, Video Conference, Teaching, Gaming
  • [Enhanced 4K-1080P Video Capture Experience] Capture the Magic: Elevate your video recordings to new heights with our upgraded anti-static 1080P Video Capture Card. Immerse yourself in stunning visuals, supporting HDMI input at 4K 60FPS and USB output for capturing in 1080P, complete with rich stereo sound. Enjoy crystal-clear video recordings, dynamic gaming live streams, and professional conference broadcasts. Note: HDMI resolution: Max input can be 3840×2160@30Hz / Video output resolution: Max output can be 1920×1080@30Hz
  • [Seamless Real-Time Preview] Stay in the Moment: Our advanced ultra-low latency technology ensures seamless real-time transmission of video streams. Experience instant, lag-free previews, allowing you to capture every detail precisely. Effortlessly record video directly to your hard disk, all without compromising on quality or introducing any delays.
  • [Versatility and Broad Compatibility] Your Creative Hub: Connect your DSLR, camcorder, or action camera to a wide range of operating systems, including Windows, MacOS, and Linux. Unlock a world of possibilities with real-time streaming to popular platforms like Twitch, Youtube, OBS, Zoom, Potplayer, and VLC, giving you the tools to share your content effortlessly.
  • [Effortless Plug and Play] Simplicity Redefined: Say goodbye to complex installations. Our plug-and-play design eliminates the need for drivers or external power supplies. Seamlessly integrate high-definition acquisition into various scenarios, whether it's educational recordings, immersive gaming, precise medical imaging, captivating live streams, or professional broadcasting.
  • [Seize Every Detail with Precision] Unleash your creativity and attention to detail with our video capture card. Capture every nuance, every color, and every moment with precision, thanks to the enhanced capabilities of our technology. Whether you're a content creator, a gamer, or a professional, our capture card empowers you to seize the finest elements and bring them to life in your recordings and live streams.

Use the cookie format required by the API

Cookie representations differ between providers. Cloudflare’s example uses structured JSON fields: name, value, domain, and path. ScreenshotOne’s guide instead demonstrates its expected formatted cookie string, including cookie name/value and attributes such as domain, path, HttpOnly, Secure, and SameSite. Follow the provider’s current instructions for the request method you are using, including any URL-encoding requirement. Do not reuse the guide’s embedded sample session value as a credential. Cloudflare documentation; ScreenshotOne guide

Verify the capture rather than trusting the response

Inspect the image for the expected account or page content. An image response alone does not establish that authentication succeeded: it may contain a login form, an access-denied message, or a partially rendered application. If the wrong page appears, first check the cookie value and scope, then check whether the target allows the provider’s access. If the page is merely incomplete, adjust the render wait rather than assuming the cookie is invalid.

Rank #4
Sale
4K HDMI Capture Card, USB 3.0 Video Capture Card for Streaming
  • 【1080P 60FPS Video Capture Card】This 4K HDMI capture card delivers smooth Full HD 1080P 60FPS recording with low latency, making it an ideal video capture card for game streaming, online teaching, video conferencing, and content creation. The HDMI video capture card supports 4K@30/60Hz and 1080P@120/144Hz input, while output resolution supports up to 2K@30Hz for sharp and detailed visuals.
  • 【Plug & Play USB Capture Card】Designed for convenience, this USB 3.0 video capture device is truly plug and play. Simply connect the HDMI to USB capture card to your computer, and Windows, macOS, or Linux will recognize it instantly. No drivers or extra software required, making this capture card for streaming perfect for beginners and professionals alike.
  • 【Wide Compatibility for Gaming & Streaming】This game capture card is compatible with Nintendo Switch 2, Switch OLED, PS5, PS4, PS3, Xbox Series X/S, Xbox One, Steam Deck, cameras, and other HDMI devices. Whether you need a capture card for PS5 gameplay, a Nintendo Switch capture card, or a Switch 2 capture card for content creation, this device delivers reliable performance across multiple platforms.
  • 【Mic & Headphone Monitoring Support】Featuring a built-in 3.5mm microphone input and headphone output, this HDMI capture card allows real-time audio monitoring and voice commentary. Easily record gameplay, meetings, tutorials, and live broadcasts while keeping audio and video perfectly synchronized for a professional streaming experience.
  • 【Complete Package & Reliable Support】Package includes 1 x 4K capture card, 1 x USB 3.0 cable, 1 x HDMI cable, and 1 x user manual. This USB video capture card is built for long-term use and backed by an 18-month warranty and responsive customer support, providing peace of mind for streaming, recording, and content production.

Cloudflare says Browser Run requests remain identifiable as bot traffic; changing the user-agent does not bypass bot protection. Credentials do not override a site’s policy or automation defenses. Use an authorized integration path supported by the target rather than trying to disguise automation. Cloudflare Browser Rendering documentation

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

Troubleshoot common failures

What the image shows Likely cause What to check
A login form or signed-out page The cookie is expired, incorrect, out of scope, or formatted incorrectly for the screenshot API. Obtain a current cookie for the authorized account; verify the target domain and path; confirm the provider’s required cookie representation.
A blank or partly rendered application The capture ran before client-side content finished rendering. Wait for network idle or a selector that identifies the protected content. Avoid relying only on navigation completion for a JavaScript-heavy page.
An access-denied page or challenge The site may block automated traffic or the integration may not be permitted. Confirm the site’s automation policy and use an approved access path. A different user-agent is not a documented way around Cloudflare’s bot identification.
A cookie that works in one API but not another The providers accept different cookie formats or attribute conventions. Reformat the cookie according to the destination API’s own documentation instead of copying a serialized value unchanged.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

When you need both a screenshot and page data

Cloudflare’s /snapshot endpoint can return rendered content and a screenshot in one call, which may suit workflows that need both a visual capture and structural page data. See the endpoint documentation for its supported request options. Cloudflare snapshot documentation

Best Value
Sale
Fifine AmpliGame Video Capture Card, HD 1080 60fps for Audio Video, Gaming, Live Streaming, 4K HDMI to USB Capture Card Compatible with PS4/Windows/Mac OS/Switch/Xbox-V3
  • [Real-Time HD Video Capture] Delivering smooth, stutter-free footage at 1080P/60FPS via USB 3.0, this USB 3.0 video capture card ensures flawless streaming. It also features a 4K/30FPS HDMI loop-out for zero-latency gameplay while recording. Provide your audience with a stunning, delay-free viewing experience to level up your broadcasts. (Tip: To solve the problem of no screen display, please refer to the user manual and troubleshooting guide in the Product guides and documents section below the listing for specific instructions.)
  • [Wide Compatibility] Adapting effortlessly to your ever-growing gaming collection, this versatile game capture card integrates smoothly with Windows and Mac PCs. Whether playing on PS4, PS5, or PC, this 4K capture card makes connecting and recording incredibly easy. Enjoy a seamless, plug-and-play experience that adapts to all your favorite consoles.(Tip: Please use the original USB cable for best performance.)
  • [Easy to Use] Bypassing complex driver installations, this external capture card for PS5 starts capturing instantly via the provided USB and HDMI cables. Featuring HDMI Output, LINE IN, and Headset Ports, this HDMI video capture card expands your setup perfectly. Enjoy crystal-clear monitor pass-through and seamless teammate communication during intense gameplay.
  • [Controllable RGB Lights] Elevating your streaming aesthetics with dynamic lighting, this switch capture card for XBOX offers 9 vibrant RGB modes to match your content. Whether playing an intense shooter or a relaxing indie game, you can create an immersive environment effortlessly. More than just a USB capture card for PS4, it serves as a stylish centerpiece for your desk.
  • [Versatile Streaming Solution] Seamlessly integrating with popular platforms like OBS, YouTube, Discord, and Twitch, this audio video capture card meets the diverse needs of creators. Whether capturing intense gameplay, broadcasting, or hosting video conferences, it delivers flawless performance. As an essential capture card for streaming PS5, it is a valuable addition to any professional setup.

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server. It supports custom cookies, headers, and authorization, but the cookie syntax and request options should be taken from its documentation rather than inferred from another provider’s examples. For a public target or a request that does not require credentials, its one-call GET example is:

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 authenticated requests and available options. It can accept a cookie/consent banner as a visitor and remove more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers identify the page verdict and billing status. Its MCP server offers take_screenshot, get_page_info, and capture_pdf for AI agents using Claude, Cursor, or another MCP client. 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’s free plan: 1,000 screenshots a month, no card required.

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

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. 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
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

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.