ABCProxy Docs
English
English
  • Overview
  • PROXIES
    • Residential Proxies
      • Introduce
      • Dashboard to Get IP to Use
      • Getting started guide
      • Account security authentication
      • API extraction
      • Basic query
      • Select the country/region
      • Select State
      • Select city
      • Session retention
    • Socks5 Proxies
      • Getting Started
      • Proxy Manager to Get IP to Use
    • Unlimited Residential Proxies
      • Getting started guide
      • Account security authentication
      • API extraction
    • Static Residential Proxies
      • Getting started guide
      • API extraction
      • Account security authentication
    • ISP Proxies
      • Getting started guide
      • Account security authentication
    • Dedicated Datacenter Proxies
      • Getting started guide
      • API extraction
      • Account security authentication
  • Advanced proxy solutions
    • Web Unblocker
      • Get started
      • Making Requests
        • JavaScript rendering
        • Geo-location
        • Session
        • Header
        • Cookie
        • Blocking Resource Loading
    • APM-ABC Proxy Manger
      • How to use
  • SERP API
    • Get started
    • Google
      • Google Search API
      • Google Shopping API
      • Google Local API
      • Google Videos API
      • Google News API
      • Google Flights API
      • Google Product API
      • Google Images API
      • Google Lens Search API
      • Google Play Product API
      • Google Play Game Store API
      • Google Play Book Store API
      • Google Play Movies Store API
      • Google Jobs API
      • Google Scholar Author API
      • Google Scholar API
      • Google Scholar Cite API
      • Google Scholar Profiles API
    • Bing
      • Bing Search API
      • Bing News API
      • Bing Shopping API
      • Bing Images API
      • Bing Videos API
      • Bing Maps API
    • Yahoo
      • Yahoo! Search API
      • Yahoo! Shopping API
      • Yahoo! Images API
      • Yahoo! Videos API
    • DuckDuckGo
      • DuckDuckGo Search API
      • DuckDuckGo News API
      • DuckDuckGo Maps API
    • Ebay
      • Ebay Search API
    • Walmart
      • Walmart Search API
      • Walmart Product Reviews API
      • Walmart Product API
    • Yelp
      • Yelp Reviews API
    • Youtube
      • YouTube Search API
      • YouTube Video API
      • YouTube Video Batch Download API
        • YouTube Batch Download Task Information API
        • YouTube Single Download Job Information API
  • Parametric
    • Google Ads Transparency Center Regions
    • Google GL Parameter: Supported Google Countries
    • Google HL Parameter: Supported Google Languages
    • Google Lens Country Parameter: Supported Google Lens Countries
    • Google Local Services Job Types
    • Google Trends Categories
    • Supported DuckDuckGo Regions
    • Supported Ebay Domains
    • Supported Ebay location options
    • Google Trends Locations
    • Supported Ebay sort options
    • Supported Google Countries via cr parameter
    • Supported Google Domains
    • Supported Google Languages via lr parameter
    • Supported Google Play Apps Categories
    • Supported Google Patents country codes
    • Supported Google Play Games Categories
    • Supported Google Play Books Categories
    • Supported Google Play Movies Categories
    • Supported Google Scholar Courts
    • Supported Yahoo! Countries
    • Supported Yahoo! Domains
    • Supported Yahoo! File formats
    • Supported Yahoo! Languages
    • Supported Yandex Domains
    • Supported Yandex Languages
    • Supported Yelp Domains
    • Supported Yandex Locations
    • Supported Yelp Reviews Languages
    • Walmart Stores Locations
    • Supported Google Travel currency codes
    • Supported Locations API
  • HELP
    • FAQ
      • ABCProxy Software Can Not Log In?
      • Software Tip:“please start the proxy first”
    • Refund Policy
    • Contact Us
  • INTEGRATION AND USAGE
    • Browser Integration Tools
      • Proxy Switchy Omega
      • BP Proxy Switcher
      • Brave Browser
    • Anti-Detection Browser Integration
      • AdsPower
      • BitBrowser
      • Dolphin{anty}
      • Undetectable
      • Incogniton
      • Kameleo
      • Morelogin
      • ClonBrowser
      • Hidemium
      • Helium Scraper
      • VMlogin
      • ixBrower
      • Xlogin
      • Antbrowser
      • Lauth
      • Indigo
      • IDENTORY
      • Gologin
      • MuLogin
    • Use of Enterprise Plan
      • How to use the Enterprise Plan CDKEY?
Powered by GitBook
On this page
  • Google Lens Search API
  • Api Details
  • Response
  • Error Responses
  1. SERP API
  2. Google

Google Lens Search API

Google Lens Search API

Our Google Lens API allows you to scrape results from the Google Lens page when performing an image search. The results related to the image could contain visual matches and other data.

The API is accessed through the following endpoint: /search?engine=google_lens

Api Details

Endpoint GET https://serpapi.abcproxy.com/search

Description Retrieve comprehensive user profile including basic info, account status and optional permission sets.


Request

HTTP Request

curl -X GET "https://serpapi.abcproxy.com/search" \
  -d "engine=google_lens" \
  -d "url=https://i.imgur.com/HBrB8p0.png" \
  -d "no_cache=false" \
  -d "api_key=YOUR_API_KEY"
import requests

params = {
    "engine": "google_lens",
    "url": "https://i.imgur.com/HBrB8p0.png",
    "no_cache": "false",
    "api_key": "YOUR_API_KEY"
}
response = requests.get("https://serpapi.abcproxy.com/search", params=params)
print(response.json())
const axios = require('axios');

const params = {
  engine: "google_lens",
  url: "https://i.imgur.com/HBrB8p0.png",
  no_cache: "false",
  api_key: "YOUR_API_KEY"
};

axios.get("https://serpapi.abcproxy.com/search", { params })
  .then(response => console.log(response.data));
GET /search?engine=google_lens&url=https://i.imgur.com/HBrB8p0.png&no_cache=false&api_key=YOUR_API_KEY HTTP/1.1
Host: serpapi.abcproxy.com
<?php
$client = new \GuzzleHttp\Client();
$response = $client->get('https://serpapi.abcproxy.com/search', [
    'query' => [
        'engine' => 'google_lens',
        'url' => 'https://i.imgur.com/HBrB8p0.png',
        'no_cache' => 'false',
        'api_key' => 'YOUR_API_KEY'
    ]
]);
echo $response->getBody();
package main

import (
    "net/http"
    "io/ioutil"
    "log"
)

func main() {
    client := &http.Client{}
    req, _ := http.NewRequest("GET", "https://serpapi.abcproxy.com/search", nil)
    
    q := req.URL.Query()
    q.Add("engine", "google_lens")
    q.Add("url", "https://i.imgur.com/HBrB8p0.png")
    q.Add("no_cache", "false")
    q.Add("api_key", "YOUR_API_KEY")
    req.URL.RawQuery = q.Encode()

    resp, _ := client.Do(req)
    body, _ := ioutil.ReadAll(resp.Body)
    log.Println(string(body))
}
using System;
using System.Net.Http;

class Program
{
    static async Task Main()
    {
        var client = new HttpClient();
        var query = System.Web.HttpUtility.ParseQueryString(string.Empty);
        query["engine"] = "google_lens";
        query["url"] = "https://i.imgur.com/HBrB8p0.png";
        query["no_cache"] = "false";
        query["api_key"] = "YOUR_API_KEY";
        
        var response = await client.GetAsync(
            $"https://serpapi.abcproxy.com/search?{query}"
        );
        Console.WriteLine(await response.Content.ReadAsStringAsync());
    }
}
import java.net.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        String url = "https://serpapi.abcproxy.com/search" +
            "?engine=google_lens" +
            "&url=https://i.imgur.com/HBrB8p0.png" +
            "&no_cache=false" +
            "&api_key=YOUR_API_KEY";
        
        HttpURLConnection conn = (HttpURLConnection) new URL(url).openConnection();
        conn.setRequestMethod("GET");
        
        BufferedReader in = new BufferedReader(
            new InputStreamReader(conn.getInputStream())
        );
        String response = in.lines().collect(Collectors.joining());
        System.out.println(response);
    }
}

API Parameters

Search Query

Name
Type
Required
Description
Example

url

string

Yes

Parameter defines the URL of an image to perform the Google Lens search.

https://i.imgur.com/HBrB8p0.png

Geographic Location

Name
Type
Required
Description
Example

hl

string

No

Akan-ak

country

string

No

Benin-bj

Serpapi Parameters

Name
Type
Required
Description
Example

engine

string

Yes

Set parameter to google_lens to use the Google Lens API engine.

google_lens

no_cache

boolean

No

Parameter will force SerpApi to fetch the Google Lens results even if a cached version is already present. A cache is served only if the query and all parameters are exactly the same. Cache expires after 1h. Cached searches are free, and are not counted towards your searches per month. It can be set to false (default) to allow results from the cache, or true to disallow results from the cache. no_cache and async parameters should not be used together.

trueorfalse

api_key

string

Yes

Parameter defines the SerpApi private key to use.

YOUR_API_KEY


Response

Success 200

Response Body

{
  "code": 200,
  "search_metadata":
    {				 
        "raw_html_file":"https://webserp.abcproxy.com/files/670bafd55f489382/66a89f7f-1e72-4524-92a4-12f18e277db0.html",
        "xray_html_file":"https://webserp.abcproxy.com/files/670bafd55f489382/66a89f7f-1e72-4524-92a4-12f18e277db0.xray",
        "total_time_taken":"8.6289",
        "id":"66a89f7f-1e72-4524-92a4-12f18e277db0",
        "json_endpoint":"https://webserp.abcproxy.com/files/670bafd55f489382/66a89f7f-1e72-4524-92a4-12f18e277db0.json",
        "created_at":"2025-04-03 11:51:03",
        "google_news_url":"https://lens.google.com/uploadbyurl?url=https%3A%2F%2Fi.imgur.com%2FHBrB8p0.png",
    },
  "search_parameters":
    {
        "engine":"google_lens",
        "api_key":"YOUR_API_KEY",
        "url":"https://i.imgur.com/HBrB8p0.png",
        "reviews":true,
		"no_cache":true,
    },
    "visual_matches":
    [
        {
        "link":"/search?sca_esv=e93cf3ca433b1dba&lns_surface=26&udm=48&si=APYL9buGmpQYpE633.....0nX2w5/VcNChQI//9k=",
        "image_width":"206",
        "image_height":"245",
        "position":1,
        "title":"Danny DeVito - Wikipedia",
        },
        .....
    ],
}

Response Fields

Name
Type
Remark

search_metadata

object

Contains timing and status information

search_parameters

object

Contains query parameters and search context

visual_matches

object []

visual matching

exact_matches

object []

exact match

Error Responses

Common Errors

HTTP Status
Error Code
Description

200

400

API Key can not be empty

200

401

Param error

200

402

API Key error

200

403

Insufficient Balance

200

404

Deduction failed

200

405

Failed to record usage count

200

406

Unsupported engine

200

407

Network error

200

408

File not found

200

409

Limit param error

200

410

Build url error

200

411

Failed to QueryRecentRecord

200

412

Failed to find json

200

413

Get html error

200

414

HTML is empty

200

429

Too many request

Error Example

{
  "code": 400,
  "message": "API Key can not be empty"
}

PreviousGoogle Images APINextGoogle Play Product API

Last updated 21 days ago

Parameter defines the language to use for the Google search. It is a two-letter language code. (e.g., en for English, es for Spanish, or fr for French). Head to the for a full list of supported Google languages.

Parameter defines the specific country location to use for the Google Lens Image Sources search. It’s a two-letter country code. (e.g., us for United States, fr for France, or de for Germany). Head to the for a full list of supported Google Lens countries.

Google languages page
Google Lens countries page