Get the two-letter abbrevation for the region the player is currently connected to; one of "US", "EU", "KR", "CN" or "TW". Returns nil on PTR and Beta realms.
Get information about a realm by name; if no region is provided, the player's current region will be assumed.
Get information about a realm by ID.
Get information about the realm the given player GUID belongs to.
Get information about the realm the given player unit belongs to.
All of the above methods return the following values:
id - the numeric unique ID of the realm
name - the name of the realm
api_name - the name of the realm without spaces, as seen in chat etc.
rules - one of "PVP", "PVE", "RP" or "RPPVP"
locale - the official language of the realm
battlegroup - the name of the realm's battlegroup
region - one of "US", "EU", "KR", "CN" or "TW"
timezone - for realms in the US region, a string describing the realm's time zone, eg. "PST" or "AEST"
connections - for connected realms, a table listing the IDs of connected realms
latin_name - for Russian-language realms, the English name of the realm
latin_api_name - for Russian-language realms, the English name of the realm without spaces
Note that the realm IDs contained in the GUIDs of player characters on connected realms indicate the realm hosting the connected realm group, which may not be the realm that character actually belongs to. Use GetPlayerInfoByGUID to get the real realm name, or use the :GetRealmInfoByGUID or :GetRealmInfoByUnit methods provided by LibRealmInfo.
Data for Korean realms?
If you have an active Korean account, please log into the Battle.net website, go to the Paid Character Transfer page, select a character, save the HTML source of the page (right-click, view source, save) and attach it to a ticket.
Connection data for Chinese and Taiwanese realms
If you can read Chinese, please locate the blog or forum post where Blizzard lists the connected realms for one or both of these regions and link to it in a ticket.