Google Places API 20 Places Limit

I’m working with the Google Places API and am noticing it limits the output to only 20 places. Is there a limit with this API and if so it will show all the desired locations in the United States and not just 20?

Yes, there is a limit on the API.

Each page will return 20, with a maximum of 3 pages. So total of 60. You can use the page token to get the next page.

https://developers.google.com/places/web-service/search#PlaceSearchResponses

So no, you can’t find all the hotels in the USA with one call :slight_smile:

Thank you! That is what I suspected.

5 years later…

Just for anyone who may come across this post, this plugin will generate you a list of points by forming a grid. You could take each point within the generated state, feed each item’s pair of lat/lng values into a Places API search and filter the results to remove any duplicates. That will allow you to use the API to make broader searches, but you just need to be vigilant of the fields you’re returning and the number of requests being made so you don’t accumulate unnecessary charges from Google.

https://paul-testing.bubbleapps.io/version-test/grid_creator