# Get Google Lens API Key Results for Visual Search

**Use case:** 

Access Google Lens data without a Google Cloud API key. Search image URLs to retrieve visual matches, product prices, OCR text, and detected entities. Get structured JSON output with page links, thumbnails, and merchant info. Developers can use this as a direct reverse image search API by adjusting the country and language settings.

## Input

```json
{
  "mode": "all",
  "imageUrls": [
    "https://images.unsplash.com/photo-1502602898657-3e91760cbb34?w=640"
  ],
  "country": "US",
  "language": "en",
  "maxItems": 60,
  "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 "Get Google Lens API Key Results for Visual Search". [Sign up or log in](https://console.apify.com/create-task-from-example/PauijDlthng81zz3C) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Get Google Lens API Key Results for Visual Search" 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 "Get Google Lens API Key Results for Visual Search" 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 "Get Google Lens API Key Results for Visual Search" task via API](https://apify.com/xyrelith-data/google-lens-scraper.md).

## FAQ

### Do I need a Google Lens API key to search images?

A Google account or API key is not required to run the Google Lens search task.

### How do I run a Google Lens reverse image search online?

Enter one or more public direct image URLs in the Google Lens search task. JPEG, PNG, WebP, GIF and AVIF are supported; a web page URL is not an image URL.

### What data does a Google Lens image search return?

Visual matches in the Google Lens search task can include a title, source, page link, thumbnail, full-size image URL and dimensions.

### Can Google Lens find the same image or Products with prices?

Choose exact matches in the Google Lens search task to find pages carrying the same image, or choose Products to return visual matches with a price.

### Can I use Google Lens for OCR through an API?

Choose OCR mode in the Google Lens search task to read text, language and paragraph boxes, or enable OCR alongside another mode. The task can run through the Apify API.

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

Set the country and language in the Google Lens search task to change the Google market and result language. The current settings are US and English.

### How many Google Lens results can I get per image?

Up to 60 match rows per image are saved with the Google Lens search task's current limit. One lookup returns about 60 visual matches or up to 400 exact matches.

### How much does a Google Lens API search cost?

On the Free plan, the Google Lens search task charges $0.10 per Actor Start event and $0.99 per 1,000 results, plus platform compute. The result charge is at most $0.059 for the current 60-result limit.

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