local_results not being parsed on certain searches
under review
J
James Newman
On certain searches, typically searches where the local_results are beneath other google elements, the local_results and local_results.places are not being parsed.
Here is an example search
If you look at the related HTML https://serpapi.com/searches/a2dcf06e296d494e/61f2646137b24a9905c37dc1.html
the local_results are present on the page, but are not included in the search result JSON
Image is attached for reference
B
Benoit Vanalderweireldt
I'm having the same issues, I have consumed thousands of requests for no results.
Terry Tan
Hi Benoit Vanalderweireldt, can you provide the search ID so that we can help to investigate? Thank you.
B
Benoit Vanalderweireldt
Terry Tan: Even the default example doesn't work for me.
curl --get https://serpapi.com/search \
-d api_key="" \
-d engine="google_local_services" \
-d q="Electrician" \
-d hl="en" \
-d place_id="ChIJOwg_06VPwokRYv534QaPC8g"
Terry Tan
Benoit Vanalderweireldt: Thanks for reporting. We will look into that.
Justin O'Hara
Benoit Vanalderweireldt: We have documented the issue here:
https://github.com/serpapi/public-roadmap/issues/615
Illia Zub
under review
Illia Zub
Merged in a post:
Google Local Results Missing from JSON
Skyler Reeves
Ran a test on approx. 10,000 queries. SERPAPI failed to return JSON data for
local_results
on 99% of queries.Example Failure:
- Query: dallas truck accident attorneys
- Playground String: https://serpapi.com/playground?q=dallas+truck+accident+attorneys&location=United+States&gl=us&hl=en
Example Success:
- Query: henderson truck accident lawyers
- Playground String: https://serpapi.com/playground?q=henderson+truck+accident+lawyers&location=United+States&gl=us&hl=en
After reviewing a few dozen queries, the common denominator seems to be that whenever the
local_results
appear below another element (e.g. local_ads
or organic_results
(e.g.g. when the local_results
are in the middle of the organic results)) that is when things fail.Justin O'Hara
Thank you James Newman for reporting this. I made a note of this internally and our engineers will take look into it.
J
James Newman
Thanks Justin O'Hara !