originally posted in:BungieNetPlatform
View Entire Topic
How would one get a list of all armor and weapons in destiny in a JSON response which would include stats, type, bucket, rarity and icons? I am having trouble figuring this out with the GetDestinyExplorerItems call.
-
Take a look at the Explorer/Items endpoint help docs, https://www.bungie.net/platform/destiny/help/HelpDetail/GET?uri=Explorer%2fItems%2f While you can't get everything in one call, you can use the page param like Scapegoat uses. Also, the buckets param is very helpful and allows you to pass in all the buckets you want, so, http://www.bungie.net/Platform/Destiny/Explorer/Items/?buckets=PrimaryWeapon,SpecialWeapon,HeavyWeapon&count=500&definitions=true would get you all the weapons, in groups/pages of 500 items each. so you'd want to add &page=1/&page=2 to each subsequent call until you have all the items. As far as the stats, perks, etc... make sure you add &definitions=true to get the definitions with your calls so you'll know that Response->data->items->YourItem->statHash: "12345" links up with Response->definitions->stats->statHash "12345" and now you know that gun has a stat value for Stability or Damage or whatever