Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk7 min

How to Capture Screenshots in Bulk: What the PageSpeed Insights API Can—and Can’t—Do

PageSpeed Insights API v5 can analyze a URL list only through separate requests, and its current method does not document screenshot output. Here’s a reliable batch workflow and what to use for actual images.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Short answer: PageSpeed Insights API v5 does not provide a documented bulk screenshot endpoint. Its runPagespeed method analyzes one URL per request and returns Lighthouse results, not a screenshot image. To audit a list of pages, send one request for each URL and save each result. To capture actual images, use a separate screenshot tool or browser workflow.

What PageSpeed Insights API v5 returns

The current method is GET https://pagespeedonline.googleapis.com/pagespeedonline/v5/runPagespeed. It requires a url parameter and runs Lighthouse for that page. The response is JSON containing analysis results, including the resolved document ID, analysis timestamp, Lighthouse result, and version information.

As an Amazon Associate I earn from qualifying purchases.

The method reference does not document screenshot capture or an image field. Google’s older v4 reference included screenshot-related fields, but that historical behavior is not evidence that v5 supports screenshots. Do not add an assumed screenshot=true parameter to the v5 request.

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

Use PageSpeed Insights when you need performance diagnostics. If the output you need is a PNG, JPEG, WebP, or PDF, use a screenshot-capable browser or service separately.

#1 Best Overall
Sale
Endoscope with Light, 1920P HD Borescope with 8 Adjustable LED Lights, Semi-Rigid Snake Camera, IP67 Waterproof Inspection Tool (16.4ft, Black + Dual Lens Wiring Harness)
  • 【After‑Sales Support & Service】: We offer 1-Year Manufacturer Support and 24-hour professional service. Contact our support team anytime if the device malfunctions due to product defects within 12 months after purchase.
  • 【1920P HD Resolution】: Specialized for plumbers and mechanics, this 1920×1440 endoscope captures sharper images than standard 1080P. The ultra‑thin probe with adjustable LED lights inspects pipes, HVAC, and tight spaces effortlessly‑even in dark or damp conditions.
  • 【Flexible Inspection Performance】: Optimized for multi‑angle observation, this endoscope helps you check pipe corners, wall wiring, and engine compartments. It delivers clear visuals for various maintenance and repair scenarios.
  • 【Semi‑Rigid Cable Control】: The semi‑rigid cable bends smoothly yet maintains shape, letting you navigate curves in drain pipes or HVAC ducts without losing control during inspection work.
  • 【Plug‑and‑Play Compatibility & Package Include】: Works with multiple smartphones. Includes detachable connectors for Type‑C, Micro USB and Lightning devices. Simply scan the QR code to download the app, then plug in to view real‑time inspection footage directly on your phone screen. Package includes: Endoscope Camera, Type‑C Port, Micro‑USB Port, Lightning Port, Magnet, Hook, Protective Cap, Instruction Manual.

Run PageSpeed Insights on a list of URLs

There is no documented bulk method in the v5 reference: your code holds the URL list and makes one request per URL. The following Python example uses the standard library, encodes page URLs safely (including their own query strings), and stores each response alongside the requested URL and selected run settings.

Python: request and save one result per URL

import json
import time
from datetime import datetime, timezone
from urllib.parse import urlencode
from urllib.request import urlopen
from urllib.error import HTTPError, URLError

ENDPOINT = "https://pagespeedonline.googleapis.com/pagespeedonline/v5/runPagespeed"
API_KEY = "YOUR_API_KEY"  # Recommended by Google's getting-started guide for frequent automation.
URLS = [
    "https://example.com/",
    "https://example.com/products?category=books&sort=popular",
]
STRATEGY = "mobile"  # Use "desktop" or "mobile".
CATEGORIES = ["performance"]

results = []
failures = []

for page_url in URLS:
    params = {
        "url": page_url,
        "strategy": STRATEGY,
    }
    for category in CATEGORIES:
        params.setdefault("category", category)
    if API_KEY:
        params["key"] = API_KEY

    request_url = f"{ENDPOINT}?{urlencode(params)}"
    try:
        with urlopen(request_url, timeout=120) as response:
            data = json.load(response)
        results.append({
            "requested_url": page_url,
            "strategy": STRATEGY,
            "categories": CATEGORIES,
            "fetched_at_utc": datetime.now(timezone.utc).isoformat(),
            "response": data,
        })
    except (HTTPError, URLError, TimeoutError, json.JSONDecodeError) as exc:
        failures.append({"requested_url": page_url, "error": str(exc)})

    # Set a delay based on your Google Cloud project limits and service guidance.
    # No universal request rate is asserted here.
    time.sleep(1)

with open("pagespeed-results.json", "w", encoding="utf-8") as f:
    json.dump({"results": results, "failures": failures}, f, indent=2)

print(f"Saved {len(results)} successful result(s); {len(failures)} failure(s).")

Replace the example URLs with fully qualified page URLs and set YOUR_API_KEY to a key configured for your Google Cloud project. The example asks for the Performance category explicitly; omit category if you want the API’s default category behavior. Add more categories by including each category parameter in the query.

Equivalent cURL request

For a single page, cURL’s --get and --data-urlencode options encode the page URL as a query parameter, including any query string inside that URL:

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.
curl --get 
  'https://pagespeedonline.googleapis.com/pagespeedonline/v5/runPagespeed' 
  --data-urlencode 'url=https://example.com/products?category=books&sort=popular' 
  --data-urlencode 'strategy=mobile' 
  --data-urlencode 'category=performance' 
  --data-urlencode 'key=YOUR_API_KEY' 
  --output pagespeed-result.json

To process a list with shell tools, loop over URLs and run this request once per URL, saving each response under a distinct filename. Keep failures separate from successful JSON rather than treating an error response as a completed audit.

Rank #2
TELESIN Magnetic Phone Camera Grip & C03 Magnetic Selfie Light Creator Kit | Fun Shot Selfie Grip Handle Bundle Kit Compatible for iPhone Magsafe & Android Selfies/Photography/TikTok/Zoom Calls/Video
  • Complete Creator Kit: The TELESIN Creator Kit helps you unleash your creativity and is ideal for content creators. This 2-in-1 kit includes: Fun shot grip - Phone camera grip with wireless shutter button; Magnetic selfie light - LED selfie ring light with 360° rotatable adjustment and built-in Mirror.
  • Easy Magnetic Mount: The magnetic mount quickly and securely attaches all components to any smartphone. It works with Mag*Safe or Mag*Safe-compatible cases. The included magnetic ring also works with Android phones
  • Convenient Travel Design: The travel design fun shot grip and selfie light keeps your gear organized, safe and secure. Compact and portable, it is ideal for busy creators. (Kindly Note: This set does Not include tripod)
  • Flexible Use: Each component of the TELESIN creator kit can be used individually or combined into a variety of combinations to perfectly meet your creative needs.
  • Widely Compatibility: TELESIN creator kit widely compatible with iPhone and Android phones, for iPhone 17 pro/17 Pro Max/iPhone 16/16 Pro/16 Pro Max/16 Plus/iPhone 15/15 Pro/15 Pro Max/15 Plus/14/14 Plus/ 14 Pro/14 Pro Max/13/13 Pro Max/12/12 Pro Max/11/11 Pro/11 Pro Max/X/XS/XR/ XS Max/8 plus, Samsung Galaxy S22/S21/S10/10+ /S9/S9+/S8/S8+/S7/S6/S6 edge, HUAWEI, Xiaomi etc

Equivalent JavaScript request

In Node.js, use URL and searchParams rather than manually concatenating a URL. This avoids breaking the request when the page URL contains query parameters.

const endpoint = new URL(
  'https://pagespeedonline.googleapis.com/pagespeedonline/v5/runPagespeed'
);
const pageUrl = 'https://example.com/products?category=books&sort=popular';
endpoint.searchParams.set('url', pageUrl);
endpoint.searchParams.set('strategy', 'mobile');
endpoint.searchParams.append('category', 'performance');
endpoint.searchParams.set('key', 'YOUR_API_KEY');

const response = await fetch(endpoint);
if (!response.ok) {
  throw new Error(`PageSpeed request failed: ${response.status} ${response.statusText}`);
}
const data = await response.json();
console.log(JSON.stringify(data, null, 2));

Run that request inside a loop for multiple pages and persist each response with its requested URL and strategy. If a browser-based JavaScript app calls the Google endpoint directly, account for the browser’s cross-origin and key-exposure implications; server-side automation avoids exposing a reusable key in client code.

Choose strategy and categories deliberately

Mobile or desktop

The optional strategy parameter selects mobile or desktop; desktop is the documented default. Set it explicitly in a batch so each result records the intended mode and comparisons do not accidentally mix defaults.

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

Categories

The optional category parameter selects Lighthouse categories. Performance is the default category; request other categories explicitly when they are relevant. The API reference documents parameters for category, locale, and strategy.

Rank #3
Sale
[Dual-Lens] Endoscope Camera with Light, 1920P HD Borescope with 8+1 Adjustable LED Lights, IP67 Waterproof 16.5FT Semi-Rigid Snake Cord Inspection Camera for iPhone, iPad and Android Phone (Type C)
  • Dual Lens for Enhanced Visibility: Our borescope camera features dual-lens technology with 2 Million Pixels inspection cameras. This cutting-edge design provides you with a clearer, sharper view, making problem-solving a breeze. The 8MM camera is good at exploring small gaps, and coupled with the versatile optimal field of view of 1.2-4 inches, you can easily tackle even the tightest spaces
  • Sharper Clarity with 1920P HD Resolution: Experience the world in stunning detail with our 2.0MP Sewer Camera. It captures crystal-clear close-range HD videos and images at an impressive 1920x1440 resolution. Discover every hidden detail with this advanced endoscope. Plus, its 16.5 FT (5M) semi-rigid cable and 360-degree rotation make it easy to explore any angle effortlessly
  • Semi-Rigid Cable & Waterproof Probe: Our snake camera boasts a semi-rigid cable that bends and holds its shape, providing a nice balance of flexibility and rigidity. The IP67 waterproof design ensures that this borescope can operate underwater up to 3.28 feet for 1 hour, making it ideal for plumbing and underwater inspections. It is a good choice for present giving
  • Wide Applications: This endoscope camera with light is your first choice tool in a variety of scenarios. Whether it's in the car or around the engine, internal inspection of pipes, or house inspection for mold and wiring, it's up to the task. Its adjustable brightness feature ensures you can capture clear images even in low-light environments
  • Confidence in Every Product: Elecshion products are crafted for durability and excellence. Should you experience any issues, please contact us, our dedicated support team is here to assist you

Geography and repeatability

The method reference does not describe a geographic test-location parameter, so do not assume that a run represents a region you selected. Lighthouse and response data can change over time; retain the returned id, analysisUTCTimestamp, and version with each result, along with your requested URL, strategy, and categories.

Make the batch reliable and interpretable

  • Normalize your input: use fully qualified URLs and decide whether redirects should be treated as the same requested page or retained as separate inputs.
  • Encode rather than concatenate: page URLs can contain query strings, ampersands, or other characters that must not be mistaken for PageSpeed API parameters.
  • Persist per-URL outcomes: write each successful response and record failures independently so one unavailable page does not erase the rest of the batch.
  • Keep response metadata: retain the resolved document ID, analysis timestamp, and version information for traceability.
  • Respect project limits: Google recommends an API key for frequent automated queries. The getting-started material reviewed does not establish a numerical quota or universal batch size; check the active Google Cloud project limits and service guidance before choosing concurrency or retry behavior.
  • Allow for version changes: Google states that PageSpeed Insights API versioning and Lighthouse versioning are independent. Its release notes report that PSI and its API were updated to Lighthouse 13.0 on October 20, 2025. Preserve version metadata and make parsers tolerant of fields that may change or be absent.

Common errors and fixes

The request returns an error instead of a Lighthouse result

Check that the endpoint is exactly https://pagespeedonline.googleapis.com/pagespeedonline/v5/runPagespeed, that url is present and fully qualified, and that the URL is encoded as one query parameter. For frequent automation, configure and supply an API key as Google recommends. Consult the current project limits and service guidance for quota-related failures rather than assuming a fixed request rate.

A page URL contains its own query parameters

Do not append it by string concatenation without encoding. Use a URL builder, Python’s urlencode, or cURL’s --data-urlencode. Otherwise characters such as & may split the page URL into unintended API parameters.

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

The result is JSON, not an image

That is expected for the documented v5 method. It returns Lighthouse analysis, not a documented screenshot. Use a separate capture workflow for image output; the legacy v4 screenshot fields do not establish v5 support.

Rank #4
Endoscope Camera with Light,1920P HD Borescope Tools(16.4ft Single Lens)
  • 1920P HD Resolution: Sewer camera with 7.9mm probe can inspect hard-to-reach places effortlessly. The 2.0MP HD endoscope can observe clear snapshot images (1920x1440 resolution) and high-quality video (1920x1440 resolution) at close range.
  • Easy Connection: This borescope inspection camera can easily and quickly connect with IOS 9.0+ Android 7+ system devices through the interface. Search for 'SUP-ANESOK' in the APP store or scan the QR code to download the APP. With simple operations, you can view real-time images on the screen.
  • Semi-Rigid Cable & Waterproof Probe: Snake Camera can bend freely and remain semi-rigid. The 16.4ft semi-rigid cable unrolls and rolls up quickly, which provides a good mix of flexibility and rigidity. The IP67 waterproof design allows the camera to operate underwater up to 3.28 feet for 1 hour.
  • Wide Applications: Scope camera suitable for various scenes, such as inside the car or around the engine, inside the pipe inspection, or the house inspection mold, and wiring. The brightness-adjustable light enables you to obtain picture information even in dark environments.
  • What You Get: Endoscope Camera *1, Android connector*1,Lightning Port*1,Type-C connector,16.4ft Semi-rigid Cable *1, Accessories: Magnet *1, Hook *1, Mirror *1, Protective Cap *1, Manual *1

Saved reports differ between runs

Compare like with like: retain the strategy, categories, requested URL, analysis timestamp, and returned version metadata. Lighthouse updates independently of the API’s v5 label, and the endpoint documentation does not offer a geography selector.

CrUX data is missing or changes

Google’s getting-started material says real-world CrUX data in the PSI API is planned for discontinuation and recommends the CrUX API or CrUX History API for that data. The material does not give an end date, so check Google’s current documentation before building a dependency on PSI’s CrUX fields.

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

Capture actual screenshots with a separate workflow

PageSpeed Insights answers “how did Lighthouse assess this page?” A screenshot workflow answers “what did the rendered page look like?” Keep those outputs distinct: a performance report is not a visual image, and this method does not document full-page screenshot controls or image formats.

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

For a custom browser-based solution, automate a browser to visit each URL, wait for the page to render, capture the desired viewport or full page, and save one file per URL. That workflow must handle dynamic content, cookie banners, popups, navigation failures, and output naming itself. PageSpeed’s API does not supply those capture controls.

Or skip the browser setup

For actual website screenshots, ScreenshotNeo is a screenshot API and MCP server. Its one-call API can return a PNG, JPEG, WebP, or PDF for a URL. cURL example (see the ScreenshotNeo documentation for options):

Best Value
Xenvo Pro Lens Kit for iPhone and Android, Macro and Wide Angle Lens with LED Light and Travel Case Black
  • ✔ COMPATIBLE WITH ALL SMARTPHONES, TABLETS, and LAPTOPS including ALL iPhone models, Samsung Galaxy and Note, Google Pixel, Huawei and more. CONTENTS INCLUDE: TruView 0.45x Wide Angle Lens, Clarus 15x Macro Lens, TruGrip Lens Clip, GlowClip Mini Rechargeable LED Light + Charging Cable, Quick-Release Lanyard, DuraCase, EasyClip, and Cleaning Cloth.
  • ✔ TRUVIEW 0.45x WIDE ANGLE LENS - CAPTURE 45% MORE PICTURE WITH EVERY SNAP: Shoot stunning photos of people, pets, travel scenery, landscapes, architecture, selfies and more. NO DARK CORNERS (vignetting) like cheaper lenses. Crafted from aircraft-grade aluminum and premium optical glass for durability and clarity. Multi-element, coated glass lenses minimize ghosting, reflections, lens flare, and other artifacts. Xenvo cell phone lens attachment is ideal for hobbyists and photography pros alike.
  • ✔ CLARUS 15x MACRO LENS - MARVEL YOUR SENSES. MAGNIFY NEARBY SUBJECTS FOR BREATHTAKING, SUPER CLOSE-UP PHOTOS: Capture all the intricacies and details with precision-focus for razor crisp macro photos every time. (For best results, position macro lens approximately 1/2 inch from subject. Not designed for zooming in on distant subjects.) THE TRUGRIP LENS CLIP offers SUPERIOR GRIPPING POWER to fasten your lenses to your cell phone when you're in action mode, framing your next perfect shot.
  • ✔ GLOWCLIP RECHARGEABLE LED FILL LIGHT - The GlowClip LED light clips ANYWHERE on your phone to instantly illuminate your subject and surroundings with warm continuous light. The warm and natural LED light is superior to your smartphone's built in flash—which can be blinding and unnatural—especially in darker settings and venues. FEATURES 3 BRIGHTNESS SETTINGS: Low, Medium and High. Say goodbye to frustrating photo "retakes" and hello to brilliant photos the first time.
  • ✔ QUICK-RELEASE LANYARD AND TRAVEL CASE - TRANSPORT AND PROTECT YOUR LENS KIT: Perfect for taking your Xenvo lenses with you on the fly. The travel case stores and protects all lens kit components snugly and safely while the quick-release lanyard is the perfect way to carry your lenses on your next outing. Just drape the lanyard and lens around your neck. The quick-release lanyard head makes it a cinch to access your Xenvo lenses in a flash so you never miss another photo moment.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp

Cookie banners are accepted and removed before capture, along with known consent platforms, newsletter popups, and chat widgets. Bot checks, blank pages, failed loads, timeouts, and cache hits are not billed. An MCP server gives AI agents screenshot tools. The Free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000.

Sign up free for 1,000 screenshots a month with no card.

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.

Frequently asked questions

Can I request mobile and desktop results for each page?

Yes. Make separate requests for each URL and strategy you want to analyze, then store the strategy with each result.

Does the PageSpeed Insights API provide a bulk request limit?

The method takes one required URL per request. The getting-started material cited here does not state a numeric quota or a batch limit; check your Google Cloud project’s current limits.

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
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver 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.