curl --request POST \
--url https://api.scrapeunblocker.com/images/google-lens \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/images/google-lens"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/images/google-lens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Search Google Lens with an image URL
Runs a Google Lens search for the image at url and returns its visual matches as JSON (usually ~60). Every match carries title, url (the page the image is on), domain, source (site name), imageUrl (the matching image), thumbnailUrl, width, height and position; product matches add price and currency (and product details) when Google has them, and priceText, rating and reviews as the tile shows them. relatedSearches lists what Lens recognised in the image (e.g. ‘Eiffel Tower’, with its Knowledge Graph id) and aiOverview is Google’s own description of the image when it is ready in time (else null). Shopping matches follow the country the request comes from - set proxy_country for a market (a US request is served from a European exit, where Google loads Lens matches; proxyCountry in the response says which).
curl --request POST \
--url https://api.scrapeunblocker.com/images/google-lens \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/images/google-lens"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/images/google-lens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Your ScrapeUnblocker API key. Apply on every request.
Query Parameters
Public http(s) URL of the image to search with, e.g. a product photo. Google fetches the image itself.
Proxy country the request is sent from (ISO-2, e.g. 'US', 'DE'). Shopping matches and prices follow the country Google sees the request from.
Optional Google market override (ISO-2). Default: proxy_country, else 'us'.
Google UI language, e.g. 'en', 'de'. Default 'en'.
Optional cap on the visual matches returned (1-100; default: all, usually ~60).
1 <= x <= 100Response
JSON with visualMatches, relatedSearches and aiOverview.

