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.
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:
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.
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.
- 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
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
Returns a single review based on review id.
Returns a list of reviews from playstore.
Reply to a single review, or update an existing reply.
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.