Compare Images via API, Similarity Scores as JSON
John
Score a source image against up to 500 targets in one API call. JSON rows with similarityScore, phashDistance, and a duplicate verdict. Free tier, MCP ready.
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 Images via API, Similarity Scores as JSON". Sign up or log in and you'll land in Apify Console with a copy of this exact task.
Start the "Compare Images via API, Similarity Scores as JSON" 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 Images via API, Similarity Scores as JSON" 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 Images via API, Similarity Scores as JSON" task via API.

Integrate "Compare Images via API, Similarity Scores as JSON" into your workflow
Connect "Compare Images via API, Similarity Scores as JSON" 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
Each target image becomes one JSON row with targetIndex, targetImage, similarityScore, phashDistance, isSimilar and a verdict of duplicate, very-similar, related or different. The same dataset also exports as CSV or Excel.
A sourceImage URL plus a targetImages list of up to 500 entries. The example scores a cat photo against a resized copy, a Siamese cat and a Labrador, with comparisonMode both and threshold 0.85 as the isSimilar cutoff.
Start the task through its run endpoint on the Apify API, or with apify-client in Python or Node, then read the dataset as JSON or CSV. Add sourceImageId and per-target customId values so rows join back to your own records.
In the Apify Console open the task, choose Actions, then Schedule, and enter 0 */6 * * * to run every six hours. A webhook can POST each finished dataset to your own service or pass it on to Google Sheets or Airtable.
Add https://mcp.apify.com/?tools=actors,docs,johnvc/image-similarity-api to Claude or any other MCP client. The agent can then hand over a source and its targets and get scored rows back from the Image Similarity API.
Billing is per comparison actually delivered: one charge for each scored source-target pair. The source image is never billed, targets that fail to download return free error rows, and the current rate sits on the Actor's pricing tab.
similarityScore measures what two images depict; phashDistance shows whether they are the same picture. A Siamese cat can score high yet sit far apart on hashes. Bulk Image Hash Check with pHash and dHash returns only the hash side.