Google Lens API: Scrape Visual Search Data

Google Lens API allows you to extract related data from Google Lens. The output data will have title, source, link, and thumbnail in structured JSON.

GET / google_lens
"lens_results": [
    {
        "position": 1,
        "title": "\"The Rocky Horror Picture Show\" 35th Anniversary...",
        "source": "imdb.com",
        "source_favicon": "https://encrypted-tbn2.gstatic.com/favicon-tbn?q=...",
        "link": "https://www.imdb.com/media/rm2580580096/rg4018969088",
        "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:..."
    }
]

How It Works Behind the API

</> Get
import requests

api_key = "APIKEY"
url = "https://api.scrapingdog.com/google_lens"

params = {
    "api_key": api_key,
    "url": "https://lens.google.com/uploadbyurl?url=https://i.imgur.com/HBrB8p0.png"
}

response = requests.get(url, params=params)

if response.status_code == 200:
    data = response.json()
    print(data)
else:
    print(f"Request failed with status code: {response.status_code}")

Google Lens API Response (Structured JSON Data)

Try Scrapingdog for Free
  • Visual Matches

    lens_resultsposition
  • Match Title

    title
  • Origin Source

    sourcesource_favicon
  • Destination Link

    link
  • Image Thumbnail

    thumbnail
  • Result Ranking

    positionlens_results

Google Lens API Features That Make Scraping Easy

  • Rotating Proxy Network

    Our API includes a built-in rotating proxy system that automatically changes IP addresses for every Google Lens request.

  • Automatic CAPTCHA

    Scrapingdog automatically bypasses the CAPTCHA and anti-bot protection Google uses, so requests run without blocks.

  • Structured JSON Responses

    All important fields like title, source, link, and thumbnail are ready to use without complex parsing.

  • Real-Time Visual Data

    Our API ensures you always receive the latest Google Lens visual matches and image results instantly.

  • High Success Rate API

    Our powerful infrastructure is designed to deliver reliable results every time, with optimized proxy rotation.

  • Fast Response Time

    Receive Google Lens results in just a few seconds with our high-performance visual scraping API.

What you can build with a Google Lens Scraper API

  • Find Products Easily

    Power image-based product search for shopping platforms, letting users discover items by uploading a photo instead of typing a query.

  • Content Moderation

    Detect inappropriate content, logos, and watermarks at scale by matching user-uploaded images against Google Lens visual results.

  • Improve Marketing Insights

    Analyze trends in user-uploaded images to understand what your audience is searching for and refine your campaigns.

  • Add Visual Data to AI Models

    Enhance visual recognition systems by feeding structured Google Lens match data into your AI and machine learning pipelines.

  • Organize Real Estate Images

    Classify and label property photos automatically using visual search results to keep large image libraries organized.

  • Save Historical Images

    Extract and organize archival records and historical imagery by collecting visual matches and their sources.

Built for teams of every size and background

  • Visual Search Builders
  • E-commerce & Marketplace Teams
  • Product-Match Engineers
  • Brand Protection Teams
  • Counterfeit Investigators
  • Computer Vision / ML Engineers
  • Image Dataset Curators
  • OSINT & Fact-Checking Journalists
  • Content Moderation Teams
  • Reverse-Image Researchers
  • Resellers & Arbitrage Sellers
  • Real Estate Image Teams

Get Started with Our Google Lens Scraper API in Minutes

  1. 1

    Create free account

    Sign up and get free credits to start testing the Google Lens API.

  2. 2

    Get Your API Key

    Access your unique API key from the dashboard and use it to scrape visual search data.

  3. 3

    Pass an Image URL

    Wrap your image in an uploadbyurl link and send it as the url param.

  4. 4

    Get Visual Matches as JSON

    Receive a clean lens_results array with position, title, source, link, and thumbnail for each match.

Transparent & Simple Pricing

Start your web scraping journey with 100 free credits. Test our service and upgrade to one of the plans below. Cancel anytime.

2 months Extra
  • FREE

    $0 forever
    • 100 Requests Credits
    • 1 Concurrency
    • Access To All APIs
    • No Credit Card Required
    • Community Support
    • Team Support
    Start for Free
  • LITE

    $40 /month
    • 200,000 Requests Credits
    • 5 Concurrency
    • Access To All APIs
    • Geotargeting
    • Email Support
    • No Team Support
    Start Trial
  • STANDARD

    $90 /month
    • 1,000,000 Requests Credits
    • 50 Concurrency
    • Access To All APIs
    • Geotargeting
    • Priority Email Support
    • No Team Support
    Start Trial
  • Popular

    PRO

    $200 /month
    • 3,000,000 Requests Credits
    • 100 Concurrency
    • Access To All APIs
    • Geotargeting
    • Priority Email Support
    • Team Support
    Start Trial
  • PREMIUM

    $350 /month
    • 6,000,000 Requests Credits
    • 150 Concurrency
    • Access To All APIs
    • Geotargeting
    • Priority Email Support
    • Team Support
    Start Trial

Trusted by Developers worldwide

4.8 TrustScore on Trustpilot
  • I got the free trial and in less than a minute I already integrated with their API.

    Cara Damiano

    United States

  • I love how you can use it to scrape data from Google.

    Filip Ligaarden

    Norway

  • Scrapingdog is an awesome service. It enabled me to land clients.

    Hector Casanova Loera

    Mexico

  • Reliable and simple to use. It is also inexpensive and has a packaged solution for every need. Highly recommend.

    John Tyler

    France

Frequently Asked Questions

  • At Scrapingdog, we have created a dedicated API for it, you can test it for free with 100 credits.

  • Unfortunately, Google doesn't have an official Lens API. However, you can use 3rd party providers like Scrapingdog.

  • Of course, you can scrape it using any programming language. However, to scale this process, you need an API.

  • Yes, Scrapingdog provides dedicated APIs for Google Images, Google Scholar, and Google Search, among others.

  • Each request consumes credits based on the API used. For example, the Google Search API costs 10 credits per request.

Try Scrapingdog for Free!

Get 100 free credits to spin the API. No credit card required!