Retreives information about a battle pet from its GUID


See also Pet journal functions.

Signature:

speciesID, customName, level, xp, maxXp, displayID, isFavorite, petName, petIcon, petType, creatureID, sourceText, description, isWild, canBattle, tradable, unique = C_PetJournal.GetPetInfoByPetID("petID")

Arguments:

  • petID - Pet ID (string, guid)

Returns:

  • speciesID - Species ID (number)

  • customName - Name which the player has given the squirrel via rename (string)

    • name - Name which the player gave the pet
    • nil - The player did not name the pet

  • level - Level of the battle pet (number)

  • xp - Amount of experience points the battle pet has (number)

  • maxXp - Maximum experience points the battle pet has (until level up?) (number)

  • displayID - ? (number)

  • isFavorite - Is the pet set as a favourite in the pet journal? (boolean)

  • petName - Generic name for the pet (ie. the name its mother gave it, not the one the player gave it) (string)

    • Lil' KT - The Lil' KT pet
    • Squirrel - Your average garden variety squirrel

  • petIcon - The path to the texture which should be used for display of this pet (e.g. on action buttons) (string)

  • petType - The ID of the battle pet family. (number)

    • 1 - Humanoid
    • 2 - Dragonkin
    • 3 - Flying
    • 4 - Undead
    • 5 - Critter
    • 6 - Magic
    • 7 - Elemental
    • 8 - Beast
    • 9 - Aquatic
    • 10 - Mechanical

  • creatureID - NPC Creature ID for the pet (number)

  • sourceText - Text describing where the pet may be obtained for use in the tooltip. (string)

    • example - |cFFFFD200Pet Battle: |rAmmen Vale

  • description - Description for use in the tooltip. (string)

  • isWild - Is this pet obtained/obtainable in the wild? (boolean)

  • canBattle - Can this pet participate in pet battles? (boolean)

  • tradable - Can this pet be caged and traded? (boolean)

  • unique - Is the pet unique? The player may only have one of a unique pet. Examples are pets obtained from the battle.net store (e.g. Cinder Kitten) and pets obtained through achievements (e.g. Brilliant Kaliri) (boolean)