Closed sriramkp closed 4 years ago
This is a limitation of the API to avoid scraping. It never returns more than 60 results for a given query.
By default, each Nearby Search or Text Search returns up to 20 establishment results per query; however, each search can return as many as 60 results, split across three pages. If your search will return more than 20, then the search response will include an additional value — next_page_token.
https://developers.google.com/places/web-service/search#PlaceSearchPaging
If it is to avoid scraping for developers, why google maps is giving more than 60 results for users? Avoid scraping for users and not to the developers.
The below code returns only 60 results, kindly help me to fetch all the results for any query given.
Code example