Google Lens avatar

Google Lens

Try for free

3 days trial then $34.99/month - No credit card required now

Go to Store
Google Lens

Google Lens

borderline/google-lens
Try for free

3 days trial then $34.99/month - No credit card required now

The ultimate Lens API ๐ŸŒŸ Seamlessly identify text, translate in real time ๐ŸŒ, recognize and classify objects ๐ŸŽ, reverse search images ๐Ÿ”, and extract detailed structured data ๐Ÿ“š. Itโ€™s fast, reliable, and affordableโ€”your essential tool for all visual intelligence needs! ๐Ÿš€ [BETA]

๐Ÿ“ธ Google Lens Actor | [BETA]

Welcome to the Google Lens Actor! This unofficial Google Lens API empowers you to analyze images programmatically, just like Google Lens does, but with added flexibility. Whether you're identifying text, recognizing objects, or performing reverse image searches, this Actor has got you covered! Feel free to open issues to suggest new features or report bugs!


โœจ What Does the Google Lens Actor Do?

This Actor allows you to process images in four powerful ways, delivering programmatic access to:

  • ๐Ÿ” OCR and Text Recognition: Extract and translate text from images with accuracy.
  • ๐Ÿ–ผ๏ธ Reverse Image Search: Discover similar images and their sources.
  • ๐ŸŽ Object Recognition: Identify objects and classify images.
  • ๐Ÿ“š Data Extraction: Transform visual content into structured data formats.

๐Ÿ’ก Why Use the Google Lens Actor?

  • ๐Ÿง  Bootstrap AI Training: Build robust AI models with curated datasets.
  • ๐Ÿ›๏ธ Find Similar Products: Enhance shopping experiences with visual matches.
  • ๐ŸŽจ Support Creative Work: Streamline graphic and web design workflows.
  • ๐Ÿ”ฆ Detect Web Content: Discover hidden or related content online.

๐Ÿ› ๏ธ How to Use the Google Lens Actor

Step 1: Prepare Your Input

Provide the Actor with one or more image URLs. These images can come from blogs, social media, e-commerce sites, or anywhere on the web.

Input Example:

1{
2    "type": "translate", // OR "search" | "findImageSource" | "ocr"
3    "imageUrls": [
4        { "url": "https://example.com/image1.jpg" },
5        { "url": "https://example.com/image2.png" }
6    ],
7    "translateTo": "en" // USE ONLY FOR "translate" type
8}
FieldTypeDescription
typestringMode of operation: translate, findImageSource, search, or ocr.
imageUrlsarrayA list of image URLs to process.
translateTostring (optional)Target language for translation (for translate type only (IN DEV ATM)).

Step 2: Review the Output

After processing, the Actor generates structured data that can be downloaded in various formats, such as JSON, CSV, Excel, or HTML.


๐ŸŽฏ Output Examples

1. ๐ŸŒ Translate

Translate text extracted from images into your desired language.

Output Example:

1{
2    "textInfo": {
3    "text": [
4      [
5        [
6          "โ€œ",
7          [
8            0.19345662,
9            0.2595245,
10            0.04644809,
11            0.122262776,
12            0,
13            0.04798889
14          ],
15          null,
16          "",
17          0
18        ],
19        [
20          "MAKE",
21          [
22            0.1935277,
23            0.3278305,
24            0.17349727,
25            0.122262776,
26            0,
27            0.04798889
28          ],
29          null,
30          " ",
31          0
32        ],
33        [
34          "TEXT",
35          [
36            0.19351394,
37            0.5218196,
38            0.14890711,
39            0.122262776,
40            0,
41            0.04798889
42          ],
43          null,
44          null,
45          0
46        ]
47      ],
48      [
49        [
50          "STAND",
51          [
52            0.42336527,
53            0.23770282,
54            0.18852459,
55            0.093065694,
56            0,
57            0.0034637451
58          ],
59          null,
60          " ",
61          0
62        ],
63        [
64          "OUT",
65          [
66            0.42336228,
67            0.45491594,
68            0.114754096,
69            0.093065694,
70            0,
71            0.0034637451
72          ],
73          null,
74          " ",
75          0
76        ],
77        [
78          "FROM",
79          [
80            0.4233643,
81            0.5942602,
82            0.16530055,
83            0.093065694,
84            0,
85            0.0034637451
86          ],
87          null,
88          null,
89          0
90        ]
91      ],
92      [
93        [
94          "BACKGROUNDS",
95          [
96            0.62405854,
97            0.278692,
98            0.44535518,
99            0.09489051,
100            0,
101            -0.0055999756
102          ],
103          null,
104          "",
105          0
106        ],
107        [
108          "\"",
109          [
110            0.6240843,
111            0.7500034,
112            0.05054645,
113            0.093065694,
114            0,
115            -0.0055999756
116          ],
117          null,
118          null,
119          0
120        ]
121      ]
122    ],
123    "translation": {},
124    "boundingBox": [
125      0.51906073,
126      0.4563284,
127      0.56284153,
128      0.52554744,
129      0.0003300196
130    ]
131  },
132    "fullTranslatedText": `"MAKE TEXT STAND OUT FROM BACKGROUNDS"` // USE ONLY FOR type: "translate"

2. ๐Ÿ” Find Image Source

Find the source of an image, including its hosting site and thumbnails.

Output Example:

1{
2        "title": "The Power of Giving: Raising Generous Kids - Selah Home",
3        "site": {
4            "name": "aselahhome.com",
5            "favicon": [
6                "https://encrypted-tbn0.gstatic.com/favicon-tbn?q=tbn:ANd9GcRYJ_aMUCZdBu7vW8jSzk57cUDU_mxz_Ez4iKw5sLNYcXOic6KlEMEnqzZQODLO_cS82RCF1irDU5MPr_uaFOAQNbQNUf43ukwDSAcT26st3gcUlg"
7            ],
8            "url": "https://aselahhome.com/the-power-of-giving-raising-generous-kids/"
9        },
10        "thumbnail": {
11            "url": "https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRnwAEqKNTA9OBnhxGWeyPVkoXUT11TOWh3ySf8pqK2yd6eH3Bf",
12            "width": 1024,
13            "height": 768
14        }
15    },
16    {
17        "title": "Muguet de Mai - A French Tradition - Renestance",
18        "site": {
19            "name": "Renestance",
20            "favicon": [
21                "https://encrypted-tbn0.gstatic.com/favicon-tbn?q=tbn:ANd9GcTz8E-EUG55uY8K04JyHy2ZIBtIxHUCE17zNPUZOC-oKeP7jhFLQjGJYFDPjMh1weyWJYHGcJx3EzPNcenNOZjzSCCZcsbQcoHAmC5nzbIWt4HvLZH4ImY"
22            ],
23            "url": "https://www.renestance.com/blog/muguet-de-mai-a-french-tradition/"
24        },
25        "thumbnail": {
26            "url": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSuOm9d1E1X7e2Jp5Rt27KbNjuNUmpDYstBhC8hDgQTi1N3Dslg",
27            "width": 1200,
28            "height": 800
29        }
30    }

Perform visual searches to discover similar images and their metadata.

Output Example:

1{
2    "images": [
3        {
4            "title": "The Power of Giving: Raising Generous Kids - Selah Home",
5            "description": "The Power of Giving: Raising Generous Kids - Selah Home from aselahhome.com",
6            "url": "https://www.google.com/imgres?h=150&w=150&tbnh=150&tbnw=150&osm=1&hcb=1&source=lens-native&usg=AI4_-kQ_p5tP8YUE4oOZxgeGc27_T_CHtA&imgurl=https://aselahhome.com/wp-content/uploads/2023/08/power-of-giving-pin-150x150.jpg&imgrefurl=https://aselahhome.com/the-power-of-giving-raising-generous-kids/&tbnid=W4zxaDXEn6kAiM&docid=JHXrr30YihM40M",
7            "source": {
8                "additionalInfo": "aselahhome.com",
9                "title": "aselahhome.com",
10                "link": "https://aselahhome.com/the-power-of-giving-raising-generous-kids/",
11                "favicon": [
12                    "https://encrypted-tbn0.gstatic.com/favicon-tbn?q=tbn:ANd9GcRYJ_aMUCZdBu7vW8jSzk57cUDU_mxz_Ez4iKw5sLNYcXOic6KlEMEnqzZQODLO_cS82RCF1irDU5MPr_uaFOAQNbQNUf43ukwDSAcT26st3gcUlg"
13                ]
14            },
15            "thumbnail": {
16                "url": "https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcSBqu1aVyKopxUN-AhfWOsWyl4G30kZ9ri4eRt_BCzkpJkcmFS5",
17                "width": 150,
18                "height": 150
19            }
20        },
21        {
22            "title": "How To Grow Lily Of The Valley - Farmhouse & Blooms",
23            "description": "How To Grow Lily Of The Valley - Farmhouse & Blooms from farmhouseandblooms.com",
24            "url": "https://www.google.com/imgres?h=682&w=1024&tbnh=183&tbnw=275&osm=1&hcb=1&source=lens-native&usg=AI4_-kQOrHriS-TVCiMdtZRLRU1bNkRWvg&imgurl=https://farmhouseandblooms.com/wp-content/uploads/2022/04/Lily-of-the-Valley-is-a-beautiful-simple-sweet-smelling-flower.jpg&imgrefurl=https://farmhouseandblooms.com/how-to-grow-lily-of-the-valley/&tbnid=h981Ux-z33JyTM&docid=QvVJZnG12PCi1M",
25            "source": {
26                "additionalInfo": "farmhouseandblooms.com",
27                "title": "farmhouseandblooms.com",
28                "link": "https://farmhouseandblooms.com/how-to-grow-lily-of-the-valley/",
29                "favicon": [
30                    "https://encrypted-tbn3.gstatic.com/favicon-tbn?q=tbn:ANd9GcQ4JqcnWBiGgmSPDL6pgTk0MGZKM7yKtZfwKAK_cIKduM9KZh0DS8e2j3bykZwjlPj3SdrTyvHdxf6l2LiIlgP093DDOOkwjR5ZW16rLJXIja7w486P5tQWhVd_"
31                ]
32            },
33            "thumbnail": {
34                "url": "https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRCEMFuw0GYdz6T706cbzF4tsjLVZpRtcRivYwjbCNMbsJ1UORr",
35                "width": 275,
36                "height": 183
37            }
38        }
39    ]
40}

4. ๐Ÿ“– OCR

Extract text segments and confidence scores from images.

Output Example:

1{
2    "language": "en",
3    "segments": [
4        {
5            "text": "APIFY",
6            "textParts": [
7                [
8                    {
9                        "text": "APIFY",
10                        "position": {
11                            "imageDimensions": [152, 40],
12                            "centerPerX": 0.19988483,
13                            "centerPerY": 0.30921698,
14                            "perWidth": 0.7105263,
15                            "perHeight": 0.575,
16                            "pixelCoords": {
17                                "x": -24,
18                                "y": 1,
19                                "width": 108,
20                                "height": 23
21                            }
22                        }
23                    }
24                ]
25            ],
26            "boundingBox": {
27                "imageDimensions": [152, 40],
28                "centerPerX": 0.6644801,
29                "centerPerY": 0.4873848,
30                "perWidth": 0.7105263,
31                "perHeight": 0.575,
32                "pixelCoords": {
33                    "x": 47,
34                    "y": 8,
35                    "width": 108,
36                    "height": 23
37                }
38            }
39        }
40    ]
41}

๐Ÿ”ฆ Real-World Use Cases

  • ๐Ÿ“Š Data Analysis: Extract data for research and reporting.
  • ๐ŸŽจ Creative Inspiration: Use visual matches to fuel your designs.
  • ๐Ÿ›๏ธ E-commerce: Identify and find similar products.
  • ๐Ÿง  AI Training: Build robust datasets for machine learning models.

๐Ÿ Ready to Start?

  1. Create a free Apify account.
  2. Open the Google Lens Actor.
  3. Add image URLs and specify the operation type (translate, findImageSource, search, ocr).
  4. Click "Start" to process your images.
  5. Download the results in your preferred format from the Storage tab.

For additional guidance, refer to the step-by-step tutorial ๐Ÿ”— or contact support for assistance. Happy scraping! ๐Ÿš€

Developer
Maintained by Community

Actor Metrics

  • 1 monthly user

  • 1 star

  • Created in Jan 2025

  • Modified 7 hours ago