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

[Google Play API] Searches time out with "Failed to retrieve HTML." error.

Open marm123 opened this issue 2 years ago • 2 comments

This issue appears when there are a few parameters included - "gl", "store": "movies" and "movie_category": "MOVIE". This is not the case for all gl parameters as it works fine with for example us and fr, but doesn't work with others (tested es, pl, br). I also tested different parameters and the issue was only present for the ones I mentioned above (probably didn't test all combinations though).

image

BR: Playground | Inspect ES: Playground | Inspect PL: Playground | Inspect

marm123 avatar Nov 08 '22 08:11 marm123

Just a clarification: This issue is unrelated to changes in https://github.com/serpapi/SerpApi/pull/3308

kagermanov27 avatar Nov 10 '22 19:11 kagermanov27

These parameters didn't work because Google Play redirects from https://play.google.com/store/movies/category/MOVIE?hl=en&gl=br to https://play.google.com/store/movies?hl=en&gl=br but we didn't follow redirects.

image (curl -s -I https://play.google.com/store/movies/category/MOVIE?hl=en&gl=br)

@ishiharaf Can you please add follow_redirect parameter to our Google Play Store Movies validator, double-check that /search?engine=google_play_movies&gl=pl&hl=en&movies_category=MOVIE&no_cache=true works, and submit a pull request?

ilyazub avatar May 15 '24 14:05 ilyazub