last.fm

What's South Korea's country name in API?


I am using Last.FM API, when I try geo.getTopArtists(Get the most popular artists on Last.fm by country), I need to input a parameter :

country (Required) : A country name, as defined by the ISO 3166-1 country names standard. 

Then I checked ISO 3116-1, and found South Korea's name is Korea, Republic of but it doesn't work. Then I tried korea, southkorea,koreaofrepublic ,all failed. What should I input?

http://ws.audioscrobbler.com/2.0/?method=geo.gettopartists&country=korea&api_key=aa652ac51995d952d83d12093d25d9d9&format=json

Solution

  • enter image description here

    enter image description here

    It should be ISO 3166-1 country name standard .

    https://en.wikipedia.org/wiki/ISO_3166-1