Hi,
I've been working with the Blizzard API for my personal WoW helper tool, but I have found no way to get the breed of pets from there. I don't know if this is the right place to ask, but Blizzard has been no help at all. Would you be able to tell me if you get it from the API? I'm not looking for your secrets, but just if that's the way you do it so that I know I'm on the right path. Thank you.
Pet Breeds from the API
Re: Pet Breeds from the API
Battle pet breeds aren't "officially" part of the WoW battle pet data, so there aren't any API calls related to them. The only way to determine a pet's breed is by math. If you want to get into the details, the logic in the BattlePetBreedID addon is coded well, so it's easy to read.
Re: Pet Breeds from the API
Thank you for the reply. I use BattlePetBreedID in game, so I'll poke around in there. My main concern was getting what breeds are available for a pet. Like Yipper is only available as a H/P breed, but an Abyssal Slitherling is available in multiple breeds (P/P, S/S, P/S, etc). I guess places like here and WoWhead are just getting the info from in the game?Cysgodi wrote: ↑February 23rd, 2025, 10:34 amBattle pet breeds aren't "officially" part of the WoW battle pet data, so there aren't any API calls related to them. The only way to determine a pet's breed is by math. If you want to get into the details, the logic in the BattlePetBreedID addon is coded well, so it's easy to read.
Re: Pet Breeds from the API
That's actually not correct. Breeds are part of WoW. unfortunately they are not provided in the game API. However you can obtain them through the profile API. This is how Xu-Fu, Wowhead, and I guess WarcraftPets too, are getting them.Cysgodi wrote: ↑February 23rd, 2025, 10:34 amBattle pet breeds aren't "officially" part of the WoW battle pet data, so there aren't any API calls related to them. The only way to determine a pet's breed is by math. If you want to get into the details, the logic in the BattlePetBreedID addon is coded well, so it's easy to read.
But it's correct that you can calculate the breed if you have the base stats and the in-game values (health, power, speed, quality, level, and wild status).
Re: Pet Breeds from the API
Oh neat! I must not have dug deep enough into the Blizzard API docs to find it, so I assumed that it was hidden like in the in-game APIs. Thanks for the correction!
Re: Pet Breeds from the API
Mutanis, thank you for the reply. Which profile endpoint will give me that data? I tried Profile -> Character Pets Collection Summary and that will give me the breed id, but only for pets I've collected on my account. Example, the data returned will tell me that I have an H/B version of the Antoran Bilescourge, but that's it; it doesn't show me all the other possible breeds for that pet. Profile -> Account Pets Collection Summary returns the same data as the pet collection summary, but I don't have to pass realm and character name (I guess this was needed back when battle pets were character specific).Mutanis wrote: ↑March 4th, 2025, 9:07 amThat's actually not correct. Breeds are part of WoW. unfortunately they are not provided in the game API. However you can obtain them through the profile API. This is how Xu-Fu, Wowhead, and I guess WarcraftPets too, are getting them.Cysgodi wrote: ↑February 23rd, 2025, 10:34 amBattle pet breeds aren't "officially" part of the WoW battle pet data, so there aren't any API calls related to them. The only way to determine a pet's breed is by math. If you want to get into the details, the logic in the BattlePetBreedID addon is coded well, so it's easy to read.
But it's correct that you can calculate the breed if you have the base stats and the in-game values (health, power, speed, quality, level, and wild status).
Basically, I'm trying to build a tool for myself that I can easily search (like this site), but I want it to spit out the 3 breeds I want (I have to have 3 battle pets of every pet to satisfy my OCD) to where I can search by pet or zone. Like if I'm currently in The Storm Peaks in Northred, I can select that zone and it will spit out a list of pets in that zone and show me only the breeds that I'm missing based on what breed I would want (that I can program in). This is the part I can't do on a site like this.