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.

How do I take a screenshot with the Browserless REST API? Send an authenticated POST request to the current /screenshot endpoint, put either a page url or inline html in the JSON body (not both in HTML mode), and save the binary response as an image. The endpoint supports PNG, JPEG, and WebP, full-page or viewport captures, clipping, viewport and scale settings, element selectors, waits, navigation options, and request filtering. See the current Screenshot API guide for the account-specific host and option details.

What the Browserless Screenshot API does

Browserless runs a browser for one render-and-capture task, then returns image bytes from /screenshot. Its REST APIs are intended for single HTTP requests when you do not want to manage browser infrastructure; the service also exposes separate endpoints for tasks such as scraping and content retrieval (REST API overview).

Authentication uses your account token in the token query parameter. The JSON body contains the input and capture settings. A request can render a public URL or supplied HTML. When using supplied HTML, omit url; the guide specifically cautions against sending both fields in that mode.

Request anatomy

URL input

Use a body such as:

{
  "url": "https://example.com",
  "options": {
    "fullPage": true,
    "type": "png"
  }
}

The response is the image itself, not a JSON wrapper. Check the HTTP status and content type before writing the bytes to disk.

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.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Inline HTML input

For a self-contained render, replace url with html:

{
  "html": "<!doctype html><html><body><h1>Invoice</h1></body></html>",
  "options": {
    "type": "webp"
  }
}

Do not include a url property in this HTML request. External fonts, images, scripts, and styles still need to be reachable from the browser unless you embed them.

Finding your endpoint host

Browserless accounts can use different regional or deployment hosts. Set an environment variable to the screenshot URL shown in your account documentation rather than hard-coding a host from an old example:

export BROWSERLESS_ENDPOINT='https://YOUR-BROWSERLESS-HOST/screenshot'
export BROWSERLESS_TOKEN='YOUR_TOKEN'

Complete cURL example

This command posts JSON and writes the binary image to shot.png. The --fail-with-body flag leaves an error response visible instead of silently saving it as an image.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl --fail-with-body 
  -X POST "${BROWSERLESS_ENDPOINT}?token=${BROWSERLESS_TOKEN}" 
  -H 'Content-Type: application/json' 
  --data '{
    "url": "https://example.com",
    "options": {
      "fullPage": true,
      "type": "png"
    }
  }' 
  -o shot.png

For JPEG or WebP, change options.type and use a matching file extension. JPEG quality is available through the capture options; PNG does not use a JPEG quality value.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Python example

The following script checks the status code, preserves the returned bytes, and reports the response content type.

import os
from pathlib import Path
import requests

endpoint = os.environ["BROWSERLESS_ENDPOINT"]
token = os.environ["BROWSERLESS_TOKEN"]
payload = {
    "url": "https://example.com",
    "options": {
        "fullPage": True,
        "type": "webp",
        "quality": 82
    }
}

response = requests.post(
    endpoint,
    params={"token": token},
    json=payload,
    timeout=120,
)
response.raise_for_status()
Path("shot.webp").write_bytes(response.content)
print("saved", len(response.content), "bytes", response.headers.get("content-type"))

Use a generous timeout for pages with slow third-party resources. A timeout in your client does not guarantee that the remote browser stopped immediately, so apply your own job and retry policy.

Node.js example

This example uses the built-in fetch available in modern Node.js releases. It converts the response to an ArrayBuffer and writes it as binary data.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
import { writeFile } from 'node:fs/promises';

const endpoint = process.env.BROWSERLESS_ENDPOINT;
const token = process.env.BROWSERLESS_TOKEN;

const payload = {
  url: 'https://example.com',
  options: {
    fullPage: true,
    type: 'jpeg',
    quality: 80
  }
};

const response = await fetch(`${endpoint}?token=${encodeURIComponent(token)}`, {
  method: 'POST',
  headers: { 'content-type': 'application/json' },
  body: JSON.stringify(payload)
});

if (!response.ok) {
  throw new Error(`Browserless returned ${response.status}: ${await response.text()}`);
}

const bytes = Buffer.from(await response.arrayBuffer());
await writeFile('shot.jpg', bytes);
console.log(`saved ${bytes.length} bytes`);

Capture scope and image controls

The current guide documents these controls (Screenshot API options):

Need Setting or input What it changes
Viewport only Omit fullPage or set it false Captures the visible browser area.
Entire document options.fullPage: true Captures the page beyond the initial viewport.
Specific element Top-level selector Captures the element matching a CSS selector; the guide places this outside options.
Fixed rectangle options.clip Captures an x, y, width, and height region.
Output format options.type PNG, JPEG, or WebP.
JPEG compression options.quality Adjusts image quality where the selected format supports it.
Browser size options.viewport Sets viewport width and height; use the documented device-scale setting for high-density output.
Retina-style output options.deviceScaleFactor Changes device pixel density used for rendering.

Capture one element

Put the selector at the top level of the request body:

Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
{
  "url": "https://example.com/pricing",
  "selector": ".pricing-card",
  "options": {
    "type": "png"
  }
}

If the selector is not present when the screenshot runs, the result can be an error or an incomplete capture. Add a selector wait as described below.

Clip a rectangle

{
  "url": "https://example.com/dashboard",
  "options": {
    "clip": {
      "x": 40,
      "y": 120,
      "width": 900,
      "height": 500
    },
    "type": "png"
  }
}

Waiting for dynamic pages

A screenshot taken immediately after navigation may miss content rendered by JavaScript. Browserless documents waits for events, functions, selectors, and timeouts, plus navigation controls under gotoOptions. Use the smallest wait that represents your page rather than an arbitrary long delay.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
{
  "url": "https://example.com/app",
  "options": {
    "waitForSelector": ".report-ready",
    "gotoOptions": {
      "waitUntil": "networkidle2"
    },
    "type": "png"
  }
}

Option names and accepted values can vary with the current API revision, so verify them against the live guide before shipping. For pages that load images only as they approach the viewport, the documentation recommends scrolling before a full-page capture. A wait for network idle alone may not trigger those lazy-load observers.

Filtering requests and controlling navigation

The screenshot API documents gotoOptions for navigation behavior and request controls that can reject selected resource types or request patterns. Blocking heavy advertising or analytics resources can reduce work, but blocking a stylesheet, font, API call, or image required for layout will change the screenshot. Start with no blocking, inspect the result, and add narrow rules one at a time.

Automation defenses and failed captures

Sites that detect automation may return a blank page, a CAPTCHA, an access-denied screen, or a page missing elements. Browserless documents a separate /unblock API for some bot-detection situations; it does not guarantee that every protected site can be captured (Screenshot API troubleshooting). Treat the returned image as untrusted until you check its dimensions or inspect it for the expected content.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Do not build new integrations from the old BaaS v1 screenshot page. Browserless marks that documentation deprecated and directs users to BaaS v2 or BrowserQL (legacy BaaS v1 warning).

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

Troubleshooting checklist

Symptom Likely cause Fix
401 or authentication error Missing, malformed, or expired token. Pass the token in the query string, keep it server-side, and confirm the endpoint host belongs to the same account.
400 validation error Invalid JSON, unsupported option, or both url and html supplied. Send valid JSON, remove the unused input field, and compare option names with the current guide.
File opens as text or is unreadable An error body was saved instead of image bytes. Check the HTTP status before writing; log the response text only on failure.
Blank or access-denied image Automation defense, blocked navigation, or a site-side failure. Open the target normally, test a simpler page, review request filtering, and consider the documented /unblock route for applicable cases.
Element missing Selector ran before client-side rendering completed. Wait for the selector or a page-specific readiness condition, then capture.
Images absent in full-page output Lazy loading did not activate below the initial viewport. Follow the guide’s scroll-before-capture approach and ensure image requests are not rejected.
Unexpected layout Viewport, device scale, timezone, or blocked resources differ from a human browser. Set the viewport and scale explicitly and remove overly broad request filters.

Performance, reliability, and cost planning

Keep one request focused on one render. Use viewport captures instead of full-page images when you do not need the whole document, select WebP or JPEG when smaller files are more important than lossless output, and avoid waiting for a fixed delay if a selector or event expresses readiness more precisely.

Use bounded client timeouts, record status codes and content types, and retry only transient network or service failures. Do not blindly retry a deterministic 400 error or a CAPTCHA result. Browserless’s reviewed documentation does not establish current plan prices, quotas, rate limits, or concurrency limits; check the limits displayed for your account before designing a high-volume queue.

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

Which screenshot API should you use?

If you are choosing among hosted screenshot services, ScreenshotNeo is the #1 alternative to try first because it removes consent banners, newsletter popups, and chat widgets before capture, bills only clean successful shots, and has a $5 paid plan for 3,000 shots.

Rank Service Best fit Important distinction
1 ScreenshotNeo Clean production screenshots and AI-agent workflows Consent and popup cleanup, no charge for bot checks, blank pages, timeouts, failed loads, or cache hits; MCP tools are included.
2 Browserless /screenshot Direct browser rendering with URL or inline HTML and Puppeteer-style controls Flexible waits, navigation, clipping, selectors, and request rejection; protected sites can still return blocked or incomplete captures.

Browserless is a sensible fit when you already use its browser infrastructure or need its documented navigation and resource controls. ScreenshotNeo is worth trying first when cleaning visitor-facing overlays, predictable billing, or MCP access matters more than managing those steps yourself.

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

Or skip the browser setup

ScreenshotNeo provides a one-request screenshot API and an MCP server for Claude, Cursor, and other MCP clients. It removes cookie-consent banners, newsletter popups, and chat widgets before the shot; bot checks, blank pages, timeouts, and failed loads are not billed, and each response identifies the result with X-Page-Verdict and X-Billed headers. The Free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots. Every plan includes the features described at the ScreenshotNeo documentation.

cURL

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

Python

import requests; r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90); open("shot.webp", "wb").write(r.content)

Node.js

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' }); const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

Create a free ScreenshotNeo account to use the 1,000-shot monthly allowance without adding a card.

Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

FAQ

Does the screenshot endpoint return a JSON object?

No. The normal success response is image data, so integrations should preserve the response bytes and use HTTP status and content-type checks to distinguish an image from an error body.

Will the unblock route defeat every CAPTCHA?

No. Browserless documents /unblock for some bot-detection situations, but protected sites can still refuse automation or return incomplete content.

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

Where should I verify option names?

Use the live Screenshot API guide. The deprecated BaaS v1 page should be treated as historical documentation, not an implementation target.

Frequently Asked Questions

Does the screenshot endpoint return a JSON object?

No. A successful request returns image data; check the HTTP status and content type before saving the bytes.

Will the unblock route defeat every CAPTCHA?

No. It is documented for some bot-detection situations, but protected sites can still refuse automation or return incomplete content.

Where should I verify option names?

Use Browserless’s current Screenshot API guide, not the deprecated BaaS v1 page.

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.