public-roadmap icon indicating copy to clipboard operation
public-roadmap copied to clipboard

Google Lens hasn't returned any results for this query.

Open John1212121 opened this issue 2 years ago • 5 comments

I integrated the google_lens engine in my code. At the beginning I received roughly 3 responses with good content. But now, I always get as response "Google Lens hasn't returned any results for this query."

I guess this is a bug? Or do I do something wrong?

Details: This is my request code (dart):

final url = Uri.parse('https://serpapi.com/search');
final apiKey =
    'xxxxx';
final engine = 'google_lens';

final response = await http.get(
  url.replace(queryParameters: {
    'api_key': apiKey,
    'engine': engine,
    'url': imageUrl,
  }),
);

This is the response I receive:

{
  "search_metadata": {
    xxxx
  },
  "search_parameters": {
      "engine": "google_lens",
      "url": "xxxx"
  },
  "search_information": {
      "images_results_state": "Fully empty"
  },
  "error": "Google Lens hasn't returned any results for this query."
}

John1212121 avatar Jul 04 '23 15:07 John1212121

Hi @John1212121! This looks like the issue with Google not returning any results for your image rather than anything with your implementation. If you contact us at [email protected] or through the chatbox widget at https://serpapi.com/ we can try to find the root cause of your issue.

marm123 avatar Jul 05 '23 05:07 marm123

@John1212121 Feel free to share more details here as well if you don't mind this being public. Thank you!

hartator avatar Jul 05 '23 23:07 hartator

Another user reached out regarding the same issue with some specific images on google lens. It is not returning results when our API is called with our Python library, but results are returned in our Playground.

Inspect: https://serpapi.com/searches/66e9dde7dda9d947646775bb/inspect

It could be something to do with how certain URL characters are escaped in Python.

Intercom

sonika-serpapi avatar Sep 17 '24 20:09 sonika-serpapi

Inspect: https://serpapi.com/searches/66e9dde7dda9d947646775bb/inspect

There is no valid results here.

hartator avatar Sep 20 '24 22:09 hartator

There is no valid results here.

Yes, but intermittently, the playground was showing results for this same query. I removed the playground link from the comment on the user's request. Later, they reached out and mentioned they were able to resolve the issue on their end.

sonika-serpapi avatar Sep 20 '24 22:09 sonika-serpapi