LoginSignup
11
9

More than 5 years have passed since last update.

Apple Tier MatrixをJSONで取得する

Last updated at Posted at 2016-04-15

今までTierが変わるごとに、iTunesConnectにログインして価格表みてあれこれしていましたが、最近価格表を見たらフォーマットが変わっており愕然としました。

いちいちログインして、価格表見て・・なんてメンドクサイので、なんとかAPIで取得できないだろうか調べていたところ・・・

あった!

https.api
https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/ra/apps/pricing/matrix

レスポンスはこんな感じ

response.json
{
  "data": {
    "pricingTiers": [
      {
        "tierStem": "0",
        "tierName": "無料",
        "pricingInfo": [
          {
            "country": "アメリカ合衆国",
            "countryCode": "US",
            "currencySymbol": "$",
            "currencyCode": "USD",
            "wholesalePrice": 0,
            "retailPrice": 0,
            "fRetailPrice": "$0.00",
            "fWholesalePrice": "$0.00"
          }
        ],
        ...
      }
    ],
    ...
  }
}

でも

非公式かもしれません(fastlaneで使ってそうだから大丈夫かな)。フォーマットも突然変わるかもしれません。
韓国もUSDです。気をつけましょう。

11
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
9