Automated Website Screenshots in GitHub CI/CD — Introducing the SnapShot API Action

2026-07-22 #github-actions, #ci-cd, #screenshots, #automation

Screenshots in CI, Finally

We just shipped a GitHub Action for SnapShot API — now you can capture website screenshots directly in your GitHub Actions workflows.

jobs:
  screenshot:
    runs-on: ubuntu-latest
    steps:
      - uses: bakasa/snapshot-action@v1
        with:
          api_key: ${{ secrets.SS_API_KEY }}
          url: https://example.com
          output: screenshot.png

The action automatically uploads the screenshot as a workflow artifact, so you can download it, compare it, or archive it.

Why a GitHub Action?

Most screenshot APIs make you write the HTTP wrapper yourself — curl, handle auth, save the file, upload the artifact. This action handles all of that in under 50 lines.

Just set your API key as a secret, pick a URL, and the action returns a PNG.

Use in Visual Regression

Pair it with the Visual Diff tool: capture your staging site on every deploy, then diff against the production baseline.

Get Started

# Get a free API key
curl https://snapshot-api-production-1374.up.railway.app/key

# Add SS_API_KEY to your repo secrets
# Then add to your workflow:
- uses: bakasa/snapshot-action@v1
  with:
    api_key: ${{ secrets.SS_API_KEY }}
    url: https://your-staging.com
    output: staging-${{ github.sha }}.png

Full docs on the GitHub repo.