Go to example tasks

Compare Images via API, Similarity Scores as JSON

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.

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/3/3a/Cat03.jpg/960px-Cat03.jpg
Target images:https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/250px-Cat03.jpg+2
Comparison mode:both
Similarity threshold:0.85

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 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.

Image

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

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 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.