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 optionalpermission sets
.
Request
HTTP Request
API Parameters
Search Query
url
string
Yes
Parameter defines the URL of an image to perform the Google Lens search.
https://i.imgur.com/HBrB8p0.png
Geographic Location
hl
string
No
Akan-ak
country
string
No
Benin-bj
Serpapi Parameters
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.
true
orfalse
api_key
string
Yes
Parameter defines the SerpApi private key to use.
YOUR_API_KEY
Response
Success 200
Response Body
Response Fields
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
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
Last updated