Compare Two Images for Similarity, Percentage Verdict
John
Get a similarity percentage for any two images plus a duplicate verdict. Paste URLs, base64, or upload files; rows show similarityScore and phashDistance.
Input
Output fields
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 Two Images for Similarity, Percentage Verdict". Sign up or log in and you'll land in Apify Console with a copy of this exact task.
Start the "Compare Two Images for Similarity, Percentage Verdict" 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 Two Images for Similarity, Percentage Verdict" 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 Two Images for Similarity, Percentage Verdict" task via API.

Integrate "Compare Two Images for Similarity, Percentage Verdict" into your workflow
Connect "Compare Two Images for Similarity, Percentage Verdict" with 100+ integrations, or run it via API or MCP.
Webhook
n8n
Make
Zapier
Airbyte
Keboola
IFTTT
Hubspot
GDrive
Gmail
Apify MCP
GitHub
Slack
LangChain
LlamaIndex
Flowise
Pinecone
OpenAI
Mastra
Clay
The pair comes back as one row: similarityScore from 0 to 1 (multiply by a hundred for a percentage), phashDistance from 0 to 64, isSimilar, isNearDuplicate and a verdict. Export that row as JSON, CSV or Excel.
Put the first image in sourceImage and the second as the only entry in targetImages. The example pairs a 960px cat photo with a 250px copy of it, comparisonMode both. URLs or base64 work, and the source can also be uploaded.
Call the task's run endpoint on the Apify API, or use apify-client in Python or Node, with sourceImage and a one-item targetImages list. The single result row comes back as JSON, ready for an if-statement on verdict.
Open the task in the Apify Console, pick Actions, then Schedule, and use 0 7 * * * for a check every morning at 7 AM. That suits a pair where one URL is a live image; Slack or email can alert you when the score clears your threshold.
Connect https://mcp.apify.com/?tools=actors,docs,johnvc/image-similarity-api in Claude or any other MCP client, then ask whether two image links show the same picture. The agent runs the comparison and reads back the verdict and both scores.
A two-image check bills one comparison event, because the Image Similarity API charges per comparison delivered and never bills the source. If the second image fails to download, its error row is free. Current rates are on the pricing tab.
Compare Two Images for Similarity is the one-pair case: one source, one target, one row. Compare Images via API, Similarity Scores as JSON scores the same kind of source against a whole list of targets, up to 500 in a single run.