Google Lens Products API

Our Google Lens Products API allows you to scrape results from the Products section. The results contain title, link, source, rating, reviews, price, in_stock, and other data.

API Parameters

Search Type

type

Required

Parameter defines the type of search to perform. By default, the search type is all.

Available options:
all - All
products - Products
exact_matches - Exact Matches
visual_matches - Visual Matches.

API Examples

Example with Hershey's Chocolatetype: products

Example with Hershey's Chocolate, type: products

JSON Example

{
  ...
  "visual_matches": [
    {
      "position": 1,
      "title": "Hershey's Cookies n Creme Chocolate Bar, 40g (Pack Of 8) - Walmart.com",
      "link": "https://www.walmart.com/ip/Hershey-s-Cookies-n-Creme-Chocolate-Bar-40g-Pack-Of-8/6706455482",
      "source": "Walmart",
      "source_icon": "https://serpapi.com/searches/67bf22fdc3393658bf38c7ba/images/86b91846026feb68d9ef4e693eb65d91799e94f25958adce7ebacfe766d28878.png",
      "price": {
        "value": "$34*",
        "extracted_value": 34.0,
        "currency": "$"
      },
      "in_stock": true,
      "thumbnail": "https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcQy7mF3nQQiZafFX38ND1jafGT-MxVE3bzegTo7yJPdErfi8ZTC",
      "thumbnail_width": 225,
      "thumbnail_height": 225,
      "image": "https://i5.walmartimages.com/seo/Hershey-s-Cookies-n-Creme-Chocolate-Bar-40g-Pack-Of-8_5d96fd3e-4ae8-4c21-ae6c-52e4bce95566.7404025dd04321f5cdec381fd20ed2d9.jpeg",
      "image_width": 1500,
      "image_height": 1500
    },
    {
      "position": 2,
      "title": "HERSHEY'S 2 Whole Almonds, 2 Cookies 'N' Creme And 2 Milk Bar 40G-Pack Of 6,240 Grams : Amazon.in: Grocery & Gourmet Foods",
      "link": "https://www.amazon.in/HERSHEYS-Whole-Almonds-Cookies-40G-Pack/dp/B0834SY88H",
      "source": "Amazon.in",
      "source_icon": "https://serpapi.com/searches/67bf22fdc3393658bf38c7ba/images/86b91846026feb688b300e3a63a6d3ecebe36e6b2741a864adb958124a165acf.png",
      "rating": 4.7,
      "reviews": 20714,
      "price": {
        "value": "₹361*",
        "extracted_value": 361.0,
        "currency": "₹"
      },
      "in_stock": true,
      "thumbnail": "https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcSls69S-KeGyPuvyDcVImfRi96J8xGkQkOuCBNgzTYzojtsa_gT",
      "thumbnail_width": 150,
      "thumbnail_height": 337,
      "image": "https://m.media-amazon.com/images/I/410daiwWNBL._AC_UF1000,1000_QL80_.jpg",
      "image_width": 445,
      "image_height": 1000
    },
    {
      "position": 3,
      "title": "Hershey's Cookies 'N' Creme Candy Bar – Missionties",
      "link": "https://mymissionties.com/product/hersheys-cookies-n-creme-candy-bar/",
      "source": "Missionties",
      "source_icon": "https://serpapi.com/searches/67bf22fdc3393658bf38c7ba/images/86b91846026feb687313c8f635fb2900641e0a3b2390c7e556934b970f88b27d.png",
      "price": {
        "value": "$4*",
        "extracted_value": 4.0,
        "currency": "$"
      },
      "in_stock": true,
      "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTJzPyO7P-xRNm6BIv6AHcJf0qUXsYpYrqlU6TX69bHCvZdTysF",
      "thumbnail_width": 195,
      "thumbnail_height": 259,
      "image": "https://mymissionties.com/wp-content/uploads/2022/11/Hersheys-cookies-n-creme.jpg",
      "image_width": 393,
      "image_height": 522
    },
    ...
  ]
}

JSON structure overview

{
  ...
  "visual_matches": [
    {
      "position": "Integer - Position of the image",
      "title": "String - Title of the image",
      "link": "String - Source URL of the website containing the image",
      "source": "String - Displayed URL of the website containing the image",
      "source_icon": "String - Icon URL of the source website containing the image",
      "rating": "Float - Rating of the item in the image",
      "reviews": "Integer - Number of reviews of the item in the image",
      "price": {
        "value": "String - Price of the item in the image",
        "extracted_value": "Float - Extracted price of the item in the image",
        "currency": "String - Price currency of the item in the image"
      },
      "in_stock": "Boolean - Availability of the item in the image",
      "condition": "String - Condition of the item in the image",
      "thumbnail": "String - URL to the image thumbnail",
      "thumbnail_width": "Integer - width of the image thumbnail",
      "thumbnail_height": "Integer - height of the image thumbnail",
      "image": "String - URL to the full image",
      "image_width": "Integer - width of the full image",
      "image_height": "Integer - height of the full image",
    },
    ...
  ],
  "related_content": [
    {
      "query": "String - Related image query",
      "link": "String - URL to the Google search",
      "thumbnail": "String - URL to the image thumbnail",
      "serpapi_link": "String - URL to the SerpApi search"
    },
    ...
  ]
}