Google Lens API

This Google Lens API gives you programmatic access to Google Lens data that isn't available through any official API. Get data on OCR text extraction, reverse image search, object recognition, visual matching, structured data extraction, and more. You can try the Google Lens API for free, no credit card required.

Trusted by industry leaders all over the world

Integrate Google Lens API

Access the Google Lens API using Python, JavaScript, CLI, cURL, OpenAPI, or MCP. Choose your preferred option and start extracting Google Lens data in minutes.

Python

Python

JavaScript

JavaScript

HTTP

HTTP

MCP

MCP

1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4# Replace '<YOUR_API_TOKEN>' with your token.
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7# Prepare the Actor input
8run_input = {
9 "searchTypes": [
10 "all",
11 "ai-mode",
12 "translate-ocr",
13 ],
14 "imageUrls": [{ "url": "https://console.apify.com/img/logos_apify/logo_apify_full_white_text.svg" }],
15 "translateLanguage": "en",
16 "language": "en",
17}
18
19# Run the Actor and wait for it to finish
20run = client.actor("borderline/google-lens").call(run_input=run_input)
21
22# Fetch and print Actor results from the run's dataset (if there are any)
23print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
24for item in client.dataset(run["defaultDatasetId"]).iterate_items():
25 print(item)
26
27# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

Get data with Google Lens API

Extract Google Lens data by providing image URLs and operation type (translate, exact-match, visual-match, all, products, or homework). The Google Lens API returns structured JSON data with OCR text segments, similar images with thumbnails and sources, object classifications, and detailed metadata including bounding boxes and confidence scores.

Input

{
"imageUrls": [
{
"url": "https://apify.com/img/apify-logo/apify-wordmark-dark-512x141.svg",
"method": "GET"
}
],
"searchTypes": [
"all",
"ai-mode",
"translate-ocr",
"exact-match",
"ocr",
"visual-match",
"products",
"homework"
],
"aiModeQuestions": [
"What is the logo color",
"What is the logo size"
],
"translateLanguage": "fr"
}

Output

[
{
"all": {
"results": [
{
"search": {
"href": "https://apify.com/resources/brand",
"title": "ApifyApify brand guidelines · Apify",
"description": ""
}
},
{
"search": {
"href": "https://aws.amazon.com/marketplace/reviews/reviews-list/prodview-t3cvd2xjhfj6m",
"title": "Amazon.comAWS Marketplace: Apify - Web Scraping and AI Agent Platform ...",
"description": "AWS Marketplace: Apify - Web Scraping and AI Agent Platform ..."
}
},
{
"search": {
"href": "https://www.youtube.com/watch?v=gNy_Exf1J2s",
"title": "YouTubeApify - Your Full‑Stack Platform for Web Scraping - YouTube",
"description": "Apify - Your Full‑Stack Platform for Web Scraping - YouTube"
}
},
{
"search": {
"href": "https://www.facebook.com/groups/webscrapingandautomation/posts/832537062082727/",
"title": "FacebookHow to retrieve product data and images from TEMU website ...",
"description": "How to retrieve product data and images from TEMU website ..."
}
},
{
"search": {
"href": "https://www.fahimai.com/apify",
"title": "Fahim AIApify Review: Best Web Scraping Tool in 2025?In stock",
"description": "Apify Review: Best Web Scraping Tool in 2025?"
}
},
{
"search": {
"href": "https://blog.apify.com/apify-brand-refresh/",
"title": "ApifyEvolution, not revolution: Apify's brand refresh",
"description": "Evolution, not revolution: Apify's brand refresh"
}
},
{
"search": {
"href": "https://igleads.io/resources/apify-alternatives/",
"title": "IGLeads13 Best Apify Alternatives for Web Scraping in 2025 (Free ...",
"description": "13 Best Apify Alternatives for Web Scraping in 2025 (Free ..."
}
},
{
"search": {
"href": "https://commons.wikimedia.org/wiki/File:Apify-logo.svg",
"title": "Wikimedia.orgFile:Apify-logo.svg - Wikimedia Commons",
"description": "File:Apify-logo.svg - Wikimedia Commons"
}
},
{
"search": {
"href": "https://www.youtube.com/@Apify",
"title": "YouTubeApify - YouTube",
"description": ""
}
},
{
"search": {
"href": "https://www.linkedin.com/posts/michelle-macias-mendez-293462229_next-week-the-young-creators-build-weekend-activity-7397579535879258112--dK0",
"title": "LinkedInNext week, the Young Creators Build Weekend will take place ...",
"description": "Next week, the Young Creators Build Weekend will take place ..."
}
},
{
"search": {
"href": "https://apify.hashnode.dev/how-to-scrape-google-search-results",
"title": "HashnodeHow to scrape Google Search results",
"description": "How to scrape Google Search results"
}
},
{
"search": {
"href": "https://www.alnusoft.com/best-apify-alternatives-for-web-scraping/",
"title": "Alnusoft10 Best Apify Alternatives For Web Scraping 2022 - Alnusoft",
"description": "10 Best Apify Alternatives For Web Scraping 2022 - Alnusoft"
}
},
{
"search": {
"href": "https://commons.wikimedia.org/wiki/File:Apify_Logo.svg",
"title": "Wikimedia.orgFile:Apify Logo.svg - Wikimedia Commons",
"description": "File:Apify Logo.svg - Wikimedia Commons"
}
},
{
"search": {
"href": "https://www.gumloop.com/blog/apify-alternatives",
"title": "Gumloop7 best Apify alternatives I'm using in 2026 (free + paid)",
"description": "7 best Apify alternatives I'm using in 2026 (free + paid)"
}
},
{
"search": {
"href": "https://x.com/apify",
"title": "XApify (@apify) / Posts / X",
"description": ""
}
},
{
"search": {
"href": "https://blog.apify.com/author/emilya/",
"title": "ApifyEmilya Tonoyan - Apify Blog",
"description": ""
}
},
{
"search": {
"href": "https://pitchbook.com/profiles/company/168029-47",
"title": "PitchBookApify 2026 Company Profile: Valuation, Funding & Investors ...",
"description": "Apify 2026 Company Profile: Valuation, Funding & Investors ..."
}
},
{
"search": {
"href": "https://strongestgroup.com/",
"title": "strongestgroup.comGTM Partner for B2B Growth | Strongest Group",
"description": "GTM Partner for B2B Growth | Strongest Group"
}
},
{
"search": {
"href": "https://www.fahimai.com/id/apify",
"title": "Fahim AIApify Review: Best Web Scraping Tool in 2025?In stock",
"description": "Apify Review: Best Web Scraping Tool in 2025?"
}
},
{
"search": {
"href": "https://igleads.io/resources/apify-review/",
"title": "IGLeadsApify Review (2025) – Features, Pricing, Pros & Best Alternative",
"description": "Apify Review (2025) – Features, Pricing, Pros & Best Alternative"
}
},
{
"search": {
"href": "https://www.youtube.com/watch?v=qMquIcJWZag",
"title": "YouTubeThere's an Actor for That │ 10,000+ Tools on Apify Store ...",
"description": "There's an Actor for That │ 10,000+ Tools on Apify Store ..."
}
},
{
"search": {
"href": "https://dev.to/eunit/automating-data-collection-with-apify-from-script-to-deployment-3d6o",
"title": "DEV CommunityAutomating Data Collection with Apify: From Script to ...",
"description": "Automating Data Collection with Apify: From Script to ..."
}
},
{
"search": {
"href": "https://blackbearmedia.io/apify-review/",
"title": "blackbearmedia.ioApify Review 2025 – Features, Use Cases, Pricing, Pros ...",
"description": "Apify Review 2025 – Features, Use Cases, Pricing, Pros ..."
}
},
{
"search": {
"href": "https://madebysoulmates.com/case/apify/",
"title": "madebysoulmates.comApify – Soulmates",
"description": ""
}
},
{
"search": {
"href": "https://brandfetch.com/apify.com",
"title": "BrandfetchApify Logo & Brand Assets (SVG, PNG and vector) - Brandfetch",
"description": "Apify Logo & Brand Assets (SVG, PNG and vector) - Brandfetch"
}
},
{
"search": {
"href": "https://apify.com/integrations",
"title": "ApifyConnect Apify with everything you build · Apify",
"description": "Connect Apify with everything you build · Apify"
}
},
{
"search": {
"href": "https://blog.apify.com/",
"title": "ApifyApify Blog: Guides to web scraping, automation, and AI agents",
"description": "Apify Blog: Guides to web scraping, automation, and AI agents"
}
},
{
"search": {
"href": "https://dataprixa.com/what-is-apify/",
"title": "dataprixa.comWhat Is Apify? Web Scraping and Automation Platform Reviews",
"description": "What Is Apify? Web Scraping and Automation Platform Reviews"
}
},
{
"search": {
"href": "https://www.linkedin.com/posts/apify_the-best-way-to-learn-web-scraping-start-activity-7421223314603384832-oJSQ",
"title": "LinkedInThe best way to learn web scraping? Start building with it ...",
"description": "The best way to learn web scraping? Start building with it ..."
}
},
{
"search": {
"href": "https://www.thailandtravelagent.ai/pages/about-us",
"title": "thailandtravelagent.aiAbout Us – ThailandTravelAgent.ai",
"description": "About Us – ThailandTravelAgent.ai"
}
},
{
"search": {
"href": "https://thunderbit.com/blog/apify-review-and-alternative",
"title": "ThunderbitWe Tested It: A Beginner-Friendly Alternative to Apify丨 ...",
"description": "We Tested It: A Beginner-Friendly Alternative to Apify丨 ..."
}
},
{
"search": {
"href": "https://www.facebook.com/photo.php?fbid=225462325898553&id=114656440312476&set=a.123244516120335",
"title": "FacebookNo Fluff Jobs CZ / SK - Apify je platforma pro web scraping ...",
"description": "No Fluff Jobs CZ / SK - Apify je platforma pro web scraping ..."
}
},
{
"search": {
"href": "https://proxy-port.com/en/articles",
"title": "proxy-port.comArticles | Proxy Port",
"description": ""
}
},
{
"search": {
"href": "https://x.com/apify/status/1977388826931695908",
"title": "XWith Apify you can still write your own code, but skip the ...",
"description": "With Apify you can still write your own code, but skip the ..."
}
},
{
"search": {
"href": "https://affiliate.apify.com/",
"title": "ApifyJoin Apify Affiliate Program",
"description": ""
}
},
{
"search": {
"href": "https://www.pngwing.com/en/free-png-aaqkt",
"title": "PNGWingApify logo, tech companies, png | PNGWing",
"description": "Apify logo, tech companies, png | PNGWing"
}
},
{
"search": {
"href": "https://www.youtube.com/watch?v=uFvdjnq5ofE",
"title": "YouTubeHow to Automate Anything using Apify - YouTube",
"description": "How to Automate Anything using Apify - YouTube"
}
},
{
"search": {
"href": "https://www.pikpng.com/pngvi/hbwixix_apify-logo-clipart/",
"title": "PikPngApify Logo Clipart (#5362913) - PikPng",
"description": "Apify Logo Clipart (#5362913) - PikPng"
}
},
{
"search": {
"href": "https://www.toksta.com/products/apify",
"title": "TokstaApify Review 2025 - Reddit Sentiment, Alternatives & More",
"description": "Apify Review 2025 - Reddit Sentiment, Alternatives & More"
}
},
{
"search": {
"href": "https://www.reddit.com/r/automation/comments/1o5h7kh/how_i_automate_my_online_business_with_apify/",
"title": "RedditHow I Automate My Online Business with Apify : r/automation",
"description": "How I Automate My Online Business with Apify : r/automation"
}
},
{
"search": {
"href": "https://apify.com/use-cases/lead-generation",
"title": "ApifyWeb scraping for lead generation · Apify",
"description": "Web scraping for lead generation · Apify"
}
},
{
"search": {
"href": "https://www.marketing-tools.tech/apify/",
"title": "marketing-tools.techApify",
"description": ""
}
},
{
"search": {
"href": "https://proxy.coupons/apify-alternatives/",
"title": "proxy.couponsTop 5 Apify Alternatives For Web Scraping In 2026 - ProxyCoupons",
"description": "Top 5 Apify Alternatives For Web Scraping In 2026 - ProxyCoupons"
}
},
{
"search": {
"href": "https://www.jtventures.cz/",
"title": "J&T VenturesJ&T Ventures",
"description": ""
}
},
{
"search": {
"href": "https://www.fahimai.com/apify-alternatives",
"title": "Fahim AI7 Best Apify Alternatives for Web Scraping in 2025",
"description": "7 Best Apify Alternatives for Web Scraping in 2025"
}
},
{
"search": {
"href": "https://github.com/apify/apify-mcp-server",
"title": "GitHubGitHub - apify/apify-mcp-server: The Apify MCP server ...",
"description": "GitHub - apify/apify-mcp-server: The Apify MCP server ..."
}
},
{
"search": {
"href": "https://remotive.com/remote/jobs/software-development/frontend-engineer-3096118",
"title": "RemotiveHiring] Frontend Engineer @Apify",
"description": "Hiring] Frontend Engineer @Apify"
}
},
{
"search": {
"href": "https://www.elc-conference.io/2025",
"title": "elc-conference.ioELC Conference 2025 Recap",
"description": ""
}
},
{
"search": {
"href": "https://ninjaseo.com/site-crawler",
"title": "NinjaseoTop 5 Site Crawler Tools to Look for in 2022",
"description": "Top 5 Site Crawler Tools to Look for in 2022"
}
},
{
"search": {
"href": "https://bolots.ky/p/vc-ai-data-market-map",
"title": "bolots.kyMarket Map: Data + AI Tooling for Venture Capital Firms",
"description": "Market Map: Data + AI Tooling for Venture Capital Firms"
}
},
{
"search": {
"href": "https://keysight.appify.com/",
"title": "appify.comAppify Login",
"description": ""
}
},
{
"search": {
"href": "https://www.startupjobs.cz/nabidka/74881/junior-product-manager",
"title": "StartupJobs.czJunior Product Manager_old | StartupJobs.cz",
"description": "Junior Product Manager_old | StartupJobs.cz"
}
},
{
"search": {
"href": "https://www.promptloop.com/directory/what-does-appify-do",
"title": "PromptLoopWhat Does Appify Do? | Directory",
"description": "What Does Appify Do? | Directory"
}
},
{
"search": {
"href": "https://www.youtube.com/watch?v=i2Dy9fDqbRk",
"title": "YouTubeAPIFY Full Introduction And Tutorial 2022: Turn Any Data On ...",
"description": "APIFY Full Introduction And Tutorial 2022: Turn Any Data On ..."
}
},
{
"search": {
"href": "https://www.scaut.com/",
"title": "SCAUTOnline Background Screening Platform | SCAUT",
"description": "Online Background Screening Platform | SCAUT"
}
},
{
"search": {
"href": "https://www.evolva.ai/",
"title": "Evolva AIEvolva AI - Custom AI Content & Marketing Automation Systems",
"description": "Evolva AI - Custom AI Content & Marketing Automation Systems"
}
},
{
"search": {
"href": "https://proxyway.com/best/facebook-scraping-tools",
"title": "ProxywayThe 6 Best Facebook Scraping Tools of 2026 - Proxyway",
"description": "The 6 Best Facebook Scraping Tools of 2026 - Proxyway"
}
},
{
"search": {
"href": "https://apify.com/",
"title": "Apify: Full-stack web scraping and data extraction platform",
"description": ""
}
},
{
"search": {
"href": "https://www.youtube.com/@Apify",
"title": "YouTube · Apify12K+ followers",
"description": ""
}
},
{
"search": {
"href": "https://www.youtube.com/watch?v=qMquIcJWZag",
"title": "There's an Actor for That 10000+ Tools on Apify Store",
"description": "YouTube · Apify2.4M+ views · 1 month ago"
}
},
{
"search": {
"href": "https://www.youtube.com/watch?v=qMquIcJWZag",
"title": "There's an Actor for That 10000+ Tools on Apify StoreYouTube·Apify·Jan 8, 2026",
"description": ""
}
},
{
"search": {
"href": "https://aws.amazon.com/marketplace/reviews/reviews-list/prodview-t3cvd2xjhfj6m",
"title": "Apify - Web Scraping and AI Agent Platform Reviews - AWS",
"description": "Amazon Web Services (AWS)https://aws.amazon.com › reviews › reviews-list"
}
},
{
"search": {
"href": "https://apify.com/resources/brand",
"title": "Apify brand guidelines",
"description": "Apifyhttps://apify.com › resources › brand"
}
},
{
"search": {
"href": "https://www.youtube.com/watch?v=gNy_Exf1J2s",
"title": "Apify - Your Full‑Stack Platform for Web Scraping",
"description": "YouTube · Apify840+ views · 12 months ago"
}
},
{
"search": {
"href": "https://www.youtube.com/watch?v=gNy_Exf1J2s",
"title": "Apify - Your Full‑Stack Platform for Web ScrapingYouTube·Apify·Feb 14, 2025",
"description": ""
}
},
{
"search": {
"href": "https://www.facebook.com/groups/webscrapingandautomation/posts/832537062082727/",
"title": "How to retrieve product data and images from TEMU ...",
"description": "Facebook · Web Scraping & Automation Using Python7 comments · 1 year ago"
}
},
{
"search": {
"href": "https://dev.to/eunit/automating-data-collection-with-apify-from-script-to-deployment-3d6o",
"title": "Automating Data Collection with Apify: From Script to ...",
"description": "DEV Communityhttps://dev.to › eunit"
}
},
{
"search": {
"href": "https://igleads.io/resources/apify-review/",
"title": "Apify In-Depth Review 2025: Features, Pros & Cons",
"description": "IGLeadshttps://igleads.io › Articles"
}
},
{
"search": {
"href": "https://www.gumloop.com/blog/apify-alternatives",
"title": "7 best Apify alternatives I'm using in 2026 (free + paid)",
"description": "Gumloophttps://www.gumloop.com › blog › apify-alternatives"
}
},
{
"search": {
"href": "#",
"title": "Miami-Ft. Lauderdale FL, Florida",
"description": ""
}
}
],
"aiPreview": "This image displays the logo for Apify, a cloud platform designed for web scraping and automation. \nPlatform Function: Enables users to build web scrapers and automate tasks directly in the cloud. \nKey Features: Includes \"Actors\" (dedicated programs for scraping/automation) and data storage solutions. \nMarketplace: Features the Apify Store, which contains over 10,000 tools for data extraction."
}
}
]
Sign up for Apify account01

Creating an account is quick and free — no credit card required. Your account gives you access to more than 5,000 scrapers and APIs.

Get started for free
Get your Apify API token02

Go to settings in the Apify console and navigate to the “API & Integrations” tab. There, create a new token and save it for later.

Integrate Google Lens API03

Navigate to the Google Lens API page and click on the API dropdown menu in the top right corner. In the dropdown menu, you can see API clients, API endpoints, and more.

Open Google Lens API
Get your Google Lens data via API04

Now, you can use the API and get the data you need from Google Lens.

Why use Apify?

Never get blocked

Every plan (free included) comes with Apify Proxy, which is great for avoiding blocking and giving you access to geo-specific content.

Customers love us

We truly care about the satisfaction of our users and thanks to that we're one of the best-rated data extraction platforms on both G2 and Capterra.

Monitor your runs

With our latest monitoring features, you always have immediate access to valuable insights on the status of your web scraping tasks.

Export to various formats

Your datasets can be exported to any format that suits your data workflow, including Excel, CSV, JSON, XML, HTML table, JSONL, and RSS.

Integrate Apify to your workflow

You can integrate your Apify runs with platforms such as Zapier, Make, Keboola, Google Drive, or GitHub. Connect with practically any cloud service or web app.

Large developer community

Apify is built by developers, so you'll be in good hands if you have any technical questions. Our Discord server is always here to help!

Frequently asked questions

No, there is no official Google Lens API available for developers. Google does not provide a public API for Google Lens functionality. However, this Apify Actor serves as an unofficial Google Lens API that replicates the core features of Google Lens, allowing you to programmatically analyze images for text recognition, reverse image search, and object identification through a reliable web scraping solution.

Yes, you can try the Google Lens API for free! Apify offers a free tier that includes $5 of platform credits each month, which is typically enough for testing and small-scale usage. Simply create a free Apify account, navigate to the Google Lens Actor, and click "Try for free" to start processing images without any upfront payment.

With the Google Lens API, you can extract OCR text with language detection and bounding box coordinates, find similar images through reverse image search with source URLs and thumbnails, identify and classify objects in images, discover exact image matches with hosting site information, translate extracted text into different languages, and obtain structured metadata including image dimensions, confidence scores, and pixel coordinates for all detected elements.

Getting started with the Google Lens API is simple:

  1. Create a free Apify account,
  2. Navigate to the Google Lens Actor page and click "Try for free",
  3. Provide your input with image URLs and specify the operation type (translate, exact-match, visual-match, all, products, or homework),
  4. Click "Start" to begin processing, and
  5. Download your results in JSON, CSV, Excel, or HTML format from the Storage tab. The Actor processes images in seconds and delivers structured data ready for your applications.

Get started with Google Lens API today

Get your first Google Lens data in less than 5 minutes. No credit card required. No commitment. Cancel anytime.