Getting statistics from Google Play Developers with an API

I am in charge of developing a website which should be able to show statistics from both Apple's app store and Google Play Store to clients, so they can easily see what's going on.

I have figured out some ways to get App Store's data, but the Google Play Developers statistics seem way harder to get.

I've heard of scraping, but this wouldn't be a great solution, as it would probably get broken whenever the developers console gets a major update.

I'm looking for something which would work like Andlytics or App Annie do, as an example, so I could get data with AJAX or something else (JSON format maybe?) and put it into a database.

For now, I haven't found any reliable solution (besides scraping, which seems like a unstable way to go), and this question has been asked a while ago, so I allow myself to ask it again, because maybe now there are some solutions to get around this.

All I could find was Google Play APIs, which allow me to fetch data from the public page of the app, but not from developers console, with authentication.

Any hints or help will be greatly appreciated :)


Solution 1:

May the source be with you.

Andlytics is open sourced and actively developed, you can probably find something useful in there :)

Solution 2:

Your Google Play stats are published to files stored in a bucket on Google Cloud Storage (https://support.google.com/googleplay/android-developer/answer/6135870?p=financial_export&rd=1#export)

You can either download the gsutil tool mentioned in the above link and set it up as a cron job to copy the files to wherever you want them every day, or you can use the Google Cloud Storage API (https://cloud.google.com/storage/docs/apis) to go and get the files yourself.