originally posted in:BungieNetPlatform
Hi Guys. I have decided to create an app like destinytrialsreport but natively for iOS. I have found a few endpoints where I can search up a user and find all of its characters and show them. And when you tap on a character it shows the last stats for ToO. Unfortunately I have a hard time finding endpoints where I can find the current/last fireteam the user played with and other useful information that would be good to show in the app. Do you guys know what those endpoints are? I tried to search the wikia but I can't find them al
-
Edited by Steffwiz: 1/27/2016 6:03:46 AMHi! I'm one of the developers of DestinyTrialsReport. Did you know we're open source? You can look at our code on GitHub here: https://github.com/DestinyTrialsReport/DestinyTrialsReport. What we do on our front-end, and what would be easiest for you to implement in your app, is query the Stats/ActivityHistory endpoint for their last Trials match. Trials is mode 14, and you'd only need the latest match so you could limit it to 1. At this point, you'd have the instanceId of their latest Trials match and you could query the PGCR. The PGCR would contain the displayNames and membershipIds of everyone in their latest match. This is how we autofill on DestinyTrialsReport. It's important to note, though, that the ActivityHistory endpoint is changing soon. If the user has privacy on for that category, you won't be able to get any data for them on that endpoint. So in turn, you also wouldn't be able to obtain their last match. As @VThornheart said, we also process PGCR data in realtime. We process sometimes up to 10 million matches per day. We don't yet use this data for this specific purpose just yet, but that is in the works eventually.
-
If you're looking for specifically what the last fireteam you played with was for Trials, we do not have an endpoint that directly provides that. What we do have is "PGCRs" - Post-game carnage reports. These are the full details of individual games, and through it you can infer Fireteam data and stats. The DestinyTrialsReport team does thorough PGCR inspection in order to produce their data: it's been a pretty monumental undertaking for them, as in order to get that data you need those PGCR-level details pivoted by character rather than by game. Essentially they had to (and continue to have to) process every game that passes through the system. You should speak with them, they might be interested in joining forces on such a project: and if so, you could leverage what I imagine must be an absolutely massive pivoted dataset.
-
Posting with a public tag such as #Help removes your post from your group and places it in the public section. Removing the tag will put it back into your group.