Are you meaning, how to get
achievement information?
and
GetAchievementCriteriaInfo
In Blizzard_AchievementUI.lua probably start at:
Code:
function AchievementStatTemplateMixin:Init(elementData)
You'll see where it's setting header text (if elementData.header) else the stat name text and quantity.