I want to know if there is any api that can allow me to get the number of reviews from an url.
I know that google offers the possibility to get this number by using the placeid, but the only information I have is the url of the website of a company.
Any ideas please?
-
please have a look at http://stackoverflow.com/questions/21924703/android-google-places-api-no-reviews-array http://stackoverflow.com/questions/22369528/fetching-reviews-from-google-map https://developers.google.com/places/android-api/place-details https://developers.google.com/place and http:///www.wptrafficanalyzer.in please upvote if useful – iOSAndroidWindowsMobileAppsDev Sep 21 '16 at 09:04
-
you did not state which language you are working with. Is it php, java for android, swift or objective C or javascript? – iOSAndroidWindowsMobileAppsDev Sep 21 '16 at 09:12
-
Generally https://developers.google.com/places/web-service/ – iOSAndroidWindowsMobileAppsDev Sep 21 '16 at 09:18
-
Jquery Ninja: thanks for answering. I know that I can get the number of reviews using the place id but the problem is I don't have this information the only thing I have is the website url of the company – Nada Sep 21 '16 at 09:38
-
Sorry I forgot to mention that I am using php – Nada Sep 21 '16 at 09:48
-
first check in your code if the String "website" is null. If it is not null, then access it. Not all companies upload website details. In java for android, String website; if(!jsonObject.isNull("website")) website = jsonObject.getString("website") Here jsonObject is the result object you can use this as pseudocode for your php. – iOSAndroidWindowsMobileAppsDev Sep 21 '16 at 09:50
-
also make sure you are using the correct url. – iOSAndroidWindowsMobileAppsDev Sep 21 '16 at 09:52
-
Another way to check if the company has posted a web url in java is if(jsonObject.has("website")) I am certain you can find the equivalent in php – iOSAndroidWindowsMobileAppsDev Sep 21 '16 at 11:25
2 Answers
Maybe, but probably not.
Places API Text Search seems to be able to find places by their URL:
However, this is not a documented feature of the API and I do not think this can be relied upon, so I'd recommend filing a feature request, to make this a supported, reliable feature.
As for the amount of reviews, you may be interested in:
- Issue 3484: Add # of reviews to the Place Details Results

- 4,481
- 21
- 41
I've written an API like this for Reviewsmaker, but I target specific business names not URLs. See this example (I activated a key for this purpose for now):
Or, try yourself with any business name:
http://reviewsmaker.com/api/google/?business=Toys R Us&api_key=4a2819f3-2874-4eee-9c46-baa7fa17971c
The following call would return a JSON object which shows:
{
"results":{
"business_name":"Life Made A Little Easier",
"business_address":"1702 Sheepshead Bay Rd, Brooklyn, NY 11235, USA",
"place_id":"ChIJ_xjIR2REwokRH2qEigdFCvs",
"review_count":38
},
"api":{
"author":"Ilan Patao",
"home":"www.reviewsmaker.com"
}
}
Pinging this EP using a Chronjob for example once every hour or two and return the review_count can pretty much build your own review monitoring app;
You can probably do what you're looking for if you query the Places API Text Search or the CSE (Custom Search Engine) API to lookup the URL, return back the matching name of the business associated with this URL and calling an endpoint like this one to return back the associated review count.
You can probably code this in py or PHP. Not sure how familiar you are with data parsing, but I was able to build my API based on Google's CSE API. CSE provides metadata in its results which contain the total reviews, so if you create a CSE engine and use the CSE API looking for business schemas, review schemas, etc; you can return back items and within the PageMap node there are objects with data that you need very little tweaking to do (such as string replacing, trimming) which will return back the values you're looking for.
Hope my answer helped, at least to lead you in the right direction :)

- 1,602
- 1
- 8
- 13