Screenshot X (Twitter) with an API
X is unpredictable for logged-out automated browsers. Stealth mode reliably returns the real profile and post pages — one request, no browser to run.

Free plan to start · stealth mode for X (Twitter) needs a paid plan
What makes X (Twitter) hard to capture
X serves logged-out automated browsers a login prompt or an empty shell instead of the timeline. 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 — so public profiles and posts render.
- Login wall
- Bot detection
- Heavy JavaScript
- Infinite scroll
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://x.com/NASA",
"stealthMode": true,
"blockAds": true,
"blockCookieBanners": true,
"viewport": {
"width": 1440,
"height": 1000
},
"waitUntil": "domcontentloaded",
"delay": 3500
}' \
--output screenshot.pngStealth 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 X (Twitter) with an API?
Yes. Send a public X profile or post URL to the Allscreenshots API with stealth mode on and you get back a PNG of the rendered page — no browser to run.
Why does X block automated screenshots?
X hides most content from logged-out automated browsers and challenges traffic that looks automated. Stealth mode is built to return the real public profile or post.
Can I screenshot X without logging in?
Public profiles and posts capture without an account. Content behind a login needs authenticated session cookies, which you can pass with the request.
Is screenshotting X free?
A reliable X 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.
Screenshot other sites
See all screenshot guides →Capture X (Twitter).
And everything else.
Free plan to start. Stealth mode is available from the Starter plan.
Get started free