Go to example tasks

Bulk Image Hash Check with pHash and dHash

Run perceptual hash checks on up to 500 images in one call. Rows show phashDistance, dhashDistance, isNearDuplicate; the fastest duplicate detection mode.

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
url:https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/960px-Cat03.jpg+3
customId:asset-0001+3
Comparison mode:phash

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 "Bulk Image Hash Check with pHash and dHash". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Bulk Image Hash Check with pHash and dHash" 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 "Bulk Image Hash Check with pHash and dHash" 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 "Bulk Image Hash Check with pHash and dHash" task via API.

Image

Integrate "Bulk Image Hash Check with pHash and dHash" into your workflow

Connect "Bulk Image Hash Check with pHash and dHash" 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 asset returns a row with customId, targetImage, phashDistance, isNearDuplicate and verdict, keyed to your own IDs such as asset-0001. Hash mode skips the vision model entirely. Export the rows as JSON, CSV or Excel.

A sourceImage plus targetImages objects with url and customId, here asset-0001 to asset-0004, and comparisonMode set to phash. phashThreshold stays at its default of 8, the largest distance that still counts as a near-duplicate.

The task has a run endpoint on the Apify API, and apify-client wraps it for Python and Node. Send up to 500 asset URLs, wait for the run, and read phashDistance per customId as JSON, which fits a dedup step in a data pipeline.

Open the task in the Apify Console, choose Actions, then Schedule, and set 0 2 * * * for 2 AM each night. Refresh targetImages with the day's uploads, or start runs from your pipeline over the API; a webhook can ping your service after each run.

Add https://mcp.apify.com/?tools=actors,docs,johnvc/image-similarity-api as a server in Claude or any other MCP client. An agent can then run a hash-only duplicate check on a batch of image links and read back isNearDuplicate for each one.

Each hashed comparison bills one comparison event and the source is never billed. Hash-only mode is the fastest and cheapest way to sweep a catalog for copies because it skips the vision model. The current rate is on the pricing tab.

pHash turns each image into a 64-bit fingerprint, and phashDistance counts how many bits differ, from 0 to 64. Find Duplicate Images Online Across a List of URLs runs the same hashes on a plain URL list without asset IDs.