Skip to main content

Forums / Support / Halo API Support

How Do You Get If You Won Or Lost With The API?

OP MarkOwnsUrFace

I'm not seeing how you pull out if it was a victory or a defeat with the API. Can anyone tell me? I'm using C#.
Hi there! Are you trying to do this for Halo 5 or Halo Wars 2?

Assuming this is for Halo 5, you can tell in both the Halo 5 - Player Match History Endpoint or the Halo 5 - Match Result - Arena Endpoint (or the other flavors - Custom or Warzone), you can determine what team the player was on and then check if the team's rank was 1 (which indicates that the team came in first place and therefore won). Be careful about ties though!
Thank you. I appreciate it.