serpapi / public-roadmap

Public Roadmap for SerpApi, LLC (https://serpapi.com)
54 stars 5 forks source link

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

Open John1212121 opened 1 year ago

John1212121 commented 1 year ago

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."
}
marm123 commented 1 year ago

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 contact@serpapi.com or through the chatbox widget at https://serpapi.com/ we can try to find the root cause of your issue.

hartator commented 1 year ago

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

sonika-serpapi commented 1 month ago

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

hartator commented 1 month ago

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

There is no valid results here.

sonika-serpapi commented 1 month ago

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.