Getting statistics from Google Play Developers with an API

情到浓时终转凉″ 提交于 2019-12-17 15:07:16

问题


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 :)


回答1:


May the source be with you.

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




回答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.




回答3:


I know this has already been answered, but this solution deserves some extra attention. There is a really good way of getting data from the Developer console. Take a look at: https://github.com/tmurakam/googleplay_dev_scraper

I have it running on my raspberry pi and it works really good. It's pretty simple to install and further automate it with a bash script. I'd really recommend this scraper to anyone interested in getting data from the developer console! With this you can get almost all data from the developer console. I regularly scrape the downloads numbers and save them to my webpage.




回答4:


You could use Google Analytics in both IOS and Android projects to record installs and in-app purchases. You can check it out here. It should be very easy to add google analytics to both platforms.




回答5:


Why not use App Annie, AppFigures (and similar) API's and let them take care of scraping/interfacing with Google Play and App Store?

http://support.appannie.com/categories/20082753-Analytics-API

http://docs.appfigures.com/




回答6:


It seems that Google has already allowed us to get this data through their API. Here is a page with all the available metrics that you can issue requests for.

https://developers.google.com/analytics/devguides/reporting/core/dimsmets#mode=web&cats=user,lifetime_value_and_cohorts,channel_grouping,app_tracking



来源:https://stackoverflow.com/questions/14140728/getting-statistics-from-google-play-developers-with-an-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!