Google Lens API

The Google Lens API, accessible via the /api/v1/search?engine=google_lens endpoint, enables real-time scraping of visual search results. This powerful tool transforms images into actionable insights.

Use the Google Lens API engine for tasks such as:

  • Recognizing landmarks, objects, or animals.
  • Extracting and translating text from images.
  • Discovering shopping products from photos.
  • Finding similar and exactly same images.

API Parameters

Search Query

  • Name
    url
    Required
    Required
    Description

    Parameter defines the image url. This is the direct link to the image you want Google Lens to analyze. Ensure the URL points to a valid image format (e.g., .jpg, .png) and is accessible publicly.

Localization

  • Name
    hl
    Required
    Optional
    Description

    The default parameter en defines the interface language of the search. Check the full list of supported Google hl languages.

  • Name
    country
    Required
    Optional
    Description

    Two-letter country code to tailor results to a specific location. Defaults to US. Check the full list of supported Google Lens country codes.

    Shopping results in Google Lens API are available in Austria, Australia, Belgium, Brazil, Canada, Chile, Colombia, Czech Republic, Denmark, France, Germany, India, Indonesia, Ireland, Italy, Japan, Malaysia, Mexico, Netherlands, New Zealand, Norway, Philippines, Poland, Portugal, Russia, Singapore, South Africa, South Korea, Spain, Sweden, Switzerland, Turkey, UAE, United Kingdom, and United States.

Device

  • Name
    device
    Required
    Optional
    Description

    The default parameter desktop defines the search on a desktop device. The mobile parameter defines the search on a mobile device. Google Lens is not available on tablets.

Engine

  • Name
    engine
    Required
    Required
    Description

    Parameter defines an engine that will be used to retrieve real-time data. It must be set to google_lens.

API key

  • Name
    api_key
    Required
    Required
    Description

    The api_key authenticates your requests. Use it as a query parameter (https://www.searchapi.io/api/v1/search?api_key=YOUR_API_KEY) or in the Authorization header (Bearer YOUR_API_KEY).

API Examples

Full Response

Full Response
GET
https://www.searchapi.io/api/v1/search?engine=google_lens&url=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fen%2F7%2F7a%2FHarry_Potter_and_the_Philosopher%2527s_Stone_banner.jpg
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "google_lens",
  "url": "https://upload.wikimedia.org/wikipedia/en/7/7a/Harry_Potter_and_the_Philosopher%27s_Stone_banner.jpg"
}

response = requests.get(url, params = params)
print(response.text)
Response
{
  "search_metadata": {
    "id": "search_OxE2l6wMgOJVS9x6p9PbYq4K",
    "status": "Success",
    "created_at": "2023-09-14T15:07:54Z",
    "request_time_taken": 1.98,
    "parsing_time_taken": 0.1,
    "total_time_taken": 1.88,
    "request_url": "https://lens.google.com/uploadbyurl?url=https://upload.wikimedia.org/wikipedia/en/7/7a/Harry_Potter_and_the_Philosopher's_Stone_banner.jpg&hl=en&ie=UTF-8",
    "html_url": "https://www.searchapi.io/api/v1/searches/search_OxE2l6wMgOJVS9x6p9PbYq4K.html",
    "json_url": "https://www.searchapi.io/api/v1/searches/search_OxE2l6wMgOJVS9x6p9PbYq4K"
  },
  "search_parameters": {
    "engine": "google_lens",
    "url": "https://upload.wikimedia.org/wikipedia/en/7/7a/Harry_Potter_and_the_Philosopher's_Stone_banner.jpg",
    "hl": "en"
  },
  "knowledge_graphs": [
    {
      "title": "Harry Potter And The Philosopher's Stone (International) Original Cinema Poster",
      "link": "https://www.google.com/search?q=Harry+Potter+And+The+Philosopher%27s+Stone+(International)+Original+Cinema+Poster&source=.lens.button&hl=en&gl=US",
      "images": [
        {
          "title": "Image for Harry Potter And The Philosopher's Stone (International) Original Cinema Poster",
          "original": {
            "link": "https://www.google.com/imgres?h=2236&w=1698&tbnh=258&tbnw=196&osm=1&hcb=1&source=lens-native&usg=AI4_-kQjR6JFjYvFZ7YVC04Cd9-kxChmwA&imgurl=https://m.media-amazon.com/images/I/81a82pACVFL.jpg&imgrefurl=https://www.amazon.co.uk/Potter-Sorcerers-School-Original-Cinema/dp/B07MTNHVG9&tbnid=26S5cFs4XQpk5M&docid=CLlO229yUbV4pM&hcb=1",
            "width": 196,
            "height": 258
          },
          "thumbnail": "https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcSP7Gz8CUZRjXbev_TG8FPfeGinIbc-V1sTmKvrRPz6qUey2nYd"
        }
      ],
      "shopping_results": [
        {
          "source": "eBay",
          "link": "https://www.ebay.com/itm/195369780364",
          "price": "$81.24",
          "extracted_price": 81.24,
          "snippet": "1st offer for $81.24 from eBay",
          "source_favicon": "https://encrypted-tbn0.gstatic.com/favicon-tbn?q=tbn:ANd9GcT5NXsW5qpQoNKtvnEC0sNL88H54opWmBBYIh2gQ3U_SGUU-yc8xV_BfeECVq4HYfwroQsx3k4lpMvjDByZM4KvONyK63j7aI6RPQrDFwRa9lo"
        },
        {
          "source": "Teachers Pay Teachers",
          "link": "https://www.teacherspayteachers.com/Product/Movie-Workbook-Harry-Potter-and-the-Philosophers-Stone-7148961",
          "price": "$2.80",
          "extracted_price": 2.8,
          "snippet": "2nd offer for $2.80 from Teachers Pay Teachers",
          "source_favicon": "https://encrypted-tbn2.gstatic.com/favicon-tbn?q=tbn:ANd9GcQ0DFB0pKlPuA6rm_qweL0boimet-L7N3RSv6vhf943ay4lrEwiiUZozs5ZwgUYA5DPWt5L73Nhr2ujSlvWvblCsAv6OdA1olqPLp8Vplfuh3yy9sn1e-itk0SDubL5TDY"
        },
        {
          "source": "Amazon UK",
          "link": "https://www.amazon.co.uk/Potter-Sorcerers-School-Original-Cinema/dp/B07MTNHVG9",
          "price": "£21.45",
          "extracted_price": 21.45,
          "snippet": "3rd offer for £21.45 from Amazon UK",
          "source_favicon": "https://encrypted-tbn2.gstatic.com/favicon-tbn?q=tbn:ANd9GcRRkAHkF-ovJK-YyofWXP8r650qPXhSfJe1wj_EzqcZySJLIxgSC4UVkcHRkizlOgPRz49y2WW1958P9lJLbVQsBHCAVmZqpXQaRn5ftHiccc5v5xLK"
        }
      ]
    }
  ],
  "visual_matches": [
    {
      "position": 1,
      "title": "Harry Potter and the Philosopher's Stone (film) - Wikipedia",
      "link": "https://en.wikipedia.org/wiki/Harry_Potter_and_the_Philosopher%27s_Stone_(film)",
      "source": "wikipedia.org",
      "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQlGK_saLYMho5a-_OOmXFpwnWOurrW35cpMzO904pc5kBqeItZ",
      "source_favicon": "https://encrypted-tbn2.gstatic.com/favicon-tbn?q=tbn:ANd9GcRLIcgPlYxOaoBg0MnSobLYyflrgF_RLdwAY09AXHWGy2jqWQnuIBNCY5I1BuzY7jeAJga0y0b9htBHe94i3Pg4B0NhHMNDVsmS-FVRKL014d-Xf6sX",
    },
    {
      "position": 2,
      "title": "All The Great Things The \"Harry Potter\" Movies Added And All The Things They Shouldn't Have",
      "link": "https://www.buzzfeed.com/connieesch/harry-potter-movies-better-than-the-books",
      "source": "buzzfeed.com",
      "thumbnail": "https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQDWvvl24bz3OnBBXkUmJlfp9ehrjnG6hjKXbiJbFC1_TWBriH_",
      "source_favicon": "https://encrypted-tbn2.gstatic.com/favicon-tbn?q=tbn:ANd9GcSIzkSkYzmeLj4SLOysqt8iRE0W7Hf_CKW5rv9ceso8ACgfx31Wqqzp2F8j6xlM7kwRLhnobsUlk7_rJ75SldEPzev0tAaVM9OsC3A-m0sysF9bi6Y5"
    },
    {
      "position": 3,
      "title": "Harry Potter And The Philosopher's Stone showtimes",
      "link": "https://we-love-cinema.com/movies/10098-harry-potter-and-the-philosopher-s-stone/",
      "source": "we-love-cinema.com",
      "thumbnail": "https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQrvlnQqLGLboKOBGNKBTYhBeMIRLSlcA5Voz7NWcBFJ5MjioT2",
      "source_favicon": "https://encrypted-tbn1.gstatic.com/favicon-tbn?q=tbn:ANd9GcRQZV6q84bsbbmJmmyxpMeGWKx72N5rIc5Z2OybCZKK6oCrU9pzVkY4kwUQWOhQRqB6Ny_MPZD2Lj9oCCm-gx3vnCrgC5A9X_Aso-cDmwj60mpdaCHjtFM"
    },
    {
      "position": 4,
      "title": "Karan Tejpal в X: „20 YEARS!!! #Harrypotter“ / X",
      "link": "https://mobile.twitter.com/karantejpal1/status/1392912701060419585?lang=bg",
      "source": "twitter.com",
      "thumbnail": "https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcR3mcI2koZTgAE-YyMlKSlj_Rqlmjk9e-0ItXCsovZNkJ5KtkiJ",
      "source_favicon": "https://encrypted-tbn0.gstatic.com/favicon-tbn?q=tbn:ANd9GcSK_FCXs-a7_An1SdgT7Fjqm3I9DQk6JXRbbbVXm9YgAu_7GyO4bNiZaZ9YeSsAzIGbhMgD6GqM8pMmREqoofV4HQ9xdN-_DChcoW3qkgBeVY7i1gCVE9I"
    },
    {
      "position": 5,
      "title": "Hedwig's Theme (Harry Potter) (Audio Assassin Remix) | John Williams | Audio Assassin",
      "link": "https://audioassassin.bandcamp.com/track/hedwigs-theme-harry-potter-audio-assassin-remix",
      "source": "bandcamp.com",
      "thumbnail": "https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcQSp0-Gq8uPYZ8VMGqJ0QR1i955LVDOpMhcd_YscUEyqIhLOC_d",
      "source_favicon": "https://encrypted-tbn1.gstatic.com/favicon-tbn?q=tbn:ANd9GcRFutD1qh_BfkXOUyhbhZ4L4WwPQsgGppECeLmbz2eCuahn9iSYK5VDiE0KePHIquljH4rPSB-C-_pVCNSSZo-dioMzqVI1EGzMcUL01DnE2WYOffZmXmc0TM2BB4bscA"
    },
    {
      "position": 6,
      "title": "4k0535 HARRY POTTER & THE PHILOSOPHER'S STONE 12x16 English special poster 2001 different! | eMoviePoster.com",
      "link": "https://auctions.emovieposter.com/item/6528159/",
      "source": "emovieposter.com",
      "thumbnail": "https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRWsQ79-Id3TTzpPTVXUz5i9P128Rx3NgMppPdekMA-pSa8BD_3",
      "source_favicon": "https://encrypted-tbn1.gstatic.com/favicon-tbn?q=tbn:ANd9GcTKyJQb_CPDlzkHFiv5moxxziB9zy_txPtpejZ5HChJR0R6DeHp2mNTlFuOgv1jf0QEbvy_Lk6_Otg16zT8UVMx8Dh1RmQPcB6sbuYMvublBgYfb_LtVAEApOX2C0lF"
    },
    {
      "position": 7,
      "title": "Harry Potter and The Sorcerer’s Stone | IST Elementary TwIST Times",
      "link": "https://isttwisttimes.wordpress.com/2013/03/11/harry-potter-and-the-sorcerers-stone/",
      "source": "wordpress.com",
      "thumbnail": "https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcTpochIs3E946dBskTAkqdh8A8QRBejV0sgxperFy-SEANVP-qH",
      "source_favicon": "https://encrypted-tbn1.gstatic.com/favicon-tbn?q=tbn:ANd9GcRTOCjX6R-QQOXX-ISFUXI6-s4T3FzJGQpxHGfVdHGmkZ0a2DUU5jQFoP_0qVmJYB-hXdBXqWarNvbLkLWtBpTF0S4f7vOF1jqjHvE6GtF65oA2z0B5RzyM5e5MQt4FoTI"
    },
    ...
  ],
  "text_results": [
    {
      "text": "Journey",
      "link": "https://www.google.com/search?q=Journey"
    },
    {
      "text": "beyond",
      "link": "https://www.google.com/search?q=beyond"
    },
    {
      "text": "your",
      "link": "https://www.google.com/search?q=your"
    },
    {
      "text": "imagination",
      "link": "https://www.google.com/search?q=imagination"
    },
    {
      "text": "Harry",
      "link": "https://www.google.com/search?q=Harry"
    },
    {
      "text": "Poter",
      "link": "https://www.google.com/search?q=Poter"
    }
  ]
}

Visual Matches

Visual Matches

Integration tips:

  • Google Lens returns larger images on mobile devices. Check image key.
  • Changing country parameter changes results and prefers that country currency.

GET
https://www.searchapi.io/api/v1/search?device=mobile&engine=google_lens&url=https%3A%2F%2Fi.ibb.co%2FDrdLBQf%2F1683889779-anaclui-75ed8c7f027b6d0e7aedeed7b1b3fd94-2.jpg
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "google_lens",
  "device": "mobile",
  "url": "https://i.ibb.co/DrdLBQf/1683889779-anaclui-75ed8c7f027b6d0e7aedeed7b1b3fd94-2.jpg"
}

response = requests.get(url, params = params)
print(response.text)
Response
{
  "visual_matches": [
    ...
    {
      "position": 2,
      "title": "Summer Classics Cuban Outdoor Sectional | The Alley Exchange",
      "link": "https://thealleyex.com/products/cuban-outdoor-sectional",
      "image": {
        "link": "https://thealleyex.com/cdn/shop/products/NMHC0WM_mz_300x.jpg?v=1678039438",
        "height": 276,
        "width": 300
      },
      "source": "The Alley Exchange",
      "price": "$6399.00*",
      "extracted_price": 6399,
      "currency": "USD",
      "exact_price": 6399,
      "stock_information": "In stock",
      "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQuH-GahcOVkPp82ftqnhx-tYSzeRPg3qGRqVrY4LwlPbGHDYbI",
      "source_favicon": "https://encrypted-tbn1.gstatic.com/favicon-tbn?q=tbn:ANd9GcRHFW8VdFvj7JR3clOomz3AYuvwHQ80n2DvO7UElUzftc0Bx-gNT3xOGCgKVry4aerKDCfj2q9SmFtBLlqMxLcJ1byP5AYeiYQPnT9nBkwZC6x9CA"
    },
    ...
    {
      "position": 9,
      "title": "3-seat modular sofa corner outdoor rattan wood 3D model",
      "link": "https://www.cgtrader.com/3d-models/furniture/sofa/3-seat-modular-sofa-corner-outdoor-rattan-wood-f13eb862-8cd9-4d2d-afc2-983629e3f888",
      "source": "CGTrader",
      "rating": 4.9,
      "reviews": 34,
      "price": "$15.00*",
      "extracted_price": 15,
      "currency": "USD",
      "exact_price": 14.99,
      "stock_information": "In stock",
      "thumbnail": "https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcQHNZ5lGEo__4SvF7UgtritLIosaKqiTY6VOMkFi9STMuMzNcpd",
      "source_favicon": "https://encrypted-tbn0.gstatic.com/favicon-tbn?q=tbn:ANd9GcTIOZULgCm7Qo24yOu1i73dlSi7QwRbI9U26m6M-MsQlowOeusYBKspJg_IKJuZvMcTOx0S3IC8dZ3Ra50Zb33KSGenAEKekyVxW1cpWuvH9MO7vRlC"
    },
    ...
    {
      "position": 46,
      "title": "Modway Clearwater Sectional, 5-Piece Set, Gray White",
      "link": "https://www.amazon.com/Modway-Clearwater-Sectional-Gray-White/dp/B0BSVHCHGV",
      "source": "Amazon.com",
      "price": "$1840.49*",
      "extracted_price": 1840.49,
      "currency": "USD",
      "exact_price": 1840.49,
      "stock_information": "In stock",
      "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRTH7oJ3CXMOVEvPQAQ7NCd5Up_PsZ5PQd409k-v4aVVI1nuVEw",
      "source_favicon": "https://encrypted-tbn1.gstatic.com/favicon-tbn?q=tbn:ANd9GcRm4oMDPHDSWBDQhB5-csYIdmVde_ZfnfUYnfzlJJ9w7zjXG34H4SL9TXI2H8XWInsqPagyhBQjtImrHgLv9Bwvw_d2JvfjMfz3ox9yR82MKQ7yrQ"
    },
    ...
  ]
}

Videos

Videos
GET
https://www.searchapi.io/api/v1/search?engine=google_lens&url=https%3A%2F%2Fstore.storeimages.cdn-apple.com%2F4982%2Fas-images.apple.com%2Fis%2Fiphone-15-pro-finish-select-202309-6-1inch-bluetitanium%3Fwid%3D2560%26hei%3D1440%26fmt%3Dp-jpg%26qlt%3D80%26.v%3D1692846360609
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "google_lens",
  "url": "https://store.storeimages.cdn-apple.com/4982/as-images.apple.com/is/iphone-15-pro-finish-select-202309-6-1inch-bluetitanium?wid=2560&hei=1440&fmt=p-jpg&qlt=80&.v=1692846360609"
}

response = requests.get(url, params = params)
print(response.text)
Response
{
  "videos": [
    {
      "position": 1,
      "title": "#iphone15promax  🛒Order Now: https://s.lazada.com.ph/s.R1DUb?cc Price: Php 96,990 The Apple iPhone 15 Pro Max: Push the boundaries of what's possible with the most advanced smartphone on the market. #Apple #iPhone15ProMax #smartphone #flagshipsmartphone #bestsmartphone #newsmartphone #latestsmartphone #Lazada #LazadaPhilippines #Philippines #tech #gadgets #mobile #SuchNSuch",
      "link": "https://www.tiktok.com/@snslazada/video/7298888979036802310",
      "source": "tiktok.com",
      "channel": "Such N' Such",
      "length": "0:26",
      "thumbnail": "https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcTg634-CxAI_DpcGRb5Ptbt9hdIFZCeM_A3FQvTCgXn5aob5g9r",
      "source_favicon": "https://encrypted-tbn3.gstatic.com/favicon-tbn?q=tbn:ANd9GcTiWsZg_7Q-8bAQYHlD9VtdBO8GLzYtDmFFmMRclrXQhRI17hRJ77T_Rc7VFiml61ZZKCAxlqLWhaBMeobWN_zExBK3t3LPjYWjTlpJS_fXur2RjQ"
    },
    {
      "position": 2,
      "title": "The NEW iPhone 15 Pro has RAY TRACING! #iphone #raytracing #mobilegaming",
      "link": "https://www.youtube.com/watch?v=7n_kfsnnL9M",
      "source": "youtube.com",
      "channel": "Ech0Ven0mYT",
      "length": "0:30",
      "thumbnail": "https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcQblYh9pTnpreQxE0IW7QZa9Kjoj31WnoefbdNNCWtQuzyKlPRk",
      "source_favicon": "https://encrypted-tbn0.gstatic.com/favicon-tbn?q=tbn:ANd9GcQHQslzHLLyLc_qne5jxn7JocidlmUPyegZ8ojX3WVlorFk8BxW9a3vJWjDzN99UHVTqSaNBj_-6XykhxuVQfF3Ye7xScSWSuc2QHXi0a12CkVwBmo"
    },
    {
      "position": 3,
      "title": "This is the iPhone 15 Pro...",
      "link": "https://www.youtube.com/watch?v=FF2HN9glnS0",
      "source": "youtube.com",
      "channel": "Nico",
      "length": "0:20",
      "thumbnail": "https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRMfj5OOpHN1Y0IAgrkb7Y5oZkGl8PwBdap2r_oiZuAB5zUbB37",
      "source_favicon": "https://encrypted-tbn0.gstatic.com/favicon-tbn?q=tbn:ANd9GcQHQslzHLLyLc_qne5jxn7JocidlmUPyegZ8ojX3WVlorFk8BxW9a3vJWjDzN99UHVTqSaNBj_-6XykhxuVQfF3Ye7xScSWSuc2QHXi0a12CkVwBmo"
    },
    ...
  ]
}

Exact Matches

Exact Matches
GET
https://www.searchapi.io/api/v1/search?engine=google_lens&url=https%3A%2F%2Fmobilemall.co%2Fblog%2Fwp-content%2Fuploads%2F2023%2F04%2FApple-MacBook-2023-Release-Date-15-inch-MacBook-Air-1-696x557.jpg
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "google_lens",
  "url": "https://mobilemall.co/blog/wp-content/uploads/2023/04/Apple-MacBook-2023-Release-Date-15-inch-MacBook-Air-1-696x557.jpg"
}

response = requests.get(url, params = params)
print(response.text)
Response
{
  "exact_matches": [
    {
      "position": 1,
      "title": "M3 Silicon-based MacBooks To Arrive Sooner Than You Think; Report | Beebom",
      "link": "https://tech.hindustantimes.com/laptops-pc/news/some-m1-mac-users-face-excessive-ssd-usage-affecting-its-lifespan-71614158995662.html",
      "source": "hindustriantimes.com",
      "thumbnail": "https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcSn7FiZI67b9mxXPi5on9iIbjAQvQTbETVjw-Z-Ktln6j68iS56"
    },
    {
      "position": 2,
      "title": "Apple to launch two mini LED MacBook Pros in 2021: Kuo | Laptops-pc News",
      "link": "https://tech.hindustantimes.com/laptops-pc/news/apple-to-launch-two-mini-led-macbook-pros-in-2021-kuo-71606966383230.html",
      "source": "hindustriantimes.com",
      "thumbnail": "https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcSjbsQAOXk6wK63ZNGHwo0xjy-hvQ0HI7RQgsR0zsdlkeRiLQf7"
    },
    {
      "position": 3,
      "title": "Is Apple Working On A MacBook Lite? Here Is Everything We Know",
      "link": "https://malaysia.news.yahoo.com/apple-working-macbook-lite-everything-120148548.html",
      "source": "yahoo.com",
      "thumbnail": "https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRssewKQKVCOXdbeJDV4Xf506hKKay3lHnrnz77YNOcguD6fmoK"
    },
    ...
  ]
}

Text Results

Text Results
GET
https://www.searchapi.io/api/v1/search?engine=google_lens&url=https%3A%2F%2Fmiro.medium.com%2Fv2%2Fresize%3Afit%3A1024%2F1%2AOohqW5DGh9CQS4hLY5FXzA.png
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "google_lens",
  "url": "https://miro.medium.com/v2/resize:fit:1024/1*OohqW5DGh9CQS4hLY5FXzA.png"
}

response = requests.get(url, params = params)
print(response.text)
Response
{
  ...
  "text_results": [
    {
      "text": ">",
      "link": "https://www.google.com/search?q=>"
    },
    {
      "text": "Hello",
      "link": "https://www.google.com/search?q=Hello"
    },
    {
      "text": ",",
      "link": "https://www.google.com/search?q=,"
    },
    {
      "text": "world",
      "link": "https://www.google.com/search?q=world"
    },
    {
      "text": "!",
      "link": "https://www.google.com/search?q=!"
    },
    {
      "text": "_",
      "link": "https://www.google.com/search?q=_"
    }
  ]
}

Knowledge Graphs

Knowledge Graphs
GET
https://www.searchapi.io/api/v1/search?engine=google_lens&url=https%3A%2F%2Fi.ibb.co%2F12qRDsk%2Ftower.png
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "google_lens",
  "url": "https://i.ibb.co/12qRDsk/tower.png"
}

response = requests.get(url, params = params)
print(response.text)
Response
{
  "knowledge_graphs": [
    {
      "title": "Eiffel Tower",
      "subtitle": "Historical landmark",
      "link": "https://www.google.com/search?q=Eiffel+Tower&kgmid=/m/02j81&hl=en&gl=US",
      "rating": 4.6,
      "images": [
        {
          "title": "Image #1 for Eiffel Tower",
          "source": {
            "link": "https://www.google.com/search?q=Eiffel+Tower&kgmid=/m/02j81&hl=en&gl=US"
          },
          "thumbnail": "https://lh5.googleusercontent.com/p/AF1QipOSojyYuemoPo1TwH7J6mFC35Y89oKXMHgLIK7-=w360-h240-n-k-no"
        },
        ...
      ],
      "more_images": {
        "link": "https://www.google.com/maps/uv?pb=!1s0x47e66e2964e34e2d:0x8ddca9ee380ef7e0!3m1!7e164&hl=en&viewerState=ga"
      }
    },
    ...
  ],
  ...
}
Related Searches
GET
https://www.searchapi.io/api/v1/search?engine=google_lens&url=https%3A%2F%2Fpbs.twimg.com%2Fprofile_images%2F1634058036934500352%2Fb4F1eVpJ_400x400.jpg
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "google_lens",
  "url": "https://pbs.twimg.com/profile_images/1634058036934500352/b4F1eVpJ_400x400.jpg"
}

response = requests.get(url, params = params)
print(response.text)
Response
{
  "related_searches": [
    {
      "title": "OpenAI",
      "link": "https://www.google.com/search?q=OpenAI&kgmid=/g/11bxc656v6&hl=en&gl=US",
      "thumbnail": "https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcT9UQs1nRVeAvYaNL4v24NrxT5bdnIWfN5-oP2SI-du7f6Oyxcg"
    }
  ]
}