Google Reverse Image Search API  ✅ Free avatar
Google Reverse Image Search API ✅ Free
Try for free

No credit card required

View all Actors
Google Reverse Image Search API  ✅ Free

Google Reverse Image Search API ✅ Free

curious_coder/google-lens-scraper
Try for free

No credit card required

Features: ▶ API to search by image on Google ▶ Search and scrape similar images and source websites ▶ Extract text from given image using google lens

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "urls": [
11        "https://imageio.forbes.com/specials-images/imageserve/62d700cd6094d2c180f269b9/0x0.jpg?format=jpg&crop=959,959,x0,y0,safe&height=416&width=416&fit=bounds",
12        "https://upload.wikimedia.org/wikipedia/commons/1/18/Mark_Zuckerberg_F8_2019_Keynote_%2832830578717%29_%28cropped%29.jpg"
13    ],
14    "searchType": "findImageSources",
15    "proxy": {
16        "useApifyProxy": true,
17        "apifyProxyGroups": [
18            "RESIDENTIAL"
19        ],
20        "apifyProxyCountry": "US"
21    }
22};
23
24(async () => {
25    // Run the Actor and wait for it to finish
26    const run = await client.actor("curious_coder/google-lens-scraper").call(input);
27
28    // Fetch and print Actor results from the run's dataset (if any)
29    console.log('Results from dataset');
30    console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
31    const { items } = await client.dataset(run.defaultDatasetId).listItems();
32    items.forEach((item) => {
33        console.dir(item);
34    });
35})();
36
37// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Developer
Maintained by Community
Actor metrics
  • 18 monthly users
  • 1 star
  • 96.8% runs succeeded
  • 0.8 hours response time
  • Created in Sep 2023
  • Modified 3 days ago