Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk6 min

How to Capture a Webpage as a JPEG with a Screenshot API

Send a page URL to a screenshot API, request JPEG output, and save the returned bytes. See working request patterns, full-page options, quality guidance, and fixes for incomplete captures.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To capture a webpage as a JPEG, send its URL to a screenshot API, request JPEG output using that provider’s documented option, and save the returned image bytes as a .jpg or .jpeg file. Add the provider’s full-page option if you need content below the visible browser area; otherwise, the result is typically a viewport capture.

How do I capture a webpage as a JPEG with an API?

A screenshot API renders a URL in a browser and returns image data; it does not photograph your physical screen. The exact parameter names vary by provider. Two documented approaches are ScreenshotOne’s URL-based GET endpoint and Browserless’s POST endpoint.

As an Amazon Associate I earn from qualifying purchases.

ScreenshotOne: GET request

Use format=jpeg (the documented alias jpg also works) and provide the page URL and access key. This cURL example saves the response as screenshot.jpg:

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.
curl -G 'https://api.screenshotone.com/take' 
  --data-urlencode 'url=https://example.com/' 
  --data-urlencode 'format=jpeg' 
  --data-urlencode 'access_key=YOUR_ACCESS_KEY' 
  -o screenshot.jpg

For a full-page image, add --data-urlencode 'full_page=true'. ScreenshotOne’s documented default format is also JPG, but requesting the format explicitly makes the intention clear. See its screenshot options and full-page screenshot guide.

#1 Best Overall
Sale
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black | 1080p with auto-Light Correction, Built-in mic, Privacy Shutter, USB-A, Compatible with Teams, Google Meet, Zoom and More
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • Auto-Light Balance: RightLight boosts brightness by up to 50%, reducing shadows so you look your best—compared to previous-generation Logitech webcams (1)
  • Privacy with a Slide: The integrated webcam cover makes it easy to get total, reliable privacy when you're not on a video call
  • Built-In Mic: The built-in microphone lets others hear you clearly during video calls
  • Easy Plug-And-Play: The Brio 101 works with most video calling platforms, including Microsoft Teams, Zoom and Google Meet—no hassle; it just works

Browserless: POST request

Browserless accepts a JSON body at its screenshot endpoint. Set options.type to jpeg and write the response body to a file:

curl -X POST 
  'https://production-sfo.browserless.io/screenshot?token=YOUR_API_TOKEN' 
  -H 'Content-Type: application/json' 
  -d '{"url":"https://example.com/","options":{"type":"jpeg"}}' 
  --output screenshot.jpg

To request the entire page, include "fullPage":true inside options:

curl -X POST 
  'https://production-sfo.browserless.io/screenshot?token=YOUR_API_TOKEN' 
  -H 'Content-Type: application/json' 
  -d '{"url":"https://example.com/","options":{"type":"jpeg","fullPage":true}}' 
  --output screenshot.jpg

Browserless documents an image/jpeg response when options.type is JPEG. Refer to its Screenshot API documentation for the endpoint and request options. These examples illustrate documented request forms; they have not been executed here.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sale
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • Crisp HD 720p/30 fps video calls with diagonal 55° field of view and auto light correction. Compatible with popular platforms including Skype and Zoom.
  • The built-in noise-reducing mic makes sure your voice comes across clearly up to 1.5 meters away, even if you’re in busy surroundings.
  • C270’s RightLight 2 feature adjusts to lighting conditions, producing brighter, contrasted images to help you look good in all your conference calls.
  • The adjustable universal clip lets you attach the camera securely to your screen or laptop, or fold the clip and set the webcam on a shelf. You’re always ready for your next video call.

Python example with ScreenshotOne

Install the dependency with python -m pip install requests, then run this script. Keep the key in an environment variable rather than embedding a real key in code you share:

import os
import requests

access_key = os.environ["SCREENSHOTONE_ACCESS_KEY"]
response = requests.get(
    "https://api.screenshotone.com/take",
    params={
        "url": "https://example.com/",
        "format": "jpeg",
        "access_key": access_key,
    },
    timeout=90,
)
response.raise_for_status()
with open("screenshot.jpg", "wb") as image_file:
    image_file.write(response.content)

For a full-page capture, add "full_page": "true" to the params dictionary.

Node.js example with ScreenshotOne

This example uses the built-in fetch available in current Node.js releases. It checks for an unsuccessful HTTP response before writing the bytes:

Rank #3
Sale
NexiGo N60 1080P Webcam with Microphone, Software Control & Privacy Cover, USB HD Computer Web Camera, Plug and Play, for Zoom/Skype/Teams, Conferencing and Video Calling
  • 【Full HD 1080P Webcam】Powered by a 1080p FHD two-MP CMOS, the NexiGo N60 Webcam produces exceptionally sharp and clear videos at resolutions up to 1920 x 1080 with 30fps. The 3.6mm glass lens provides a crisp image at fixed distances and is optimized between 19.6 inches to 13 feet, making it ideal for almost any indoor use.
  • 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 8, 10 & 11 / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.
  • 【Built-in Noise-Cancelling Microphone】The built-in noise-canceling microphone reduces ambient noise to enhance the sound quality of your video. Great for Zoom / Facetime / Video Calling / OBS / Twitch / Facebook / YouTube / Conferencing / Gaming / Streaming / Recording / Online School.
  • 【USB Webcam with Privacy Protection Cover】The privacy cover blocks the lens when the webcam is not in use. It's perfect to help provide security and peace of mind to anyone, from individuals to large companies. 【Note:】Please contact our support for firmware update if you have noticed any audio delays.
  • 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 10 & 11, Pro / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.
const accessKey = process.env.SCREENSHOTONE_ACCESS_KEY;
if (!accessKey) throw new Error("Set SCREENSHOTONE_ACCESS_KEY first");

const params = new URLSearchParams({
  url: "https://example.com/",
  format: "jpeg",
  access_key: accessKey,
});

const response = await fetch(`https://api.screenshotone.com/take?${params}`);
if (!response.ok) {
  throw new Error(`Screenshot request failed: HTTP ${response.status}`);
}

const image = Buffer.from(await response.arrayBuffer());
const { writeFile } = await import("node:fs/promises");
await writeFile("screenshot.jpg", image);

As with cURL and Python, add full_page=true to the query parameters when the whole page is needed.

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

How do I get a full-page website screenshot?

A viewport capture contains only the visible browser area. A full-page capture attempts to include the page below the fold, but long or dynamic pages may need extra handling for all content to appear.

  • ScreenshotOne: set full_page=true. Its documentation says full-page scrolling is enabled by default with this option unless overridden. It also describes a section-based capture method for complex pages.
  • Browserless: set options.fullPage=true. Its documentation also describes scrollPage: true, which scrolls through the page before capture and can help trigger lazy-loaded content; it can be combined with full-page mode.

For pages that load images or sections only as the visitor scrolls, scrolling before capture can help. If the page is still rendering when the image is taken, allow more time using the provider’s supported waiting options. These additions can increase latency, so use them only when the page needs them.

Rank #4
Sale
EMEET C960 1080P Webcam with Microphone, 2 Mics, 90° FOV, Computer Camera | USB Type-A & A-to-C Adapter, Fixed Focus, Plug&Play for Zoom/Teams/Facetime/YouTube/Google Meet/Switch 2 Camera, 2025 Version
  • 1080P Webcam with Cover for Video Calls - EMEET computer webcam provides design and Optimization for professional video streaming. Realistic 1920 x 1080p video, 5-layer anti-glare lens, providing smooth video. C960 computer camera delivers 1920x1080 video with fixed focus (11.8–118.1 inches), so as to provide a clearer image. C960 USB webcam has a cover and can be removed automatically to meet your needs for privacy. For optimal image performance, use the webcam in a well-lit environment.
  • Built-in 2 Omnidirectional Mics - EMEET webcam with microphone for desktop features 2 built-in omnidirectional microphones, picking up your voice to create clear audio for communication. When installing the webcam, select EMEET C960 as the default microphone input device in your computer and video applications and select C960 as the default device in Zoom/Teams and ensure microphone permissions are enabled for proper use. Please note that C960 does not include built-in speakers.
  • Automatic Light Adjustment - Automatic exposure adjustment is applied in EMEET HD webcam 1080p so that the streaming webcam can deliver stable image performance. EMEET C960 camera for computer also features color adjustment and exposure optimization to help you look your best. For optimal video quality, it is recommended to use the webcam in normal or well-lit environments and select suitable video settings in your application. Proper lighting helps achieve a clearer and more balanced image.
  • Plug-and-Play & Upgraded USB Connectivity - New C960 webcam features both USB Type-A & A-to-C adapter connections for wider compatibility. For stable performance, connect the webcam directly to the computer's main USB port and ensure the device is recognized correctly. If a hub or docking station is used, please ensure it provides sufficient power and stable data transmission, as limited ports may affect performance. 90° wide-angle lens captures more participants without frequent adjustments.
  • High Compatibility & Multi Application - C960 webcam for laptop is compatible with Windows 10/11, macOS 10.14+, and Android TV 7.0+. Not supported: Windows Hello, TVs, tablets, or game consoles. It works with Zoom, Teams, Facetime, Google Meet, YouTube and more. Please select C960 webcam as the default camera and microphone device in your application and ensure camera/microphone permissions are enabled, especially on macOS. (Tips: Incompatible with Windows Hello)

How do I set screenshot quality?

JPEG is lossy: reducing quality can reduce file size, but may introduce visible compression artifacts. ScreenshotOne documents the image_quality setting as a value from 0 to 100, with a default of 80; the documentation does not identify one best setting for every use. For example, add --data-urlencode 'image_quality=80' to the cURL request if you want to make that documented default explicit, or choose another value in the supported range and inspect the resulting image.

Choose quality according to the image’s purpose: a small preview may tolerate more compression than a visual review or an image you intend to keep. Compare the actual saved output at its intended display size; providers’ settings and rendering behavior are not interchangeable.

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

Why can a JPEG screenshot be incomplete?

  • Lazy-loaded images are missing: the page may fetch them only as they approach the viewport. Use the provider’s documented scroll-before-capture option where available, then capture the full page.
  • Content has not finished rendering: dynamic pages may need more time. Add a suitable delay or supported wait condition, recognizing that longer waits add latency.
  • The full-page layout looks different than expected: very long or complex pages can behave differently under full-page capture methods. Try the provider’s alternative full-page method if documented, and check whether the result is complete.
  • The output is not JPEG: confirm you used the provider’s JPEG option—format=jpeg for ScreenshotOne or options.type="jpeg" for Browserless—and save the response bytes rather than an error message or JSON response.
  • The request fails: check the URL, authentication value, endpoint, and request syntax against the provider’s current documentation. Keep credentials out of public pages and repositories.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What to compare when choosing a screenshot API

Before building around a provider, check the details that affect your application rather than assuming all screenshot endpoints work alike:

Best Value
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black | 30fps Video, Clear Audio, Light Correction, Works with Teams, Meet, Zoom, Nintendo Switch 2, Mac, Tablet
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • HD lighting adjustment and autofocus: The Logitech webcam automatically fine-tunes the lighting, producing bright, razor-sharp images even in low-light settings. This makes it a great webcam for streaming and an ideal web camera for laptop use
  • Advanced capture software: Easily create and share video content with this Logitech camera that is suitable for use as a desktop computer camera or a monitor webcam
  • Stereo audio with dual mics: Capture natural sound during calls and recorded videos with this 1080p webcam, great as a video conference camera or a computer webcam
  • Full HD 1080p video calling and recording at 30 fps. You'll make a strong impression with this PC webcam that features crisp, clearly detailed, and vibrantly colored video
  • Whether requests use GET query parameters or POST JSON, and how authentication is supplied.
  • How JPEG output and image quality are specified.
  • How full-page capture works, including whether scrolling can trigger lazy-loaded content.
  • Which waiting controls are available for pages that render asynchronously.
  • Current usage limits, storage or retention terms, and service guarantees. These were not established in the cited vendor documentation, so verify them directly before making a purchasing decision.

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server. Its endpoint accepts a URL in a single GET request and can return PNG, JPEG, WebP, or PDF. The example requests JPEG output and saves the returned bytes as a file; see the ScreenshotNeo API documentation for request options.

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

To request JPEG, add -d format=jpeg to that command and save the file with a .jpg extension. ScreenshotNeo removes cookie banners, popups, and chat widgets before the shot; bot checks, blank pages, and failed loads are never billed. Its MCP server lets AI agents take screenshots. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000. Sign up for ScreenshotNeo and get 1,000 free screenshots a month with no card.

Frequently Asked Questions

Does changing a file extension convert a screenshot to JPEG?

No. Request JPEG output from the API; renaming PNG bytes to .jpg does not convert the image.

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.

Should I use .jpg or .jpeg?

Both extensions commonly identify JPEG files. Use the extension that fits your application, while ensuring the API actually returns JPEG data.

Are API keys safe to put in browser-side JavaScript?

No. Keep keys in server-side configuration or environment variables so they are not exposed to visitors or committed to a public repository.

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.