Screenshot The New York Times with an API

The Times serves automated browsers a bot wall instead of the page. Stealth mode returns the real homepage or article — one request, no browser to run.

Stealth recommendedBot wall
Screenshot of the New York Times homepage captured with Allscreenshots stealth mode
The New York Times homepage, captured with stealth mode.
Start free

Free plan to start · stealth mode for The New York Times needs a paid plan

What makes The New York Times hard to capture

News sites like the Times challenge traffic that looks automated, so a standard headless capture often gets a consent screen, a block page, or an error instead of the article. Stealth mode runs on our own stealth engine, which combines a range of anti-detection tactics and automatically detects when a request is blocked and recovers.

  • Bot detection
  • Cookie consent
  • Paywall
  • Heavy JavaScript

The request that works

curl -X POST https://api.allscreenshots.com/v1/screenshots \ -H "X-API-Key: $ALLSCREENSHOTS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "url": "https://www.nytimes.com", "stealthMode": true, "blockAds": true, "blockCookieBanners": true, "viewport": { "width": 1440, "height": 1000 }, "waitUntil": "domcontentloaded", "delay": 3500 }' \ --output screenshot.png

Stealth mode is a paid feature — not on the free plan. The Starter plan includes an intro allowance of 100 stealth captures per month, and Pro and above include unlimited stealth captures. Read the stealth docs.

FAQ

Can you screenshot the New York Times with an API?

Yes. Send a nytimes.com URL to the Allscreenshots API with stealth mode on and you get back a PNG of the rendered homepage or article — no browser to run.

Why does the New York Times block automated screenshots?

The Times challenges traffic that looks automated, so a plain headless capture tends to get a consent screen or a block page instead of the article. Stealth mode is built to return the real page.

Can I screenshot a New York Times article behind the paywall?

Free articles and the public homepage capture cleanly. Metered or subscriber-only articles need authenticated session cookies, which you can pass with the request.

Is screenshotting the New York Times free?

A reliable Times capture uses stealth mode, which is a paid feature — not on the free plan. The Starter plan includes 100 stealth captures per month, and Pro and above include unlimited stealth captures.

Capture The New York Times.
And everything else.

Free plan to start. Stealth mode is available from the Starter plan.

Get started free