Note that if you only need to know which realms are connected to the player's current realm, you can just use the GetAutoCompleteRealms() API function instead of this library. If you only need to know which region the player is currently logged into, use the GetCurrentRegion() API function.
Data for Korean realms?
If you have an active Korean account, please see this forum post. If you don't know how to run the script provided there, you can just post the whole HTML source of the relevant page (right-click > view source > save, then attach the file to your post).