API:GetCurrentTitle

Returns the ID of the activated Title GetCurrentTitle

Returns
Title ID

Example
/script DEFAULT_CHAT_FRAME:AddMessage(GetCurrentTitle);

Returns the current Title ID.