GL

Google Lens

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.

Pay $10.00 for 1,000 images

GL
Google Lens

Pay $10.00 for 1,000 images

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.

{ "startUrls": [ { "url": "https://hips.hearstapps.com/hmg-prod/images/two-glasses-of-wine-and-summer-fruits-on-the-beach-royalty-free-image-1635272439.jpg" }, { "url": "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDXLWcWMSy7iTEEmJZmwDG7mzCXNjB0NJ-M33XyIPmEHu7EAN7NTQF6wrxI5O895zmRo9KReAAi2eoeQFE_W6WqmCc-IeKa9L2wCJ9fyijXwLlYzNQAv3BMRK0yQmqQbG_g3wbg1tTcsWO-AGH6TRtcA1ZXYT102FGAngVS9KHNXBvcYuUT6I77cYt/s4032/SeoulProSoyFront.JPG" } ], "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:

[{ "url": "https://www.maisonmargiela-fragrances.eu/dw/image/v2/BDCR_PRD/on/demandware.static/-/Sites-margiela-master-catalog/default/dw3fbc4479/images/products/MM003/MM003_002.jpg?sw=750&sh=750&sm=cut&sfrm=jpg&q=70", "imageType": "MAISON MARGIELA Replica Eau De Toilette Spray", "ocrTextLocale": "en", "ocrText": [ "Musc", "REPLICA", "REPRODUCTION OF FAMILIAR SCENTS AND MOMENTS OF VARYING LOCATIONS AND PERIODS", "Originally:", "Beach Walk", "Calvi 1972", "Provenance and Period:Fragrance Description:Style Description:", "Sun kissed salty skin", "Female fragrance", "Maison Margiela PARIS", "Bergamot", "Coconut Milk", "Ylang Ylang" ], "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.

{ "url": "https://hips.hearstapps.com/hmg-prod/images/index1-1605618242.jpg", "imageType": "Pierce Brosnan", "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.

{ "url": "https://blog.apify.com/content/images/size/w600/2023/03/Screenshot-2023-03-20-at-17.01.39-1.png", "imageType": "Unknown Type", "matchesCount": 60, "matches": [ { "thumb": "https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcTLT_m1JfUJQp4UY_HfbAFOMJleG7gxh88GHoDZuQgjhBo858gD", "websiteTitle": "Coming soon: National Opportunity Zones Marketplace - Smart Growth America", "websiteUrl": "https://smartgrowthamerica.org/coming-soon-national-opportunity-zones-marketplace/" }, { "thumb": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQinUS15ZYiWRAv8E46mcoYelLBej6nkyA9hVwikCqJzoim0KKp", "websiteTitle": "Zones (green) and corridors (red lines) of clusters of inner city... | Download Scientific Diagram", "websiteUrl": "https://www.researchgate.net/figure/Zones-green-and-corridors-red-lines-of-clusters-of-inner-city-biophilic-elements-in_fig2_337842964" }, { "thumb": "https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcSsoteufMUU8fSATFX6TuInnLbUlD_FlocAmUMe1F915z6gyTsm", "websiteTitle": "Climate Change and The Greenway - The Rose Kennedy Greenway", "websiteUrl": "https://www.rosekennedygreenway.org/climate-change-and-the-greenway/" }, { "thumb": "https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcQsxZhcKPyZLqJbrRuGkt23zHm_naRzeXPJlgYbwyWa2SoZ9EnN", "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. https://t.co/xdV84gcQJg\" / Twitter", "websiteUrl": "https://twitter.com/NYGovCuomo/status/1313588620264124416" }, { "thumb": "https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRQ59PgMbOgex0LAFBVw4GKkjzdHt0oZ6RMliw6eRogTDZow7BD", "websiteTitle": "(PDF) Predicting Taxi and Uber Demand in Cities: Approaching the Limit of Predictability", "websiteUrl": "https://www.researchgate.net/publication/337876513_Predicting_Taxi_and_Uber_Demand_in_Cities_Approaching_the_Limit_of_Predictability" } ] }

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.