AchievementID

A whole-number achievementID enumerates every achievement. It is the first field in the payload of an AchievementLink.
Achievements added to the game in later expansions typically have a larger value. For example: Northrend Dungeonmaster, Cataclysm Dungeon Hero and Pandaria Dungeon Hero have ids 1288, 4844 and 6925.
== As a payload ==
The following events provide achievementID in their payload:
* 
* 
* 
* 
* 
== As an argument ==
The following functions accept achievementID as an argument:
* - Returns detailed info about an achievement's criteria
* - Returns detailed info about an achievement's criteria
* - Returns a properly-formatted AchievementLink
* - Provides detailed information about an achievement (name, completion status and date, icon, etc.)
* - Returns the category to which an achievement belongs
* - Returns the number of criteria required to obtain this achievement
* - Returns information about an item rewarded for completing an achievement
* - Returns information about the previous achievement in a chain of related achievements
* - Returns information about the next achievement in a chain of related achievements
* - Returns a table listing all achievements which supercede the given one (ie, levels 70, 80, 90 and 100 all supercede reaching level 60)
* - Adds this achievement to the quest tracker
* - Removes this achievement from the quest tracker
== Example ==
local frame = CreateFrame("Frame");
frame:RegisterEvent("{{api|t=e|ACHIEVEMENT_EARNED}}")
frame:HookScript("OnEvent", function(event, arg1)
	if (event == "ACHIEVEMENT_EARNED") then
		print("Hurray! You earned " .. select(2,{{api|GetAchievementInfo}}(arg1)));
	end
end);
Possible result: "Hurray! You earned Outland Dungeonmaster"
== External links ==
Popular datamining websites also use the achievementID in the url to identify each achievement in the game.
For example, Outland Dungeonmaster has id 1284 and may be accessed using these links: