-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Many endpoints on itunes.apple.com (and subdomains) accept/expect an X-Apple-Store-Front header. Its value consists of between one and three numbers and has the following format: <country>-<language>,<platform> (only <country> is required, the others can be left off).
Setting <country> to 143443 means Germany for example; a list of possible countries used to be available in the iTunes affiliate partner documentation and can still be accessed through the Internet Archive.
Among the available values for <language> are 1 (US English), 2 (British English), 3 (French), and 4 (German). It is not possible to combine country and language arbitrarily, for example setting US English as the language but Germany as the country does not work, whereas British English does work for Germany.
Finally, the <platform> value determines the Apple application the request is (supposedly) coming from, with 28 meaning iTunes 12 for example. The endpoint's response format changes depending on the platform set. When setting a graphical client like iTunes, an HTML site will be returned that contains a script element which assigns the actual API return value to its.serverData. Some endpoints instead return data in a PLIST or JSON format (like 26 or 29).
We should try to get full lists of the possible values for each of these parameters.