Screenshot GitHub with an API

Capture any GitHub page — light or dark mode — with one API call. No browser to run.

No stealth neededCookie banner
Screenshot of the GitHub homepage in dark mode captured with the Allscreenshots API
GitHub's homepage in dark mode, captured with one API call.
Capture GitHub free

100 screenshots free · No credit card required

What makes GitHub hard to capture

GitHub renders cleanly without stealth mode. The two things to handle are the cookie banner, which blockCookieBanners removes, and theme — set darkMode to capture the page exactly as a dark-theme user would see it.

  • Cookie banner
  • Dark mode
  • 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://github.com", "darkMode": true, "blockCookieBanners": true, "viewport": { "width": 1440, "height": 1000 }, "waitUntil": "networkidle", "delay": 2000 }' \ --output screenshot.png

FAQ

Can you screenshot GitHub with an API?

Yes. Send any github.com URL to the Allscreenshots API and you get back a PNG of the rendered page — repos, profiles, issues, or the homepage — no browser to run.

How do I capture GitHub in dark mode?

Set darkMode: true in the request. The page renders with the dark theme applied, exactly as a dark-mode visitor would see it.

Do I need stealth mode for GitHub?

No. GitHub renders cleanly with a standard capture, so stealth mode is not needed — and GitHub pages count toward the 100 free screenshots on every plan.

Can I screenshot a full GitHub README or repo page?

Yes. Add fullPage: true and the API scrolls the whole page and stitches it into one tall image, top to bottom.

Capture GitHub.
And everything else.

Start with 100 free screenshots every month. No credit card required.

Get started free