October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk7 min

How to Bulk Screenshot URLs from a Notion Database

Export a Notion database’s URL property to CSV and use Playwright to save a named screenshot for each row, with logging and failure handling.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Export the Notion database as a CSV, read the URL property, then use a browser automation script such as Playwright to capture each page to a local image file. This gives you a straightforward batch workflow without treating Notion itself as a screenshot tool. If you need the images inside Notion, that is a separate API step and requires checking Notion’s current API documentation before implementation.

Prepare the Notion database

Make sure every row you want to capture has a URL property containing the page address. Notion’s Web Clipper can add a URL property for the original webpage when you save a page into a database; clipping is a way to collect URLs, not a bulk screenshot feature. See Notion Web Clipper.

As an Amazon Associate I earn from qualifying purchases.

Check that the database can be exported. Notion’s export documentation says full-page databases export as CSV, with Markdown files for subpages. Form views cannot currently be exported; use Table view to export form questions and responses instead. Guests need Full access to export, and Enterprise workspace or teamspace settings may disable export. See Export your Notion content.

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

Export the database as CSV

  1. Open the full-page database in Notion.

  2. Open the database’s menu and choose the export option.

    #1 Best Overall
  3. Select Markdown & CSV, then export the database.

  4. Locate the CSV in the downloaded export and identify the exact column containing the URLs.

For a database embedded in another page, export the database itself where possible; the documented CSV export behavior applies to full-page databases. If export is unavailable, check your access level and workspace or teamspace settings.

Capture each CSV URL with Playwright

The script below uses Node.js, the csv-parse package, and Playwright. It reads the CSV, opens each valid HTTP or HTTPS address in a browser page, and saves a full-page PNG with a sanitized row title and row number. Playwright’s documented Page API includes navigation and screenshot operations; the code is a practical implementation of that pattern, not a tested guarantee for every site.

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

Install dependencies

Save the exported database CSV as database.csv, then run:

npm init -y
npm install playwright csv-parse
npx playwright install chromium

Save the script

Save this as capture-notion-csv.mjs. Change URL_COLUMN and NAME_COLUMN to match your CSV headers. The name column can be a title or other stable identifier; if left unset, the script uses the row number.

import fs from 'node:fs/promises';
import { parse } from 'csv-parse/sync';
import { chromium } from 'playwright';

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

const INPUT = 'database.csv';
const OUTPUT_DIR = 'screenshots';
const URL_COLUMN = 'URL';
const NAME_COLUMN = 'Name'; // Set to null to use row numbers only.
const TIMEOUT_MS = 30000;

function safeName(value) {
return String(value ?? '')
.normalize('NFKD')
.replace(/[^a-zA-Z0-9._-]+/g, '-')
.replace(/^-+|-+$/g, '')
.slice(0, 80);
}

function validHttpUrl(value) {
try {
const parsed = new URL(String(value ?? '').trim());
return parsed.protocol === 'http:' || parsed.protocol === 'https:' ? parsed.href : null;
} catch {
return null;
}
}

Rank #2
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
  • 256 GB SSD of storage.
  • Multitasking is easy with 16GB of RAM
  • Equipped with a blazing fast Core i5 2.00 GHz processor.

await fs.mkdir(OUTPUT_DIR, { recursive: true });
const csvText = await fs.readFile(INPUT, 'utf8');
const rows = parse(csvText, { columns: true, skip_empty_lines: true, bom: true });
if (!rows.length) throw new Error('CSV contains no data rows.');
if (!(URL_COLUMN in rows[0])) throw new Error(`Missing CSV column: ${URL_COLUMN}`);

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

const browser = await chromium.launch({ headless: true });
const log = [];

try {
for (let i = 0; i < rows.length; i++) {
const row = rows[i];
const rowNumber = i + 1;
const url = validHttpUrl(row[URL_COLUMN]);
const label = NAME_COLUMN ? safeName(row[NAME_COLUMN]) : '';
const filename = `${String(rowNumber).padStart(4, '0')}${label ? `-${label}` : ''}.png`;
const record = { row: rowNumber, source: row[URL_COLUMN] ?? '', file: filename };

if (!url) {
record.status = 'invalid_url';
record.error = 'Expected an absolute http:// or https:// URL.';
log.push(record);
console.error(`Row ${rowNumber}: invalid URL`);
continue;
}

const page = await browser.newPage({ viewport: { width: 1440, height: 900 } });
try {
const response = await page.goto(url, { waitUntil: 'domcontentloaded', timeout: TIMEOUT_MS });
await page.screenshot({ path: `${OUTPUT_DIR}/${filename}`, fullPage: true });
record.status = 'captured';
record.finalUrl = page.url();
record.httpStatus = response?.status() ?? null;
console.log(`Captured row ${rowNumber}: ${url}`);
} catch (error) {
record.status = 'failed';
record.error = error instanceof Error ? error.message : String(error);
console.error(`Row ${rowNumber} failed: ${record.error}`);
} finally {
await page.close();
log.push(record);
}
}
} finally {
await browser.close();
await fs.writeFile(`${OUTPUT_DIR}/capture-log.json`, JSON.stringify(log, null, 2));
}

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

Run and inspect the results

Run:

node capture-notion-csv.mjs

PNG files and capture-log.json will appear in the screenshots directory. Each output filename includes its CSV row position, so files remain distinguishable even if titles repeat. The log records the input URL, outcome, final URL after redirects, and HTTP status when a response is available.

Choose viewport or full-page captures deliberately

The example requests a full-page capture using Playwright’s fullPage: true option. The viewport is set to 1440 by 900 pixels; change it if the screenshot should represent a different screen size. Full-page images can be very tall, and pages with endless scrolling or content that loads only as you scroll may need site-specific handling. For a viewport-only image, remove fullPage: true or set it to false. Check Playwright’s current Page API documentation for the exact behavior and available screenshot options.

Handle failures and review the batch

Keep the log alongside the output files and review failures instead of silently treating every row as a successful capture. Pages may redirect, require authentication, show bot checks, load slowly, or reject automated browsing. A successful navigation does not establish that the screenshot contains the intended content, so spot-check images and compare logged final URLs with the source URLs.

  • Invalid URL: Check that the CSV field is populated with a complete https:// or http:// URL, rather than plain text or a relative link.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Timeout: Increase TIMEOUT_MS for slow sites, or choose a wait condition appropriate to the page. Waiting longer can make a large batch slower.

    Rank #3
    15.6 Inch Win 11 Laptop Computer, N4020, 4GB DDR4 RAM, 128GB Storage
    • WINDOWS 11 | STABLE PERFORMANCE: Powered by Intel Celeron N4020 processor and Windows 11 system, this laptop delivers stable performance for everyday computing tasks. It supports web browsing, online learning, document editing, email communication, and basic office work with optimized power efficiency, providing a practical and reliable experience for essential daily use for daily use.
    • 15.6” FHD IPS DISPLAY: Features a 15.6-inch Full HD IPS display with narrow bezels, offering wider viewing angles and clearer image details compared to standard panels. The improved screen-to-body ratio enhances visual experience for study, reading, document work, and video playback, making it suitable for both productivity and entertainment use.
    • 4GB DDR4 + 128GB eMMC STORAGE: Equipped with 4GB DDR4 memory and 128GB eMMC storage for everyday basics such as browsing, documents, email, and online learning platforms. The built-in TF card slot supports storage expansion up to 1TB, giving you more flexibility for files, photos, videos, and daily documents. TF card not included.
    • CONNECTIVITY & PORTS: Includes 1× TF card slot, 2× USB 3.2 Gen1 ports, and 2× full-featured Type-C ports (USB 3.2 Gen1). The Type-C ports support data transfer, charging, and video output, enabling flexible connection with external devices such as monitors, storage, and peripherals for daily work and study use.
    • LIGHTWEIGHT DESIGN | ONLINE COMMUNICATION: Designed with a slim, portable profile, this laptop is easy to carry for school, commuting, and travel. A built-in 1MP front camera supports online classes, video meetings, remote communication, and everyday conferencing. The 3300mAh battery works with the low-power system design to support practical daily use, while thermal optimization helps maintain quieter operation during extended tasks.
  • Blank, incomplete, or blocked page: Review the page manually. It may require sign-in, block automation, or depend on content that appears after the initial document load. Do not assume that a captured file means the target content rendered correctly.

  • Missing or oddly named files: Confirm the CSV headers exactly match URL_COLUMN and NAME_COLUMN. The filename is sanitized and limited in length; the row number is retained to avoid collisions.

  • CSV parsing problems: Use the original exported CSV rather than copying rows into a text editor, and verify that the URL property is a plain URL column. The parser handles quoted CSV fields and a byte-order mark.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Control runtime, reliability, and storage

This script processes one URL at a time, which limits simultaneous browser load and makes row-by-row failures easier to inspect. A large database can take considerable time because every page must load and be rendered. Increasing concurrency may reduce elapsed time but also increases memory use and may trigger rate limits or bot defenses; add it only when you can tolerate those trade-offs.

Set a reasonable navigation timeout, preserve the log, and rerun only failed rows if the batch is long. Before running against sensitive or private URLs, consider where browser traffic goes and who can access the resulting screenshots. The screenshots are saved locally by this script; they are not automatically uploaded into Notion.

Returning screenshots to Notion is a separate integration

Local capture and Notion write-back are different workflows. To place images in Notion, you need a current, supported method to upload or reference image files and attach them to the appropriate page or database content. The export documentation does not specify that write-back process. Verify current official Notion API documentation for query and pagination behavior, API version requirements, file upload restrictions, and how an image is attached before building an automated upload step; do not assume a local file path can be written directly into a Notion property.

Or skip the browser setup

A hosted screenshot API can remove the need to install and operate Playwright for capture. ScreenshotNeo accepts a URL in one GET request and returns an image or PDF; its website screenshot API also supports CSV-driven workflows built around individual URL requests. Here is a cURL example for a URL from the database:

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 -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Replace the sample URL with the current CSV row’s URL and provide your API key. See the ScreenshotNeo API documentation for request options. Cookie and consent banners are accepted and removed before capture, along with known newsletter popups and chat widgets; those cleanup steps can be turned off. Bot checks, blank pages, failed loads, timeouts, and cache hits are not billed, and responses include page-verdict and billing headers. An MCP server exposes screenshot tools for AI agents, including Claude, Cursor, and other MCP clients. The Free plan includes 1,000 screenshots per month without a card; paid plans start at $5 for 3,000 screenshots.

Sign up for ScreenshotNeo’s free plan to get 1,000 screenshots a month with no card.

Frequently Asked Questions

Can Notion bulk-screenshot database URLs by itself?

Notion’s documented database export provides the rows as CSV; the capture step is performed separately with a browser script or screenshot service.

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.

Can I capture URLs collected with Notion Web Clipper?

Yes. When the clipper saves a webpage into a database, it can preserve the original address in a URL property; export that property and process its values.

Quick Recap

Bestseller No. 1
HP 14' HD Laptop, Windows 11, Intel Celeron Dual-Core Processor Up to 2.60GHz, 4GB RAM, 64GB SSD, Webcam, Dale Pink (Renewed)
HP 14" HD Laptop, Windows 11, Intel Celeron Dual-Core Processor Up to 2.60GHz, 4GB RAM, 64GB SSD, Webcam, Dale Pink (Renewed)
14" diagonal, 1366x768 resolution, HD BrightView LED, Glossy NON-TOUCH Display
$245.99
Bestseller No. 2
Dell Latitude 5420 14' FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
256 GB SSD of storage.; Multitasking is easy with 16GB of RAM; Equipped with a blazing fast Core i5 2.00 GHz processor.
$285.00

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.