# Google Lens API – Reverse Image Search, OCR & Translation (`awsystems/google-lens`) Actor

Google Lens API for reverse image search: up to 60 visual matches and similar products per image, image to text (OCR) with free translation, and AI answers about any image. From $0.0015 per image, no start fee per run, and images with no result are not charged. Works with MCP and AI agents.

- **URL**: https://apify.com/awsystems/google-lens.md
- **Developed by:** [Manuel Rodriguez](https://apify.com/awsystems) (community)
- **Categories:** Developer tools, AI, E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 visual searches

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Google Lens API – Reverse Image Search, OCR & Translation

Give it image links and get back, for each image:

- **Visual matches from Google Lens**: up to 60 pages that show the same or a similar image, with title, site, link and image.
- **The text in the image (OCR)**: signs, labels, packaging, screenshots, documents and handwriting, copied as written. Optional **translation into any language, at no extra cost**.
- **An answer to your question** about the image, such as "What product is this and what brand?" or "Describe this image in one sentence."

Turn on only what you need: you pay only for what you asked for and got.

### Why this Actor

- **No start fee per run.** Every run costs only the images it handles, so one image per call (from your app, an automation or an AI agent) costs the same per image as a thousand.
- **No result, no charge.** An image with no visual matches, no readable text or a broken link is delivered with the reason and is not charged.
- **Big images just work.** Files up to 25 MB, in JPEG, PNG, WebP or GIF, are reduced automatically before they are searched.
- **Three tools in one run**: visual search, OCR with translation and image questions, on the same list of images.
- **Ready for AI agents**: use it from Claude, ChatGPT or any MCP client through the Apify MCP server.

### How to use it

1. Paste the **direct links of your images** in *Image URLs*, one per line (up to 1,000 per run). Use the address of the image itself (right click › *Copy image address*), not of the page it is on.
2. Choose what you want:
   - **Find visual matches** (on by default). Pick the country and language of the search and how many matches you want (1–60).
   - **Extract text (OCR)**. Add a language in *Translate the text into* to get a translation too.
   - **Question about the image**. Write any question; it is asked of every image.
3. Press **Start**. Each image takes 1 to 5 seconds.

#### Input example

```json
{
    "imageUrls": ["https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=800"],
    "visualMatches": true,
    "maxMatches": 60,
    "country": "us",
    "extractText": true,
    "translateTo": "Spanish",
    "question": "What product is this?"
}
```

### Output

One item per image. Parts you did not ask for are `null`.

```json
{
    "imageUrl": "https://images.unsplash.com/photo-1542291026-7eec264c27ff?w=800",
    "status": "ok",
    "visualMatchCount": 60,
    "topMatchTitle": "Step Up",
    "topMatchLink": "https://...",
    "text": "NIKE\nRN FLYKNIT\nNIKE FREE",
    "textLanguage": "en",
    "translation": "NIKE\nRN FLYKNIT\nNIKE FREE",
    "question": "What product is this and what brand?",
    "answer": "This is a Nike Free RN Flyknit running shoe from the brand Nike.",
    "visualMatches": [
        {
            "position": 1,
            "title": "Step Up",
            "source": "...",
            "link": "https://...",
            "domain": "...",
            "imageUrl": "https://...",
            "thumbnailUrl": "https://encrypted-tbn0.gstatic.com/images?q=..."
        }
    ],
    "notes": null,
    "errors": null,
    "charged": ["visual-search", "text-extraction", "image-question"],
    "analyzedAt": "2026-11-19T16:08:15.000Z"
}
```

An image with no text, such as a plain product photo, gets `"text": ""`, a note saying so, and no text-extraction charge.

- `status`: `ok`, `partial` (one part failed), `empty` (nothing found, not charged) or `failed` (the image could not be used, not charged; see `error`).
- `charged`: the events this image was charged.
- The run's `SUMMARY` record lists every image and what it was charged.

### How you are charged

Pay per event: each part is charged per image, only when it has a result.

| Event | Free | Starter | Scale | Business |
|---|---|---|---|---|
| Visual search (Google Lens matches) | $5.00 / 1,000 | $3.50 / 1,000 | $3.00 / 1,000 | $2.50 / 1,000 |
| Text extraction (OCR, translation included) | $3.00 / 1,000 | $2.00 / 1,000 | $1.80 / 1,000 | $1.50 / 1,000 |
| Image question (AI answer) | $5.00 / 1,000 | $3.50 / 1,000 | $3.00 / 1,000 | $2.50 / 1,000 |

Plus $0.00005 when a run starts. Platform usage is included.

**Long texts:** one text extraction covers up to about 2,000 characters of text and translation together (about 500 characters in Chinese, Japanese or Korean). A dense document counts one more extraction for each further block of that size. Signs, labels, screenshots and receipts are almost always a single extraction.

**Example:** on the Starter plan, 1,000 product photos with visual matches and text cost $5.50, whether you send them in one run or in 1,000 runs of one image.

Free-plan runs handle up to 10 images each.

### Good to know

- **Visual matches are pages that show similar images.** Prices, product listings and exact-match lists are not included.
- **Text is read by an AI vision model.** It reads print and handwriting very well and is told to copy text exactly, but it does not give the position of each word.
- **Answers about people** describe what is visible; the Actor does not identify people by their face.
- Images must be reachable on the public web. Links behind a login or that expire are delivered as `failed` and not charged.

### FAQ

**Can I send many images in one run?** Yes, up to 1,000. They are handled five at a time.

**What happens when I reach my spending limit?** The run stops before starting an image it could not pay for. Nothing is ever charged above your limit.

**Can I use it from my code?** Yes: call it through the Apify API or client libraries, or as a tool from any MCP client. A run with one image is the cheapest way to add reverse image search or OCR to an app.

# Actor input Schema

## `imageUrls` (type: `array`):

Direct links to the images, one per line (up to 1,000 per run). Use the address of the image itself (right click › Copy image address), not of the page it is on. JPEG, PNG, WebP and GIF up to 25 MB; big images are reduced automatically.

## `visualMatches` (type: `boolean`):

Pages on the web that show this image or similar ones: title, site, link and image. Charged per image that gets at least one match.

## `maxMatches` (type: `integer`):

The most visual matches to deliver for each image (1 to 60). The price per image is the same.

## `country` (type: `string`):

Two-letter country code the search is made from, such as us, gb, es or de. It changes which sites come first.

## `language` (type: `string`):

Language code of the search, such as en, es or pt-br.

## `extractText` (type: `boolean`):

All the text in the image, copied as written with its line breaks: signs, labels, screenshots, documents, handwriting.

## `translateTo` (type: `string`):

Leave empty for no translation. Any language name or code, such as English, es or Japanese. Turns on text extraction; the translation is included at no extra cost.

## `question` (type: `string`):

Optional. Asked of every image, such as "What product is this and what brand?" or "Describe this image in one sentence." The answer comes in the language of the question.

## Actor input object example

```json
{
  "imageUrls": [
    "https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=800"
  ],
  "visualMatches": true,
  "maxMatches": 60,
  "country": "us",
  "language": "en",
  "extractText": false
}
```

# Actor output Schema

## `images` (type: `string`):

One item per image: visual matches, extracted text, translation and answer, as asked. Images that could not be used have status "failed" and an error, and were not charged.

## `summary` (type: `string`):

How many images were handled, failed or skipped, and which events each one was charged.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "imageUrls": [
        "https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=800"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("awsystems/google-lens").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "imageUrls": ["https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=800"] }

# Run the Actor and wait for it to finish
run = client.actor("awsystems/google-lens").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "imageUrls": [
    "https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=800"
  ]
}' |
apify call awsystems/google-lens --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,awsystems/google-lens"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Ee2KWrMcrZZzhcfrl/builds/SCyX4oS4C3iSZi6D6/openapi.json
