serpapi / public-roadmap

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

[Google Maps API] Results Not Scraped #1722

Closed schaferyan closed 2 months ago

schaferyan commented 3 months ago

Two users reported our Google Maps API is currently returning the "Google hasn't returned any results for this query," error for searches where results are visible in the HTML.

After investigating, it appears all Google Maps API searches with type=search are currently returning a "fully empty" response. Searches with type=place appear to work as expected.

Screenshot 2024-06-25 at 1 09 56 PM

Playground | Inspector | Intercom 1 | Intercom 2

NateSkiles commented 3 months ago

I found adding the start=0 parameter seems to be a workaround to this at the moment.

Example: Without start (returns "local_results_state": "Fully empty"): link

With start: link

schaferyan commented 3 months ago

Another user reported this. In their case using start=0 isn't an option, as this requires the ll parameter. They don't have the GPS coordinates as they are using our Google Maps API to get those:

Front

dragonkhoi commented 3 months ago

The start=0 helped with some of our queries, but it still is not working for some other queries. It is not returning anything.

Notably, the lat long ll query I gave was in the US and it says Serbia on the bottom right of this HTML prettify link.

image

schaferyan commented 3 months ago

Thank you @dragonkhoi!

It's possible this is a separate issue, since this is a slightly different behavior than described above.

Here is the Search Inspector link for that search:

Inspector

hilmanski commented 3 months ago

Additional sample from the user: Inspect

schaferyan commented 3 months ago

Freezing this for now, since Google rolled back to the old layout. It looks like @zyc9012 has a fix ready to go should Google re-deploy the new layout.

zyc9012 commented 2 months ago

We've released a fix for this. Though Google has rolled back the layout, this fix ensures that Google Maps API will still work if Google brings the new layout back.