Sales and download analysis is an important task to improve your software and its marketing. I am glad that Apple provides a daily and weekly report on my iPhone App sales. The problem is that they purge the historical data on a regular basis (after 7 days), so it’s important to download and save it to somewhere for later analysis.
Kirby at thecave.com shared his script on automating the download. You can set a cronjob after midnight to download the report daily. I also improved it a bit to make it work better and has a fewer http calls. You can grab the script at the end of the post. UPDATE: The changes are now committed to upstream. Thanks Kirby.
In addition, you can download a PHP script called AppStoreReports which will render your daily sales reports into html page and allow you to filter the report by region, app, and day. [via this thread]
I love automated reports and metrics. The next step would be generating some beautiful and meaningful graphs. I will work on it and share with you all soon.


John Ballinger
December 8th, 2008 at 9:04 pm
Super super cool! Thanks a lot, I have been looking for something like this for ages.
Have downloaded and got it working.
Cheers, again, John.