Allscreenshots
Sign inGet an API key

CI/CDVisual regression testing

Catch visual bugs before they ship

Add visual checks to your deployment pipeline. Capture screenshots before and after each release: we run the browsers, you decide what counts as a regression.

Free plan: 100 screenshots in total. No credit card.

Capture after the deploy
curl -X POST https://api.allscreenshots.com/v1/screenshots \ -H "X-API-Key: $SCREENSHOT_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "url": "https://staging.yoursite.com/checkout", "viewport": { "width": 1280, "height": 720 }, "format": "png", "waitUntil": "networkidle", "hideSelectors": [".timestamp", ".user-avatar"] }' --output current.png
Compare with the baseline
import pixelmatch from 'pixelmatch'; import { PNG } from 'pngjs'; import fs from 'node:fs'; const before = PNG.sync.read(fs.readFileSync('baseline.png')); const after = PNG.sync.read(fs.readFileSync('current.png')); const { width, height } = before; const changed = pixelmatch(before.data, after.data, null, width, height, { threshold: 0.1, }); if (changed > 0) process.exit(1); // fail the build

The same request before and after a deploy gives two images you can diff with any tool.

How platform teams use it

A CSS change can break your checkout button. Your customers won't tell you; they'll just leave.

  1. You ship automatic updates to customer sites

    Plugin updates, theme changes, framework upgrades. Your CI/CD pipeline deploys changes to thousands of customer sites every day.

  2. A CSS change breaks the checkout button

    A dependency update changes a CSS variable. The 'Buy Now' button is now white-on-white. Invisible. Clicks do nothing.

  3. Customers don't notice until revenue drops

    No errors in the console. No failed tests. Just silence, and a drop in conversions that takes days to diagnose.

  4. Visual regression testing catches it first

    Capture screenshots before and after every deployment. Compare them. Catch regressions before customers do, and roll back if needed.

“We use screenshot APIs as part of a visual regression test we run before certain updates. Their service allows us to capture screenshots of our sites before and after changes, helping us easily compare the differences and determine whether a rollback is needed.”
Platform engineering team, managed hosting provider

Your pipeline, our screenshots

Add visual regression testing to the CI/CD workflow you already have. We run the screenshot infrastructure, you keep the comparison logic.

  1. Trigger

    A deployment starts in your CI/CD: GitHub Actions, GitLab CI, Jenkins, CircleCI or any other pipeline.

  2. Capture before

    One API call captures the baseline screenshot.

  3. Deploy and capture after

    Your code ships and the API captures the new state, with the same viewport and settings.

  4. Compare and decide

    Your code diffs the images with pixelmatch, resemble.js or your own algorithm, and your build passes or fails.

Would rather not write the comparison? The dashboard has visual tests with journeys, checkpoints and approved baselines. It may need to be switched on for your organization.

Why not just use Playwright?

Playwright is great for testing. Running screenshot infrastructure at scale is a different problem.

ComparisonSelf-hosted PlaywrightAllscreenshots API
Browser crashesYour problem to handleHandled automatically
Memory leaks at scaleManual monitoring and restartsNot your problem
Headless Chrome updatesCan break your codeAlways current
Captures from another regionDeploy servers in each regionOne parameter: US, EU or APAC (Pro and up)
CI timeoutsBlock your pipelineAsync jobs with webhooks
MaintenanceOngoing DevOps workNone

Still need Playwright for your tests? Keep it. Use the API for screenshots and Playwright for everything else.

Built for reliable visual testing

Options that keep changing content and timing out of your diffs.

Stable captures

  • Wait for the page

    Wait for network idle or a selector, so fonts, images and API calls have finished.

    "waitUntil": "networkidle",
    "waitFor": "#checkout"
  • Hide dynamic content

    Hide timestamps, ads and avatars that change between captures, so they don’t show up as diffs.

    "hideSelectors": [
      ".timestamp", ".user-avatar"
    ]
  • Same settings every run

    Pin the viewport and pixel ratio, so a difference in the image is a difference in the page.

    "viewport": {
      "width": 1280, "height": 720,
      "deviceScaleFactor": 1
    }

Coverage

  • Phones and tablets

    Use one of about 30 device presets instead of a separate mobile test suite.

    "device": "iphone_15"
  • Dark mode

    Capture with prefers-color-scheme: dark to check both themes.

    "darkMode": true
  • Async and webhooks

    Don’t hold up the pipeline. Queue the captures and get a webhook when they’re ready.

    POST /v1/screenshots/async
    "webhookUrl":
      "https://ci.example.com/hook"

Drop into your existing pipeline

Complete examples for a CI platform and two test frameworks.

.github/workflows/visual-regression.yml
name: Visual Regression Test on: push: branches: [main] pull_request: branches: [main] jobs: visual-test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - name: Capture baseline screenshot run: | curl -X POST "https://api.allscreenshots.com/v1/screenshots" \ -H "X-API-Key: ${{ secrets.SCREENSHOT_API_KEY }}" \ -H "Content-Type: application/json" \ -d '{"url": "https://staging.example.com", "waitUntil": "networkidle"}' \ -o baseline.png - name: Deploy to staging run: npm run deploy:staging - name: Capture new screenshot run: | curl -X POST "https://api.allscreenshots.com/v1/screenshots" \ -H "X-API-Key: ${{ secrets.SCREENSHOT_API_KEY }}" \ -H "Content-Type: application/json" \ -d '{"url": "https://staging.example.com", "waitUntil": "networkidle"}' \ -o current.png - name: Compare screenshots run: | npx pixelmatch baseline.png current.png diff.png 1280 720 # Fails if diff exceeds threshold

Pay only for screenshots that succeed

On paid plans, failed captures don’t count.

5,000

Pro0.98¢ each

Free

$0 to start

100 in total

Not included

Also, ,

Start free

Starter

$10 /month

2,500 a month

100 a month

Also+ and

Get started

Pro

$49 /month

12,500 a month

Included

Also+ and

Get started

Business

$149 /month

75,000 a month

Included

Also+ Phone support

Get started

Ship with confidence

Add visual checks to your pipeline in minutes. Free plan: 100 screenshots in total, no credit card.

Get an API key
  • Full-page captures
  • Popups and repeated sticky bars removed
  • Markdown, JSON and PDF output
  • Crawl a site from one URL
  • Desktop, tablet and phone in one image
  • Works in n8n, Make and Zapier
  • MCP server for AI assistants