Keep in mind that when you make a request to an API, you are just going to get a big dump of numbers. In this case, they are all stored in a JSON document. Here is a tutorial for how to get to this data in Python: https://rapidapi.com/blog/how-to-use-an-api-with-python/
I am not sure what the reason is for the problem you have pointed out, but it is possible that you are correct. For that reason, and because it is likely in a cleaner format, I think this API may be a better source to use: https://aoe2.net/#api
I managed to get things working. I can get some data and make it readable (convert text string to some tables). I just notice something: Player Match History in aoe2.net contains lots of statistics about the players, lobby settings, civs, … It seems like it does not contain info about how win and how lose?!
Not sure about aoe2.net data. Might want to check leaderboard statistics. There might not be anything that tracks whether individual matches are won. That might be on AoE’s side, I have no idea.
@AgeInsiders: could you provide a link to some documentation of said API or a full example request? Is any additional authentication data in the header required?
I assume that GetGameServerPlayerStatsForGame might be the one being used, but unfortunately I could not confirm it yet since I currently don’t have a publisher api key. Anybody has insight into this?
Also I could not find any example response and there is not enough documentation to find out what the API actually does.
I’m trying to build something here with this: https://aoe.pira.dev
If you put your profile ID in that page you will get some stats (your profile ID can be obtained from aoe2 .net, I’m still trying to get some sort of search functionality).
Any more info on more endpoints or where does aoe2 .net get’s it’s data would be awesome, thanks!
And another question: Does anybody now, how to interface with the game in order to join a lobby?
On aoe2.net you have the join match button, so it is possible somehow…
The Endpoints listed above still work; also to join the lobby you can just use the “copy ID” button in a lobby to get the link you can paste into a browser.
Do I need a sort of auth to get access to the api? It seems to work for some and for some not. Would be nice to have access to it so people can build more tools, since aoe2.net is already down for several days.