I am using Google places API, It returns only top 5 search results. Is there any way to increase the count.
e.g. URL
I have searched for keyword "new"
https://maps.googleapis.com/maps/api/place/autocomplete/json?input=new&types=%28regions%29&sensor=false&key=API_KEY
In order to have access to more than 5 reviews with the Google API you have to purchase Premium data Access from Google. That premium plan will grant you access to all sorts of additional data points you have to shell out a pretty penny.
The documentation says that the Places API returns up to 20 results. It does not indicate that there is any way to change that limit. So, the short answer seems to be: You can't. Of course, you might be able to sort of fake it by doing queries for several locations, and then merging/de-duplicating the results.
Go to APIs & Services → Dashboard → Enable APIs & Services at the top and Choose Maps Javascript API from the API Library. This will open up the Map JavaScript API page, and Enable it.
From the documentation:
A JSON response contains two root elements:
"status" contains metadata on the request. See Status Codes below.
"predictions" contains an array of places, with information about the place. The Places API returns up to 5 results.
Source: https://developers.google.com/places/web-service/autocomplete#place_autocomplete_responses
Google specifies that they only give up to 5 results for place API. You can check below image where google accepts this. Google Place API Doc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With