How to reverse-search an image with Google Search
Find web pages and visual matches for a public image URL with one API call, then compare the returned pages by source and title
On this page
You have 25 product photos as public image URLs and need to know where each one appears online before deciding which listings to review. Run anyapi.google.lens once per image URL and compare the returned matching pages by source and title; the table feeds a shortlist of suspected unauthorized listings
The worksheet below is the deliverable: one row per visual match, with the searched image URL and the fields that identify the page. No run has been executed for this guide, so the values are placeholders showing the shape
The worksheet and the example input
The input is one public image URL per call. In the contract the field is url; it is required and must be a public image URL in URI format. This task has 25 product photo URLs, so plan 25 calls and expect one response per URL
Example input:
| Example | Image URL |
|---|---|
| Example product photo | PUBLIC_IMAGE_URL |
The placeholder above is invented; replace it with a real public image URL before running. For a brand-protection shortlist, keep the original product photo URL beside each result row
The deliverable table has these columns, taken from the output fields in the brief. Values here are placeholders showing the shape
data.url | title | link | source | image | thumbnailUrl |
|---|---|---|---|---|---|
| (searched image URL) | (match title) | (matching page URL) | (source site name) | (matched image URL) | (thumbnail URL) |
A row belongs to one visual match, not to one search. When the response has no match, use the no-match rule in the next section before you fill the row
Run one image URL per call
Call anyapi.google.lens with the url field set to the direct public image link. The price block lists the tool, which is called through POST /v1/runs with toolId anyapi.google.lens, as the call. Use the direct image link for the url field; a page URL is not the image URL the contract asks for. Keep the first run small, for example five product URLs, then check whether the results give you enough source and title detail for the shortlist
A no-match response is found: false with reason: not_found; it is a successful call, not an error, and it is billed at the actual AnyAPI charge. Treat that row as a searched image with no visual match, not as a tool failure
Read the match fields that drive a review decision
found is the first field to read; the contract defines it as true when at least one visual match was returned. When it is true, data.results holds visual match records; when it is false, data is null and reason is present only with the value not_found
The fields that drive the review decision:
data.url: the input image URL that was searchedtitle: title of the matching web pagelink: URL to the matching web pagesource: source site nameimage: matched image URLthumbnailUrl: thumbnail image URL for the match
The contract marks title and link as required on each result record, so a result row should have both fields before you open the page
For the shortlist, group rows by source and compare title; open link for each page you plan to review. Use image and thumbnailUrl to check the visual match before adding a listing to the shortlist
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to run a reverse image search for each public product photo URL in the analyst's list. Check the current inputs and price of anyapi.google.lens before running anything. Call anyapi.google.lens once per image URL. Return a table with data.url, title, link, source, image and thumbnailUrl. If found is false, keep one row with data.url and empty match fields, and report reason not_found outside the table. Do not guess matches.
Example placeholder URL: PUBLIC_IMAGE_URL
Replace this placeholder with a real public image URL before running.The prompt uses one invented placeholder URL. Replace it with the analyst's 25 public image URLs, or send the list in another message and keep the same output columns
Estimated tool cost
Prices come from the Purrkey catalog, read through the catalog on November 12, 2026. anyapi.google.lens is listed at up to $0.00297 per call on the max_call unit. max_call means "Maximum per call. Successful runs settle at the actual AnyAPI charge." The totals below are ceilings, not settled charges
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| Single image URL | 1 call x max price | $0.00297 per call | 1 | $0.00297 |
| 25 image URLs | 25 calls x max price | $0.00297 per call | 25 | $0.07425 |
The single-call row covers one image URL. The 25-call row matches the 25 product photos in this task. Model fees for the agent are not counted
Next action
Open the Google Lens tool page to check the current inputs and price before the first call
Get started by giving this to your agent
- Claude Code
- Codex
- Gemini CLI
- Cursor
- GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Google Search.FAQ
How do I reverse-search an image with Google Search?
Pass a public image URL to anyapi.google.lens as the required url input. The response returns found, data, and a data.results array of matching pages when matches exist.
What input does anyapi.google.lens take?
The contract lists url as required and describes it as the public URL of the image to search with, in URI format.
What does a found false response mean?
A no-match response is found: false with reason not found; it is a successful call, not an error, and it is billed at the actual AnyAPI charge.
What fields in the output identify where an image appears?
Each data.results record includes title, link, source, image and thumbnailUrl; data.url is the input image URL that was searched.
How much does it cost to search 25 image URLs?
The plan for 25 image URLs is at most $0.07425 at $0.00297 per call; one image URL is at most $0.00297.
What should I use instead of the example image URL?
The example URL is an invented placeholder; replace it with a real public image URL before running.
Next step
Try this with Google Search
The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.