API C PetJournal.GetPetInfoByItemID

Retrieves information about the battle pet species taught by the specified item.

name, icon, petType, creatureID, sourceText, description, isWild, canBattle, tradeable, unique, obtainable, displayID, speciesID = C_PetJournal.GetPetInfoByItemID(itemID)

Arguments

 * itemID : Number - an item ID

Details

 * Unlike many other item-related API functions, this function only accepts an item ID; passing an item link will raise an error. However, the item ID may be a string rather than a number.