Take dark mode screenshots of any website
A dark mode screenshot API captures a website in its dark theme by telling the browser the visitor prefers a dark colour scheme before the screenshot is taken.
Set theme to "dark" and Geekflare captures the page with a dark colour-scheme preference, so sites that have a dark theme render in it.
Rated 4.9 on average: G2 4.8,
Google 4.9,
Product Hunt 5.0.
- 100 free screenshots every month
- No card to start
- Failed requests cost nothing
Try it on your own URL
Pick Light or Dark and run the same URL twice to compare.
Trusted by teams at Pfizer, NBCUniversal, TCS, Hostinger, Kissflow, Lookout, Plivo, ClearSale, Sparkian, CBSplit and Omreon.
How the theme parameter works
Most sites with a dark theme decide which theme to show from the visitor's colour-scheme preference, the prefers-color-scheme setting that browsers expose to CSS. The Screenshot API's theme option sets that preference for the capture. It accepts light, dark or auto, and auto is the default. Send "theme": "dark" and a site that styles itself with prefers-color-scheme: dark renders its dark theme before the screenshot is taken.
| Value | Result |
|---|---|
light | The page renders with a light colour-scheme preference |
dark | The page renders with a dark colour-scheme preference |
auto (default) | The API's default rendering |
Capture a page in dark mode
One request returns the dark version. To get both versions for docs or a store listing, send the same request twice, once with light and once with dark. Keep every other setting the same, so the only difference is the theme. Every option is in the Screenshot API docs.
# pip install geekflare-api
from geekflare_api.client import GeekflareClient
from geekflare_api.models import ScreenshotDto
with GeekflareClient(api_key="<api-key>") as client:
result = client.screenshot(
ScreenshotDto(
url="https://example.com",
theme="dark",
full_page=True
)
)
print(result)// npm install @geekflare/api-node
import { GeekflareClient } from "@geekflare/api-node";
const client = new GeekflareClient({
apiKey: "<api-key>",
});
const result = await client.screenshot({
"url": "https://example.com",
"theme": "dark",
"fullPage": true
});
console.log(result);curl --request POST \
--url 'https://api.geekflare.com/screenshot' \
--header 'x-api-key: YOUR_KEY' \
--header 'Content-Type: application/json' \
--data '{"url":"https://example.com","theme":"dark","fullPage":true}'See it in 20 seconds
Why some sites still look light
A dark screenshot is only possible when the site has a dark theme to show. If the site doesn't use prefers-color-scheme, there is nothing for the setting to switch, and the capture stays light. Some sites only change theme when a visitor clicks a toggle on the page, and a colour-scheme preference doesn't press that toggle. If your screenshot is still light, check the site in your own browser with your system set to dark mode. If it stays light there too, the site has no automatic dark theme.
Dark mode screenshots in Puppeteer and Playwright
If you run the browser yourself, it is one line. In Puppeteer, call page.emulateMediaFeatures([{ name: 'prefers-color-scheme', value: 'dark' }]) before the screenshot. In Playwright, create the context with colorScheme: 'dark'. What the API saves you is everything around that line: running and updating browsers, and removing cookie banners and ads, which are on by default in every Geekflare capture.
What teams use dark screenshots for
Dark captures are most useful when a product ships both themes and needs images of each.
- Docs and app store images that match the reader's theme
- Visual testing of the dark theme on each release
- Mobile views: combine
theme: "dark"withdevice: "mobile" - Design reviews: light and dark versions of the same page side by side
How many screenshots each plan covers.
A dark mode screenshot costs the same 5 credits as any other screenshot. The free plan has 500 credits a month, which is 100 screenshots, with no credit card. Failed requests cost nothing.
| Covered per month | Free $0/mo No card | Starter $19/mo | Most popular Growth $69/mo | Business 500K $299/mo | Business 1M $499/mo |
|---|---|---|---|---|---|
Credits a month | 500 | 20,000 | 100,000 | 500,000 | 1,000,000 |
ScreenshotsFull page or viewport in a real Chrome browser, light or dark.5 credits | 100 | 4,000 | 20,000 | 100,000 | 200,000 |
| Requests per second | 1 | 5 | 10 | 25 | 25 |
What customers say.
“Finally found a screenshot API that handles full-page captures correctly. Most others mess up the rendering of dynamic elements. Geekflare API captures the whole thing.”
“Geekflare screenshot API has been solid so far. I like how consistently it handles dynamic content and modern websites. Team feature is a plus, I can get my team members to get API key and request logs.”
“Great API and even better customer support. They went above and beyond to help me fix a rendering issue. Fast response times and effective solutions. 5 stars!”
Dark mode, specifically.
General screenshot questions are answered on the Screenshot API page.
Open the Screenshot API page"theme": "dark". The page is captured with a dark colour-scheme preference, so sites with a dark theme render in it. The response contains a link to the image.prefers-color-scheme, and a theme toggle on the page isn't pressed by the setting. Check the site in your browser with your system set to dark mode."theme": "light" and one with "theme": "dark". Each costs 5 credits.page.emulateMediaFeatures([{ name: 'prefers-color-scheme', value: 'dark' }]) before page.screenshot(). The Geekflare API does the same with "theme": "dark", without running a browser.colorScheme: 'dark', then take the screenshot. With the Geekflare API, send "theme": "dark" instead.theme with device: "mobile" or fullPage: true in the same request. Cookie banners and ads are still removed by default.Dark mode screenshots, one parameter away.
Create a free account and get 100 screenshots a month. No credit card needed.




