D3 Community API Profile - Account and Hero ID?

API Discussion
I'm not a D3 player, but I am working on a wrapper for the D3 API. I was looking to see what kind of data is returned with the profile API call, but it looks like I need an account ("Battle Tag") and hero ID.

Is the battle tag of the account the 4-digit number that comes after our btag, and how do you find the hero ID? Is there any way to access dummy data? Thank you.
Well met!

09/04/2018 08:16 AMPosted by Lou

Is the battle tag of the account the 4-digit number that comes after our btag, and how do you find the hero ID?


Yes, the BattleTag includes the digits (e.g. Test-1234). The /profile/<battleTag>/ endpoint should include the profile's heroes, including id.

I hope this helps!
Thank you for the reply. How can I access hero IDs?
09/04/2018 10:45 AMPosted by Lou
Thank you for the reply. How can I access hero IDs?


You can use the profile API endpoint to get all the heroes for that account (for that region), e.g.:

https://us.api.battle.net/d3/profile/Test-1234/?apikey=<api key>

Join the Conversation

Return to Forum