I want to retrieve all the reviews for a specific app on google play and I need these informations from the reviews : rating, comment, device name and app version the review was wrote for.
I tried to use the android-market-api but sadly I can only get rating, creationtime, authorname, text, authorid.
So I was wondering if there is an API or an url I can send a post or get request (like the android-market-api send a post request) to retrieve the information I need.
Finally Google offers it now (announced at Google I/O 2016):
Google Play Reviews API
An example in Python with new Reviews API using Service Account credentials.
from httplib2 import Http
from oauth2client.service_account import ServiceAccountCredentials
from apiclient.discovery import build
credentials = ServiceAccountCredentials.from_json_keyfile_name(
'<secret from service account>.json',
scopes=['https://www.googleapis.com/auth/androidpublisher'])
service = build('androidpublisher', 'v2', http=credentials.authorize(Http()))
package_name = "<package name>"
reviews_resource = service.reviews()
reviews_page = reviews_resource.list(packageName=package_name, maxResults=100).execute()
reviews_list = reviews_page["reviews"]
infinite_loop_canary = 100
while "tokenPagination" in reviews_page:
reviews_page = reviews_resource.list(packageName=package_name,
token=reviews_page["tokenPagination"]["nextPageToken"],
maxResults=100).execute()
reviews_list.extend(reviews_page["reviews"])
infinite_loop_canary -= 1
if infinite_loop_canary < 0:
break
Keep in mind - I found out, Reviews API only allow access to last two weeks comments-ratings. If you want to do some retroactive analysis it is better to get comments-ratings as csv files from where they are saved in your account's bucket on google-cloud.
So when people start to answer this question they are going to point you to the following API:
Title: android-market-api.
link: http://code.google.com/p/android-market-api/
Unfortunately this API is mediocre and has some problems that I don't think are related to the developers of the API but the interaction with google.
I have used this API and the application I wrote works for finding some app's and their metadata but others it just returns no results.
I have been searching for an answer to this for a while and I have yet to figure it out.
Good luck
I am currently also searching for the same thing. Although its an old thread but just thought to share my research so far in this domain which might be helpful for other visitors.
commercial
- https://42matters.com/api/lookup
open-source
- https://code.google.com/p/android-market-api/ Java
- https://github.com/MarcelloLins/GooglePlayAppsCrawler C#
- https://github.com/chadrem/market_bot Ruby
- https://github.com/Akdeniz/google-play-crawler Java
- https://github.com/egirault/googleplay-api Python
Update :
http://www.playstoreapi.com/docs#app_info (unavailable now !) but instead you can give a try to https://github.com/thetutlage/Google-Play-Store-API/
Some interesting apis released for getting reviews and reply on google play. You can get the all the data you want:
"device": string,
"androidOsVersion": integer,
"appVersionCode": integer,
"appVersionName": string
get GET
Returns a single review based on review id.
list
Returns a list of reviews from playstore.
reply
Reply to a single review, or update an existing reply.
More here.
If you don't need the information to be realtime, you can download the Google Play Reports from google cloud storage. The reports are built daily.
See https://support.google.com/googleplay/android-developer/answer/6135870?p=crash_export&rd=1#export