Google Lens avatar
Google Lens
Try for free

Pay $10.00 for 1,000 images

View all Actors
Google Lens

Google Lens

Try for free

Pay $10.00 for 1,000 images

Google Lens API alternative with no limits. Use this OCR shortcut to recognize text on the image, find alt text, identify language, recognize image type, find similar products and visuals by image URL. Just copy-paste an image URL you need OCR data from.

This Actor is an unofficial Google Lens API capable to identify text on images, recognize objects on images even without text, and search by images. Provided with an image URL, this Google Lens API will extract the image type, an array of OCR text fragments, locale, and optional site links for visual matches.

What is a Google Lens Actor and what does it do?

It does pretty much the same thing as Google Lens itself except it also provides you with programmatic access to the results, namely the results of:

馃攳聽OCR, text and alt text recognition, and translation

馃巵聽Object recognition and classification

馃暤锔忊嵚燫everse image search

馃摎聽Converting images into text

馃捊聽Double use as Google Lens API

How do I get OCR data from Google Lens?

  1. Create聽a free Apify account using your email.
  2. Open聽Google Lens Actor.
  3. Find an image link.
  4. Feed the image link to the Actor.
  5. Click "Start" and wait for the data to be extracted and matched.
  6. Download your Google Lens data in JSON, XML, CSV, Excel, or HTML.

If you need guidance on how to run the scraper, you can follow our聽step-by-step tutorial聽馃敆

How can I use Google Lens Actor?

馃聽Bootstrap AI training with image datasets

馃獮聽Find similar products and visuals

鉁燬upport creative work such as graphic or web design

馃敠聽Detect specific content across the web

Input example

The input for Google Lens API should be an image URL you need OCR data from. The image can be from anywhere on the web: blog, newspaper, e-shop, social media posts such as Instagram or Twitter, etc. You can add one or multiple image URLs with an image format at the end such as .png or .jpg. See the input tab for a full explanation of input in JSON.

2    "startUrls": [
3        { "url": "" },
4        { "url": "" }
5    ],
6    "addMatchedImageSources": true

Output example

The results will be wrapped into a dataset which you can find in the Storage tab. You can choose in which format to download your Google Lens data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

Images containing text

If the image has text on it, you can easily get all the OCR data. Moreover, if your image includes a product type known to Google Lens, you will get a short聽imageType description:

2  "url": "",
3  "imageType": "MAISON MARGIELA Replica Eau De Toilette Spray",
4  "ocrTextLocale": "en",
5  "ocrText": [
6    "Musc",
7    "REPLICA",
9    "Originally:",
10    "Beach Walk",
11    "Calvi 1972",
12    "Provenance and Period:Fragrance Description:Style Description:",
13    "Sun kissed salty skin",
14    "Female fragrance",
15    "Maison Margiela PARIS",
16    "Bergamot",
17    "Coconut Milk",
18    "Ylang Ylang"
19  ],
20  "matchesCount": 42

Images containing no text

In case there is no text on the image to be scanned and referred to, you might still get an imageType in description if it is known to Google Lens.

2	"url": "",
3	"imageType": "Pierce Brosnan",
4	"matchesCount": 60

Image matches found

Sometimes the imageType cannot be identified. In that case, you can also search for visual matches without spending extra CUs. However, please note that the resulting matches wouldn't be direct image links but thumbnails, a.k.a static images generated by Google. You can use the matched images as a reference or as a wide guess for cases when the image can not be recognized as specific type.

2  "url": "",
3  "imageType": "Unknown Type",
4  "matchesCount": 60,
5  "matches": [
6    {
7      "thumb": "",
8      "websiteTitle": "Coming soon: National Opportunity Zones Marketplace - Smart Growth America",
9      "websiteUrl": ""
10    },
11    {
12      "thumb": "",
13      "websiteTitle": "Zones (green) and corridors (red lines) of clusters of inner city... | Download Scientific Diagram",
14      "websiteUrl": ""
15    },
16    {
17      "thumb": "",
18      "websiteTitle": "Climate Change and The Greenway - The Rose Kennedy Greenway",
19      "websiteUrl": ""
20    },
21    {
22      "thumb": "",
23      "websiteTitle": "Archive: Governor Andrew Cuomo on Twitter: \"We have a clear and effective plan to respond to any clusters that threaten our progress. We will attack each area in the cluster with appropriate restrictions. Here is the map of the Brooklyn cluster along with the rules.\" / Twitter",
24      "websiteUrl": ""
25    },
26    {
27      "thumb": "",
28      "websiteTitle": "(PDF) Predicting Taxi and Uber Demand in Cities: Approaching the Limit of Predictability",
29      "websiteUrl": ""
30    }
31  ]

Need more Google scraping tools?

You can use the dedicated scrapers below if you want to scrape specific Google data. Each of them is built particularly for the relevant Google scraping case be it Maps, Trends, Reviews, or Google Search itself. Feel free to browse them:

馃椇聽Google Maps with Contact Details馃幃 Google Play Scraper
馃攳 Google Search Results Scraper馃搱 Google Trends Scraper
馃捈 Google Jobs Scraper馃摪 Google News Scraper
馃搷聽Google Maps Scraper馃聽AI Text Analyzer for Google Reviews

Our Google scrapers are ethical and do not extract any private user data, such as email addresses, gender, or location. They only extract what the user has chosen to share publicly. However, you should be aware that your results could contain personal data. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers. You can also read our blog post on the legality of web scraping and ethical scraping.

Your feedback

We鈥檙e always working on improving the performance of our Actors. So if you鈥檝e got any technical feedback for Google Lens Scraper or simply found a bug, please create an issue on the Actor鈥檚 Issues tab in Apify Console.

Maintained by Community
Actor metrics
  • 33 monthly users
  • 99.2% runs succeeded
  • 0.0 days response time
  • Created in Feb 2023
  • Modified 9 months ago