Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Google Image Search API] No results returned even though they are available #2129

Open
RedBillyOne opened this issue Nov 17, 2024 · 5 comments
Labels
status: queued Ready to work on type: bug Something is broken

Comments

@RedBillyOne
Copy link

Hi,

This search https://serpapi.com/playground?device=desktop&engine=google_images&gl=fr&google_domain=google.fr&hl=fr&location=France&q=nike+air+force+one
return an error message but there are many image

image

Is it possible to solve ?

Regards

@hilmanski
Copy link

Hi, @RedBillyOne

Can you please share the search ID for this? I can't replicate this bug on my side. Thanks!

@hilmanski hilmanski added type: bug Something is broken status: triage Review and triage needed labels Nov 17, 2024
@RedBillyOne
Copy link
Author

Hi, @hilmanski
Please find below
id="673a4e952c83d5a822537026"

{
"search_metadata": {
"id": "673a4e952c83d5a822537026",
"status": "Success",
"json_endpoint": "https://serpapi.com/searches/2f8631706d5cd793/673a4e952c83d5a822537026.json",
"created_at": "2024-11-17 20:14:13 UTC",
"processed_at": "2024-11-17 20:14:13 UTC",
"google_images_url": "https://www.google.fr/search?q=nike+air+force+one&oq=nike+air+force+one&uule=w+CAIQICIGRnJhbmNl&hl=fr&gl=fr&tbm=isch",
"raw_html_file": "https://serpapi.com/searches/2f8631706d5cd793/673a4e952c83d5a822537026.html",
"total_time_taken": 1.6
},
"search_parameters": {
"engine": "google_images",
"q": "nike air force one",
"location_requested": "France",
"location_used": "France",
"google_domain": "google.fr",
"hl": "fr",
"gl": "fr",
"device": "desktop"
},
"search_information": {
"image_results_state": "Fully empty"
},
"error": "Google Images hasn't returned any results for this query."

@marm123
Copy link

marm123 commented Nov 18, 2024

Thanks for sharing the example @RedBillyOne. It looks like Google is trying a new layout. Can you try rerunning the query with the no_cache=true to force an old layout? You should be able to get proper results in most cases. In the meantime, we'll investigate the issue and potentially work on introducing a new layout to Google Images API.

Inspect

@marm123 marm123 changed the title [Google Search Image] return empty result even with image [Google Image Search API] No results returned even though they are available Nov 18, 2024
@marm123 marm123 added status: queued Ready to work on and removed status: triage Review and triage needed labels Nov 18, 2024
@RedBillyOne
Copy link
Author

Hi,
Yes it's fine when there is the "standard" layout.

@sonika-serpapi
Copy link

Hi, Yes it's fine when there is the "standard" layout.

@RedBillyOne Thank you for confirming that. We'll investigate the changes for the new layout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: queued Ready to work on type: bug Something is broken
Projects
None yet
Development

No branches or pull requests

4 participants