Go to example tasks

Compare Screenshots to a Baseline, Flag Changes

Check UI screenshots against a baseline build and flag which ones changed. Rows show similarityScore, phashDistance, and a verdict per screenshot.

Try for free
Image Similarity API | Compare Images, Find Duplicates
Image Similarity API | Compare Images, Find Duplicatesjohnvc/image-similarity-api
Target index
Target image
Similarity score
pHash distance
+5 fields
Text
Number
Boolean
List
Object

Input

Source image:https://upload.wikimedia.org/wikipedia/commons/thumb/a/a9/LibreOffice_7.0_Start_Center.png/960px-LibreOffice_7.0_Start_Center.png
Target images
url:https://upload.wikimedia.org/wikipedia/commons/thumb/a/a9/LibreOffice_7.0_Start_Center.png/500px-LibreOffice_7.0_Start_Center.png+2
customId:build-1042+2
Comparison mode:both
Similarity threshold:0.95

Output fields

Target index
Target image
Similarity score
pHash distance
Verdict
Is similar
Is near duplicate
Custom ID
Error message

How it works

Sign up on Apify or log in

The Image Similarity API | Compare Images, Find Duplicates Actor is ready to run with the inputs already set for "Compare Screenshots to a Baseline, Flag Changes". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Compare Screenshots to a Baseline, Flag Changes" task

The Image Similarity API | Compare Images, Find Duplicates Actor will start running based on the input automatically. You can also change all the input fields, like source image, target images, and more, to match your specific use case.

Receive the "Compare Screenshots to a Baseline, Flag Changes" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as target index, target image, similarity score, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Compare Screenshots to a Baseline, Flag Changes" task via API.

Image

Integrate "Compare Screenshots to a Baseline, Flag Changes" into your workflow

Connect "Compare Screenshots to a Baseline, Flag Changes" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

Each screenshot returns a row with customId (the build number), similarityScore, phashDistance, isSimilar and verdict. A build that drifted from the baseline falls below the isSimilar cutoff. Download the rows as JSON, CSV or Excel.

Put the baseline in sourceImage and each build's screenshot in targetImages with a customId such as build-1042. The example uses LibreOffice start screens and threshold 0.95, so only near-identical screens keep isSimilar true.

Start the task from your CI job through its Apify API run endpoint, or with apify-client in Python or Node, passing the new screenshots as targetImages. Read the JSON rows and fail the build when verdict comes back related or different.

In the Apify Console, open the task, choose Actions, then Schedule, and use 0 8 * * 1-5 for weekday mornings at 8 AM. Send the results to Slack, or have a webhook POST them to your own service when the run finishes.

Through https://mcp.apify.com/?tools=actors,docs,johnvc/image-similarity-api, Claude or any other MCP client can run the screenshot comparison as part of a visual QA step. The agent reads back one verdict per build and can name the ones that changed.

Each build screenshot scored against the baseline bills one comparison event; the baseline itself is free. Screenshots that fail to download produce free error rows. The current rate is shown on the Image Similarity API pricing tab.

Compare Screenshots to a Baseline scores similarity and flags which builds changed; it does not draw a pixel diff. For an exact-copy test on the same screens, Bulk Image Hash Check with pHash and dHash returns only hash distances.