On November/18, Apple finally released the Appstore Connect REST API. Referencing the Apple description:
TestFlight. Manage beta builds of your app, testers, and groups.
Users and Access. Send invitations for users to join your team. Adjust their level of access or remove users.
Reporting. Download sales and financial reports.
Update 10/03/2018
Good news on this one: on 2018 WWDC, Apple announced the Appstore Connect API - where you'll be able to access almost everything related to your Appstore Connect management. You can see two related talks here and here.
The only curious thing is that its release date was supposed to be late this summer - so it's probably delayed. Nonetheless we should be able to see a release soon.
There's no API for iTunes connect, the only way you can access the information is through the web or with a program that scrapes the web pages. If you want to create something in Objective-C, download AppSales from github, it's an iPhone app which downloads financial reports from ITC (or maybe itts). You can download it and install it on your iPhone if you have an Apple developer account. You can look through their code and see how they scrape the daily and weekly reports (hint: it's ugly).
Note that if you try to create an iPhone app to do this, Apple will reject it. It breaks the rule about "No public API". Other people have tried this and been rejected.
If you're just looking for software to do this on your computer, I'd highly recommend AppViz
For everything non-sales related, you might want to check out the unoffical documentation of the iTunes Connect JSON API: https://github.com/fastlane/itc-api-docs
如果出现错误,响应将包含标头“ERRORMSG” ,以及标头“文件名”(如果有正文)(大概 Apple 开发人员不知道 Content-Disposition 或 4xx/5xx 状态代码)。响应的正文包含文件数据。
Following up on gavi's answer: if you download & decompile the Autoingestion class you can see the API that Apple use for sales downloads.
It consists of a POST to https://reportingitc.apple.com/autoingestion.tft with the form values: USERNAME, PASSWORD, VNDNUMBER, TYPEOFREPORT, DATETYPE, REPORTTYPE, REPORTDATE. Refer to the PDF for details of the parameters
The response will contain the header 'ERRORMSG' if there's an error, and the header 'filename' if there's a body (presumably Apple developers don't know about Content-Disposition or 4xx/5xx status codes). The body of the response contains the file data.
Here is a small project that may be helpful to you in automating the download of piano reports from iTunes Connect. It's a python script to automate the login / download of daily sales files and I use it daily in conjunction with some other scripts to parse that data. Hook it up to a cron job with some error checking (the reports never seem to be generated at the same time) and you'll be good to go.
No, no formal API (or if there is one, it's well hidden even from iPhone developer users of iTunes connect). However, the sales & financial reports are downloadable as tab delimited plaintext (gzip compressed), though to make the request you'll have to login (which is cookie based). One could probably wrap this process up with a little bit of screen scraping, and thus get access to the TSV files.
To can use the AutoIngestion Tool the vendorId is needed.
To find it, with the last update on iTunes Connect, in the Sales and Trends section, pressing on the top
right menu that shows "Top Content" can access to the Reports entry (direct link).
There you can see the "Vendor" selector, pressing on it you can see the Details of the vendor with the following format:
There's no formal API but several open source and commercial products available that bring some/most/all info together (such as the ones mentioned in previous answers).
Another such solution is www.appfigures.com which combines sales reports, app reviews, and hourly rank updates. Unlike the other apps appfigures can automatically import your reports and email you a nicely formatted report by email every day/week.
发布评论
评论(13)
2018 年 2 月 11 日更新 2018
年 11 月,Apple 终于发布了 Appstore Connect REST API。参考苹果的描述:
更新 10/03/2018
关于这一点的好消息:在 2018 年 WWDC 上,Apple 宣布了 Appstore Connect API - 您将能够访问与 Appstore Connect 管理相关的几乎所有内容。您可以在此处和此处。
唯一奇怪的是它的发布日期应该是今年夏末 - 所以它可能会被推迟。尽管如此,我们应该能够很快看到发布。
2016 年 8 月 18 日更新
Apple 官方 Reporter 工具
https://help.apple.com/itc /appsreporterguide/#/
iTunes 最终发布了自动下载工具,如 PDF
中所述http://www.apple.com/itunesnews/docs/AppStoreReportingInstructions.pdf
这是类文件
http://www.apple.com/itunesnews/docs/Autoingestion.class.zip
Update 11/02/2018
On November/18, Apple finally released the Appstore Connect REST API. Referencing the Apple description:
Update 10/03/2018
Good news on this one: on 2018 WWDC, Apple announced the Appstore Connect API - where you'll be able to access almost everything related to your Appstore Connect management. You can see two related talks here and here.
The only curious thing is that its release date was supposed to be late this summer - so it's probably delayed. Nonetheless we should be able to see a release soon.
Update 8/18/2016
Official Reporter tool from Apple
https://help.apple.com/itc/appsreporterguide/#/
iTunes finally released an auto download tool as noted in the PDF
http://www.apple.com/itunesnews/docs/AppStoreReportingInstructions.pdf
Here is the class file
http://www.apple.com/itunesnews/docs/Autoingestion.class.zip
iTunes 连接没有 API,您访问信息的唯一方法是通过网络或使用抓取网页的程序。如果你想用 Objective-C 创建一些东西,请从 github 下载 AppSales,它是一个 iPhone 应用程序,可以从 ITC(或者可能是 itts)下载财务报告。如果您有 Apple 开发者帐户,则可以下载并安装在您的 iPhone 上。您可以查看他们的代码,看看他们如何抓取每日和每周报告(提示:这很难看)。
http://github.com/omz/AppSales-Mobile
请注意,如果您尝试创建iPhone应用程序这样做,苹果会拒绝它。它打破了“没有公共 API”的规则。其他人也尝试过这个方法,但都被拒绝了。
如果您只是在寻找在计算机上执行此操作的软件,我强烈推荐 AppViz
http:// /www.ideaswarm.com/products/appviz/
这是一篇很好的文章,比较了这些应用程序和更多应用程序:
http://www.markj.net/sales-stats-tools-for-iphone-apps/
There's no API for iTunes connect, the only way you can access the information is through the web or with a program that scrapes the web pages. If you want to create something in Objective-C, download AppSales from github, it's an iPhone app which downloads financial reports from ITC (or maybe itts). You can download it and install it on your iPhone if you have an Apple developer account. You can look through their code and see how they scrape the daily and weekly reports (hint: it's ugly).
http://github.com/omz/AppSales-Mobile
Note that if you try to create an iPhone app to do this, Apple will reject it. It breaks the rule about "No public API". Other people have tried this and been rejected.
If you're just looking for software to do this on your computer, I'd highly recommend AppViz
http://www.ideaswarm.com/products/appviz/
Here's a nice post which compares these and more apps:
http://www.markj.net/sales-stats-tools-for-iphone-apps/
对于所有与销售无关的内容,您可能需要查看 iTunes Connect JSON API 的非官方文档: https://github.com/fastlane/itc-api-docs
更新:现在 iTunes Connect API 和 Apple Developer API 都有 Ruby 实现可用:https://github.com/fastlane/fastlane/tree/master/spaceship
For everything non-sales related, you might want to check out the unoffical documentation of the iTunes Connect JSON API: https://github.com/fastlane/itc-api-docs
Update: There is now a Ruby implementation of both the iTunes Connect API and the Apple Developer API available: https://github.com/fastlane/fastlane/tree/master/spaceship
跟进全球疫苗和免疫联盟的答案:如果您下载并反编译Autoingestion类你可以看到Apple用于销售下载的API。
它由发送到 https://reportingitc.apple.com/autoingestion.tft 的 POST 组成,其表单值为:USERNAME、密码、越南号码、报告类型、日期类型、报告类型、报告日期。有关参数的详细信息,请参阅 PDF
如果出现错误,响应将包含标头“ERRORMSG” ,以及标头“文件名”(如果有正文)(大概 Apple 开发人员不知道 Content-Disposition 或 4xx/5xx 状态代码)。响应的正文包含文件数据。
Following up on gavi's answer: if you download & decompile the Autoingestion class you can see the API that Apple use for sales downloads.
It consists of a POST to https://reportingitc.apple.com/autoingestion.tft with the form values: USERNAME, PASSWORD, VNDNUMBER, TYPEOFREPORT, DATETYPE, REPORTTYPE, REPORTDATE. Refer to the PDF for details of the parameters
The response will contain the header 'ERRORMSG' if there's an error, and the header 'filename' if there's a body (presumably Apple developers don't know about Content-Disposition or 4xx/5xx status codes). The body of the response contains the file data.
这是一个小项目,可能对您从 iTunes Connect 自动下载钢琴报告有所帮助。这是一个 python 脚本,用于自动登录/下载每日销售文件,我每天都会将它与其他一些脚本结合使用来解析该数据。将其连接到 cron 作业并进行一些错误检查(报告似乎永远不会同时生成),然后您就可以开始了。
http://code.google.com/p/appdailysales/
Here is a small project that may be helpful to you in automating the download of piano reports from iTunes Connect. It's a python script to automate the login / download of daily sales files and I use it daily in conjunction with some other scripts to parse that data. Hook it up to a cron job with some error checking (the reports never seem to be generated at the same time) and you'll be good to go.
http://code.google.com/p/appdailysales/
不,没有正式的 API(或者即使有,它也对 iTunes connect 的 iPhone 开发者用户隐藏得很好)。然而,销售和财务报告可以以制表符分隔的纯文本(gzip 压缩)形式下载,但要发出请求,您必须登录(基于 cookie)。人们可能可以通过一点屏幕抓取来结束这个过程,从而访问 TSV 文件。
No, no formal API (or if there is one, it's well hidden even from iPhone developer users of iTunes connect). However, the sales & financial reports are downloadable as tab delimited plaintext (gzip compressed), though to make the request you'll have to login (which is cookie based). One could probably wrap this process up with a little bit of screen scraping, and thus get access to the TSV files.
请访问 http://www.itunesapis.com。这是缺少的 iTunes 和 iTunes Connect API。
Take a look at http://www.itunesapis.com. This is the missing iTunes and iTunes Connect API.
我自己的 perl5 模块的无耻插件...
http://metacpan.org/pod/WWW:: iTunesConnect
尽管如此,考虑到昨天公告官方 Apple 应用程序,可能正在开发一个 API。
Shameless plug for my own perl5 module...
http://metacpan.org/pod/WWW::iTunesConnect
Although, given yesterday's announcement of an official Apple app, there might be an API in the works.
GitHub 上最受欢迎的是 spaceship
它是一个 Ruby 库。您可以通过
NSTask
来调用ruby代码。The most popular one on GitHub is spaceship
It is a Ruby library. You can
NSTask
to call ruby code.到处寻找后,我没有找到 PHP 版本的报告 API,所以我自己做了一个。
您可以在 https://github.com/Finnb8r/itunes- 上查看connect-sales-api-php 。
我意识到这不是 Objective-C 包装器,但通常在寻找 API 时此链接会出现在顶部。
after looking everywhere I did not find a PHP version of the reports API so made my own.
You can check it out on https://github.com/Finnb8r/itunes-connect-sales-api-php .
I realize that this is not an Objective-C wrapper but this link comes out on top when generally looking for an API.
要使用自动摄取工具,需要供应商 ID。
要找到它,请在 iTunes Connect 上的“销售和趋势”部分中按顶部的
显示“热门内容”的右侧菜单可以访问报告条目(直接链接)。
您可以看到“供应商”选择器,按下它您可以看到供应商的详细信息,格式如下:
希望有帮助。
To can use the AutoIngestion Tool the vendorId is needed.
To find it, with the last update on iTunes Connect, in the Sales and Trends section, pressing on the top
right menu that shows "Top Content" can access to the Reports entry (direct link).
There you can see the "Vendor" selector, pressing on it you can see the Details of the vendor with the following format:
Hope it helps.
没有正式的 API,但有一些开源和商业产品可以将一些/大多数/所有信息整合在一起(例如前面答案中提到的那些)。
另一个此类解决方案是 www.appfigures.com,它结合了销售报告、应用评论和每小时排名更新。与其他应用程序不同,appfigures 可以自动导入您的报告,并每天/每周通过电子邮件向您发送格式良好的报告。
There's no formal API but several open source and commercial products available that bring some/most/all info together (such as the ones mentioned in previous answers).
Another such solution is www.appfigures.com which combines sales reports, app reviews, and hourly rank updates. Unlike the other apps appfigures can automatically import your reports and email you a nicely formatted report by email every day/week.
有 iTunes Store 搜索 API:
它是Apple 联盟计划的一部分。
希望这会对您有所帮助。
There is ITunes Store Search API:
It is part of Apple affiliate program.
Hope this will help you.