繁体   English   中英

从Apple AppStore获取应用程序评级

[英]Getting Rating for an App from Apple AppStore

我想创建有关我的应用程序评级的三个维度的报告-日期,国家/地区和应用程序版本(我知道从Android只能查询日期+另一个Dim,不太确定它如何与Apple配合使用...) 。 我找到了“报告者”( https://help.apple.com/itc/appsreporterguide/#/itcbd9ed14ac ),但它只允许我提供财务报告...我也看到了RSS选项-仅此选项使我“ X条评论”,我只想要一个汇总数据(可以说-每天,多少个1星评级,2星评级等......)

如果有人可以帮助我(最好是在bash / python脚本中),我真的很乐意。 谢谢!

Appfigures API可以为您提供iOS和Android应用程序的评级和评论。

以下请求将为您提供来自任何国家的最新50条评论,但您可以轻松获得更多评论,但受国家/版本/等的限制。

GET https://api.appfigures.com/v2/reviews?count=50

虽然会给你这样的东西:

{
    "total": 140,
    "pages": 28,
    "this_page": 1,
    "reviews": [{
        "author": "DeveloperToDeveloper",
        "title": "Just Spectacular",
        "review": "Finally able to remove the ads! The description is hilarious!! Thanks!!!",
        "original_title": null,
        "original_review": null,
        "stars": "5.00",
        "iso": "US",
        "version": "1.2",
        "date": "2017-05-19T17:05:00",
        "product": 6567539,
        "weight": 0,
        "id": "5561747L7xnbsMRu8UbPvy7A71Dv6A=="
    }]
}

使用Python的方法如下:

import requests

USERNAME = 'USERNAME'
PASSWORD = 'PASSWORD'
APP_KEY = 'APP_KEY'
BASE_URI = "https://api.appfigures.com/v2/"

# Helper function for auth and app_key
# first / in uri is optional
def make_request(uri, **querystring_params):
  headers = {"X-Client-Key": APP_KEY}
  auth =(USERNAME, PASSWORD)
  return requests.get(BASE_URI + uri.lstrip("/"),
                        auth=auth,
                        params=querystring_params,
                        headers=headers)

# Get the last 50 reviews for all of our apps
reviews_response = make_request("/reviews", 
                                count=50)
assert 200 == reviews_response.status_code
assert 0 < len(reviews_response.json())

# Use the response to sum up ratings, analyze review text, etc.

仅供参考-评论和评分针对应用是分开的,而评论的5星评分有助于总评分,但也可能有与书面评论无关的评分。

可以使用“ 评分”路线检索这些内容。

使它们脱离iTunes Connect的最简单方法可能是使用Spaceship。 (应用程序>活动>评分和评论

# Get reviews for a given store front reviews = ratings.reviews("US") # => Array of hashes representing review data

https://github.com/fastlane/fastlane/blob/master/spaceship/docs/iTunesConnect.md#app-ratings--评论

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM