
We offer some simple-to-use APIs you can use to do specific action such as show your website visitors some cool stats about the Apple Store.
We offer them for free, so you can use them without writing many lines of code; We did that for you! :-)
You can do the following cool actions with our APIs:
- Get the current Apple Store Status from every Apple Online Store worldwide
- Get some cool stats about the Apple Store like you can see in the footer of this page
- Get all products that have been recently added to the Apple Online Store
Some information
All our APIs will return JSON-encoded data. There are functions in every programming language to decode JSON-Strings. In Objective C you have to use the SBJSON object, in PHP for example the json_decode() function. In JavaScript the eval() function will do the trick.
How to get the current Apple Store Status
Just get the contents from http://istheapplestoredown.de/api/status. It will return "n" if the US Store is not down, "y" if it is down.
How to get the cool stats about the Apple Store
Just get and parse the JSON-encoded data from http://istheapplestoredown.de/api/stats. If you don't like the text we've written you can use http://istheapplestoredown.de/api/stats/2 and write your own text.
How to get recently added products
Just get and parse the JSON-encoded data from http://istheapplestoredown.de/api/products. It will return and JSON-encoded String if there have been added new products since the last Store-Down. Otherwise it will return an empty String.
The JSON-encoded - if there have been new products - will contain an name of the new product, an image link and an URL.
To visit the new product just add http://store.apple.com/ before the link returned in the JSON string. To get the product image you have to add http://istheapplestoredown.de/ before the image String returned in the JSON string.
Example:
If the returned JSON string looks like this:[{"name":"iPod touch","image":"\/images\/products\/ipodtouch.png","link":"\/us\/browse\/home\/shop_ipod \/family\/ipod_touch"}], the new added product's name is "iPod touch", a link to the product page would be http://store.apple.com/us/browse/home/shop_ipod/family/ipod_touch and the product image URL would be http://istheapplestoredown.de/images/products/ipodtouch.png.