Just want to highlight a limitation of the Query game API:
This data is only available for ladder games, tournament games, games created by the Create game API, or games that you played in.
Given this, the API might not perfectly fit your needs (e.g., if your friends are non-Members and created many of the game you played together in).
If you're just interested in the games that you have in common and your end-status, you might be able to get that data more efficiently off the Common Games page: e.g.,
https://www.warzone.com/CommonGames?p=31105111944 (replace the ID at the end with the profile ID of one of your friends). You can aggregate that data and get all the games you have in common with one or more of your friends, as well as your end-state in them. If you get your friends to do the same, you can get all the common games and the end-state for everyone in your friend group when the game finished.