# Google Lens API Alternative for AI Agents

**Use case:** 

Get structured Google Lens visual-search results for an AI agent researching an image. Results include page URLs, titles, image dimensions, an AI description and a detected subject when available. Change imageUrls to search another public image.

## Input

```json
{
  "mode": "all",
  "imageUrls": [
    "https://images.unsplash.com/photo-1502602898657-3e91760cbb34?w=640"
  ],
  "country": "US",
  "language": "en",
  "maxItems": 50,
  "includeOcr": false,
  "rehostImages": true
}
```

## Output

```json
{
  "recordType": {
    "label": "Record type"
  },
  "matchType": {
    "label": "Match type"
  },
  "position": {
    "label": "Position"
  },
  "inputImageUrl": {
    "label": "Input image url"
  },
  "title": {
    "label": "Title"
  },
  "source": {
    "label": "Source"
  },
  "domain": {
    "label": "Domain"
  },
  "pageUrl": {
    "label": "Page url"
  },
  "price": {
    "label": "Price"
  },
  "currency": {
    "label": "Currency"
  },
  "rating": {
    "label": "Rating"
  },
  "reviewCount": {
    "label": "Review count"
  },
  "inStock": {
    "label": "In stock"
  },
  "date": {
    "label": "Date"
  },
  "imageUrlOriginal": {
    "label": "Image url original"
  },
  "thumbnailUrl": {
    "label": "Thumbnail url"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Google Lens Visual Match and Reverse Image Search Actor is ready to run with the inputs already set for "Google Lens API Alternative for AI Agents". [Sign up or log in](https://console.apify.com/create-task-from-example/bUu88S5A7plWM5vO1) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Google Lens API Alternative for AI Agents" task

The Google Lens Visual Match and Reverse Image Search Actor will start running based on the input automatically. You can also change all the input fields, like result set, image urls, and more, to match your specific use case.

### 3. Receive the "Google Lens API Alternative for AI Agents" 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 record type, match type, position, and more.

### 4. 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 "Google Lens API Alternative for AI Agents" task via API](https://apify.com/xyrelith-data/google-lens-scraper.md).

## FAQ

### Can I use a Google Lens API alternative to research an image with an AI agent?

The visual search task returns structured Google Lens results, including page URLs, titles and image dimensions. An AI description and detected subject are included when available.

### Can I find exact matches for an image with Google Lens?

Select exactMatches in the visual search task to find pages carrying the same image. Google may return no exact matches for some images.

### Can Google Lens find Products from an image and show their prices?

Select Products in the visual search task to return visual matches with a price. Ratings, review counts and stock labels appear when Google displays them.

### How do I change the country and language of Google Lens results?

Set the country and language in the visual search task to choose the Google market and result language. The supplied input uses the US market and English.

### Can I run Google Lens image searches on a schedule or through an API?

Run the visual search task through the Apify API or set an Apify schedule to repeat it. Its dataset can also be downloaded as JSON, CSV, Excel, XML, RSS or an HTML table.

## About this Actor

This example demonstrates how to use [Google Lens Visual Match and Reverse Image Search](https://apify.com/xyrelith-data/google-lens-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/xyrelith-data/google-lens-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/xyrelith-data/google-lens-scraper.md

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