Forums / Support / Halo API Support

Noob question: Halo Wars 2 and the info in the API

OP nastybananass

Using the API is it possible to see how many times a certain player has beat another player. Thank you.
HI nastybananass! This information isn't available directly via the API. However, you can calculate it yourself! If you retrieve Match IDs via the "Stats - Halo Wars 2 - Player Match History" endpoint you can then use them to retrieve Match Results via the "Stats - Halo Wars 2 - Match Result" endpoint. The Match Result contains the players that were in the match and the outcome of the match, which should be sufficient for aggregating player matchups.
Thank you Respected Sir!
So basically you need to retrieve all matches 25 at a time since it's the max. Afterwards, you go through every match and use MatchId to retrieve players. Then you can sort out what players you faced and generate your stats locally. Does this sound right Respect Sir? With a 10 call per 10 second rate, this could take a few minutes but it sounds possible haha.
Mmmewtwo wrote:
So basically you need to retrieve all matches 25 at a time since it's the max. Afterwards, you go through every match and use MatchId to retrieve players. Then you can sort out what players you faced and generate your stats locally. Does this sound right Respect Sir? With a 10 call per 10 second rate, this could take a few minutes but it sounds possible haha.
That's the gist.

Production keys get a bump to 200 requests in 10 seconds. You'll clear over 1000 games a minute at that rate.