October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowOctober 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 Use the BrowserCat API for a Full-Page Screenshot

A practical guide to BrowserCat’s remote Playwright workflow for full-page screenshots, including runnable code, output options, readiness checks, and troubleshooting.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To capture a full-page screenshot with BrowserCat, connect Playwright to BrowserCat’s hosted Chromium browser, navigate to the page, then call page.screenshot({ fullPage: true }). BrowserCat’s documented flow is a remote browser connection over WebSocket followed by Playwright page methods—not a dedicated screenshot REST endpoint.

What you need

  • Node.js and Playwright installed in your project.
  • A BrowserCat API key.
  • A page URL that the remote browser can access.

BrowserCat’s quick start recommends Playwright and uses the WebSocket endpoint wss://api.browsercat.com/connect, with the key sent in an Api-Key header. See the BrowserCat quick-start guide for its connection instructions.

As an Amazon Associate I earn from qualifying purchases.

Capture and save the entire page

Install Playwright if it is not already a project dependency:

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

Set your API key in an environment variable rather than writing it into source code. For example, in a POSIX shell:

#1 Best Overall
Tworider Screen Repair Kit & Window Screen Replacement Kit with Spline Roller Tool, Spline Removal Hook, Screen Cutter - Easy to Use 5-in-1 Tool for Screen Door Repair, Windows, Patio & Sliding Doors
  • 🌟 All-in-One Screen Solution: Essential for seamless window screen replacement & repairs. This versatile screen repair kit Perfect for DIY screen spline insertion, frame rolling, and mesh tightening – your go-to tool for screen for windows projects.
  • 🔷 Dual Roller Innovation: Features convex (round) & concave (grooved) steel rollers. The concave roller prevents delicate screen tearing during spline rolling, while the convex wheel ensures tight sealing. Ultimate precision for window screen tool tasks.
  • ❖ Ergonomic Wooden Handle: Solid hardwood handle delivers superior comfort during prolonged screen roll installation. Non-slip grip reduces hand fatigue when replacing window screens. Durable steel bearings ensure smooth roller rotation – ideal for screen door repair marathons.
  • 🔧Spline Tool + Screen Roller Tool: Offers three roller diameter options for selection. When replacing window screens, choose the corresponding roller based on the Spline specifications to completely eliminate tool size mismatch issues.
  • 💎 Pro-Grade Durability: Carbon-steel rollers withstand aggressive spline rolling without deformation. your lifetime screen repair tool investment.
export BROWSERCAT_API_KEY="your_api_key"

Then save the following as screenshot.mjs. Replace the example URL with the page you want to capture.

import { chromium } from 'playwright';

const apiKey = process.env.BROWSERCAT_API_KEY;
if (!apiKey) {
  throw new Error('Set BROWSERCAT_API_KEY before running this script.');
}

const browser = await chromium.connectOverCDP(
  'wss://api.browsercat.com/connect',
  { headers: { 'Api-Key': apiKey } }
);

try {
  const page = await browser.newPage();
  await page.goto('https://example.com', { waitUntil: 'load' });
  await page.screenshot({ path: 'page.png', fullPage: true });
  console.log('Saved page.png');
} finally {
  await browser.close();
}

Run it with node screenshot.mjs. The output is a PNG file named page.png. The connection method and endpoint follow BrowserCat’s documented remote Playwright pattern; the screenshot method is Playwright’s. The full-page option asks Playwright to capture the document beyond the currently visible viewport.

Choose a readiness condition for the site

waitUntil: 'load' waits for the page load event, but it cannot guarantee that every image, font, or client-rendered section is ready. For a page that fills in content later, wait for a page-specific selector or application signal before capturing:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
await page.goto('https://example.com', { waitUntil: 'domcontentloaded' });
await page.locator('#main-content').waitFor({ state: 'visible' });
await page.screenshot({ path: 'page.png', fullPage: true });

Replace #main-content with a selector that appears when the content you need is ready. Avoid treating a fixed delay or a generic network-idle state as a universal guarantee: sites may load assets after those conditions or keep network connections open.

Rank #2
King&Charles Screen Roller Tool 2in1-Bearing Roller+Hook to Replace Mesh
  • ⭐【QUALITY MATERIALS】- Solid wood handle + double carbon steel bearing metal wheels, heavy beech wood handles are hard and crack-free, thickened and enlarged metal convex and concave double wheels, each of them is finely crafted and durable, suitable for the replacement of aluminum alloy plastic steel doors and windows of any specification.
  • ⭐【SCREEN TOOLS SET】- The screen rolling tool has two different wheels, cams and recessed rollers, which can help you get the job done better and faster. Screen roller is compact and easy to carry,which is can solve your problem well. Every one is meticulously crafted and durable, A good helper for replacing screens at home.
  • ⭐【EASY TO USE】- Installing a screen with a screen rolling tool makes the job much easier. This essential tool is comfortable in the hand and the wheels turn smoothly to roll the screen and spline into the frame. It’s extremely economical and adds great value to big and small screen repair jobs.
  • ⭐【ERGONOMIC HANDLE】- The wood handle has ergonomic design, it is easy to hold. wooden handle and steel convex and concave roller wheels,the steel wheels of our screen rolling tool is smooth The hooks are sharp and the aged battens can be hooked out.
  • ⭐【CONVEX & CONCAVE 】– The combination screen rolling tool has a 1-5/16" x 3/32" convex (round edge) steel roller at one end and a 1-5/16" x 3/32" concave (grooved edge) steel roller at the opposite end.

Return an image buffer instead of writing a file

If another part of your program will store or process the image, omit the path. Playwright returns the screenshot as a buffer:

const image = await page.screenshot({ fullPage: true });

BrowserCat’s cheatsheet documents PNG buffers and PNG/JPEG file paths. For a JPEG file, use a JPEG extension and the relevant Playwright options:

await page.screenshot({ path: 'page.jpg', type: 'jpeg', quality: 80, fullPage: true });

JPEG quality applies to JPEG output; it is not a PNG quality setting. Consult BrowserCat’s API cheatsheet for the screenshot options documented for its Playwright workflow.

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

Useful screenshot choices

Need Playwright option What it does
Capture the entire document fullPage: true Extends the capture beyond the viewport to include the full page.
Keep a transparent background in PNG output omitBackground: true Omits the default background; use PNG when transparency matters.
Control image scaling scale Choose device-pixel or CSS scaling as supported by the screenshot API.
Set JPEG compression quality quality Sets quality for JPEG output, not PNG.
Handle animations or a visible text caret animations, caret Control animation and caret behavior during capture.

Option names and valid values matter; check the BrowserCat cheatsheet before adding less-common options. BrowserCat’s configuration overview also describes a BrowserCat-Opts header for broader browser controls and query parameters for a subset of common settings: configuration overview.

Rank #3
King&Charles Versatile Screen Roller Tool, 3pcs Different Roller+Hook+Trim
  • --- 𝐏𝐀𝐓𝐄𝐍𝐓 𝐀𝐏𝐏𝐋𝐈𝐄𝐃 𝐅𝐎𝐑---
  • 🏡【𝐊𝐢𝐧𝐠&𝐂𝐡𝐚𝐫𝐥𝐞𝐬 𝐑&𝐃 𝐈𝐧𝐭𝐞𝐧𝐭𝐢𝐨𝐧】Versatile Screen Tool - combines the core functions of multi-size roller, hidden hooks, and replaceable blades, and designed this multifunctional screen tool. It solves the problems of traditional screen installation tools with single functions, lack of safety and adaptability. It truly realizes multiple uses of one tool, making screen replacement time-saving, labor-saving, and worry-free. One-time purchase can meet your installation or replacement needs.
  • 🏡【𝟑 𝐒𝐢𝐳𝐞𝐬 𝐈𝐧𝐭𝐞𝐫𝐜𝐡𝐚𝐧𝐠𝐞𝐚𝐛𝐥𝐞 𝐑𝐨𝐥𝐥𝐞𝐫𝐬】Flexible Adaptation - In view of the differences in thickness of different window splines, we gift the roller into three specifications: Convex 0.13", Concave 0.13", and Concave 0.18", ensuring perfect matching with the mainstream rubber strip sizes on the market. Feature①: The roller is made of high-hardness plastic, which is strong and durable while avoiding the risk of traditional metal rollers scratching the screen mesh. Feature②: Metal bearing design - smoother rotation, even pressure without deviation. TIPS: you can use the provided Allen wrench to quickly disassemble and replace them.
  • 🏡【𝐁𝐥𝐚𝐝𝐞 𝐅𝐮𝐧𝐜𝐭𝐢𝐨𝐧-𝐑𝐞𝐭𝐫𝐚𝐜𝐭𝐚𝐛𝐥𝐞&𝐒𝐭𝐨𝐫𝐚𝐠𝐞&𝐑𝐞𝐩𝐥𝐚𝐜𝐞𝐚𝐛𝐥𝐞】①Retractable-When in use, just hold button, blade will slow rollout, convenient trimming and cutting. Blade can be retracted to prevent Accident scratches. ②Blade has double locking device: it automatically locks to prevent retraction during work and is completely closed to prevent accidental touch when retracted. Ansure your safety. ③Replaceable - A separate button is provided for changing the blades. ④Blade is made of steel-sharp, durable and won't rust. ⑤Storage-Handle has built-in blade storage design to place complimentary blade.Extra equipped 2xreplacement blades- increase service life of tool.
  • 🏡【𝐇𝐢𝐝𝐞𝐚𝐛𝐥𝐞 𝐑𝐞𝐦𝐨𝐯𝐚𝐥 𝐇𝐨𝐨𝐤】The hooks are sharp and can hook out the aged spline. The removal hook can be stored and hidden in the handle slot box. OPEN the box cover, take out the hook and insert it into the groove for use. can RETRACT after use to prevent the hook tip from scratching clothes or tool boxes. Hook made of Stainless steel material won't rust.

Full-page images versus visual regression tests

A screenshot call creates an image. It does not, by itself, compare that image with a saved baseline or fail a test when pixels differ. A visual regression assertion is the separate comparison step.

Whole-page snapshots can be brittle for regression checks: a change in any part of the captured page can affect the comparison, including content unrelated to the component under test. When validating one component, an element screenshot can keep unrelated page content out of the image, though targeting and capturing the element takes additional setup. BrowserCat’s visual-testing guide illustrates page and element snapshot contexts.

Browser support to account for

As of BrowserCat’s browser documentation reviewed on October 3, 2026, BrowserCat sessions use Chromium-based browsers. The documentation lists Firefox and WebKit as coming soon, so do not assume those engines are available for this workflow. Check the browser documentation for changes before relying on a specific engine.

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.

Or skip the browser setup

ScreenshotNeo offers a one-request screenshot API as an alternative when you do not want to manage a Playwright browser connection. This example saves a WebP response:

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 the request details. ScreenshotNeo accepts cookie and consent banners and removes 60+ known consent platforms, newsletter popups, and chat widgets before capture; each cleanup step can be disabled. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and responses identify the page verdict and billing status in headers. It also provides an MCP server with screenshot, page-info, and PDF-capture tools for AI agents. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots. Sign up for ScreenshotNeo’s free plan.

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

Troubleshooting

WebSocket connection or authentication fails

Check that the endpoint is exactly wss://api.browsercat.com/connect, the API key is valid, and the header name is Api-Key. Confirm the environment variable is set in the same shell or process that runs Node.js. Do not print or commit the key.

The screenshot is blank or missing content

Navigation completing does not mean a client-rendered page has finished displaying its important content. Wait for a meaningful selector or application-ready signal, then verify that the selector is visible before capturing. Also confirm the requested URL loads in the remote browser.

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

The image stops at the viewport

Make sure the call includes fullPage: true. Without it, a normal screenshot covers the viewport rather than the full document.

The output file is missing or has the wrong format

Check the script’s working directory and the exact path. Use an extension and type that agree—for example, page.jpg with type: 'jpeg'. If downstream code needs image bytes rather than a saved file, capture the returned buffer.

Best Value
Hasron Window Screen Removal Tool - 9-Inch, Scratch-Free, Dual-End, Orange
  • WINDOW SCREEN REMOVAL TOOL: Designed to easily engage, lift, and remove window screens without damaging frames or mesh.
  • Durable Nylon Construction – Made from high-strength, impact-resistant nylon that's tough enough to handle repeated use yet gentle on delicate surfaces, won't rust or corrode like metal tools.
  • DUAL-END DESIGN: Features a forked end to engage and lift screen edges and a flat pry tip on the opposite end for versatile use.
  • HIGH-VISIBILITY COLOR: Bright orange construction makes this tool easy to spot and prevents it from being misplaced on the job site.
  • DIY-FRIENDLY: The ideal tool for homeowners and professionals tackling window screen repair, replacement, or seasonal removal tasks.

A visual test changes unexpectedly

Inspect the entire captured image for changing content outside the component being tested. If the test is meant to cover one component, consider an element screenshot instead of a full-page snapshot.

Frequently Asked Questions

Does BrowserCat have a dedicated screenshot REST endpoint in this workflow?

The documented approach here is to connect to BrowserCat’s hosted browser over WebSocket and use Playwright’s screenshot method.

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

Which browser engine does BrowserCat document for sessions?

Its browser documentation reviewed on October 3, 2026 describes Chromium-based sessions; Firefox and WebKit are listed as coming soon.

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
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.