Go to example tasks

Reverse Image Search in Python via API

Three lines of Python to reverse search an image: matches back as JSON with title, source, url and image dimensions. No browser automation to maintain.

Try for free
Google Lens API | Reverse Image and Visual Product Search
Google Lens API | Reverse Image and Visual Product Searchjohnvc/google-lens-api
Position
Title
Source
Page URL
+3 fields
Text
Number
Boolean
List
Object

Input

Image URL:https://i.imgur.com/HBrB8p0.png
Search type:visual_matches
Maximum results:20

Output fields

Position
Title
Source
Page URL
Thumbnail
Image width
Image height

How it works

Sign up on Apify or log in

The Google Lens API | Reverse Image and Visual Product Search Actor is ready to run with the inputs already set for "Reverse Image Search in Python via API". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Reverse Image Search in Python via API" task

The Google Lens API | Reverse Image and Visual Product Search Actor will start running based on the input automatically. You can also change all the input fields, like image url, search type, and more, to match your specific use case.

Receive the "Reverse Image Search in Python via API" 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 position, title, source, 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 "Reverse Image Search in Python via API" task via API.

Image

Integrate "Reverse Image Search in Python via API" into your workflow

Connect "Reverse Image Search in Python via API" 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

Reverse Image Search in Python via API returns one row per match with position, title, source, url, thumbnail, imageWidth and imageHeight. The example caps it at max_results 20; the dataset reads as JSON, CSV or Excel or straight from apify-client.

An image_url pointing at a public file, for example https://i.imgur.com/HBrB8p0.png, with search_type visual_matches and max_results 20. Pass image_base64 entries instead when your script holds local files; the Actor stages them behind a signed link.

Three: create an ApifyClient with your token, call the task with image_url as input, then iterate the default dataset items. Node works the same way with apify-client, and plain HTTP against the run endpoint on the Apify API returns the same JSON.

You do not need a cron library in your script. Open the task in the Apify Console, choose Actions, then Schedule, and set 0 7 * * * for 7 AM daily. Each run lands in a fresh dataset your code can fetch by run ID, or a webhook can push it on.

Connect Claude or any other MCP client to https://mcp.apify.com/?tools=actors,docs,johnvc/google-lens-api and the agent runs the lookup without any Python at all, then reads title, source and url for each match in the same conversation.

Pay per result, as in the Console, with no setup fee; a failed lookup such as an unreachable image_url is not billed. Each image is billed a minimum number of visual matches, so max_results trims only above that floor. Rates are on the Actor page.

Both run visual matches on the Google Lens API. Reverse Image Search API With a Free Tier is the no-code start in the Console; Reverse Image Search in Python via API is the same lookup wired into apify-client so a script can loop over many images.