<< Back to Programming Forum   Search

Posts 1 - 6 of 6   
Getting personal game history: 2020-09-25 06:00:54

DARKWING
Level 57
Report
Hi

We're a group of friends that like to play together - I've looked at the API to see if I can pull our game history, but I am not sure that I

1) Can get a list of my own game ID's
2) Can I pull just game players and status for each player in that game?

Thanks.
Getting personal game history: 2020-09-25 06:23:27


JK_3 
Level 63
Report
for 2) see https://www.warzone.com/wiki/Query_game_API

for 1) you prob need to just scrape this data of your https://www.warzone.com/MultiPlayer/PastGames page, I dont think you can get this from the API
Getting personal game history: 2020-09-25 06:50:13


l4v.r0v
Level 42
Report
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.
Getting personal game history: 2020-09-25 07:07:29


JK_3 
Level 63
Report
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 they played together, he played in it as well, so he can fetch the data from the API using his account

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.
Thats a good point, didnt think of that yet
Getting personal game history: 2020-09-25 07:28:25


TBest 
Level 60
Report
If you are going to scrape, do it from the change favorite game page I think. On phone so I can’t check right now, but I believe all the IDs are there easy to get from one page
Getting personal game history: 2020-09-25 07:31:03


JK_3 
Level 63
Report
Posts 1 - 6 of 6