Reputation: 798
I would like to have a list of Countries and their corresponding Codes used in iTunes, so that I can query them in iTunes API.
Thanks
Upvotes: 1
Views: 4677
Reputation: 5553
(Posting an answer to an 11-year-old question since I spent quite some time figuring this out recently.)
Apple has an internal web API to get all iTunes storefronts, including their IDs, country codes, and available languages. A dynamically updated list such as this one is useful since Apple onboards new countries to its cloud services from time to time.
https://itunes.apple.com/WebObjects/MZStore.woa/wa/availableStoreFronts
Do not open this URL in a web browser! If the user agent is a web browser, the server will return HTML that tries to open the iTunes app.
The server should return a property list file. For example, see here.
Upvotes: 0