XBox live Achieve API

I am relatively new to XBox development and would like to know how best to start learning about the APIs provided by XBox Live. In particular, about the achievements of the player and the game, information about the player, other games in which they play - these kinds of things.

I saw https://xboxapi.com and although itโ€™s good, I donโ€™t know if it will be detailed enough for what I need.

Similarly, the XBox community development program ( http://www.xbox.com/en-US/developers/home ) seems to be very useful, but there is a lot to do.

I hope some kind-hearted developer with some experience can give some advice in the right direction to help me in my way

Thanks,

+7
source share
3 answers

Based on your comments, the Xbox API will be the most appropriate API for your application.

You can check the latest games of users with an HTTP GET request:

https://xboxapi.com/profile/Focus+Jar 

This will return a JSON array where you can check if they have a game in which you would like to track your progress with this GET request:

 https://xboxapi.com/achievements/1096157387/Focus+Jar 

Using this method, you can use JavaScript or PHP, and it is quite effective. I used it before in the app. The only drawback to this is that the XBOX API can sometimes be quite slow, and for this I suggest caching some data from GET requests.

Hope this helps you more.

Update Now you need an account to use this API.

+6
source

As far as I remember, the Xbox Community Developer Program doesnโ€™t have much information. Initially, I wanted to access this information, but the application process takes a very long time, and they still have not received an answer. I applied several years ago. I don't know if they include anyone else in the program at this time. Therefore, I took matters into my own hands and began reverse engineering various ways of obtaining the necessary information.

I started by writing a scraper in PhantomJS, which sends all the required fields to the login form and loads the HTML / JSON after logging in. This worked for a while, but as I built it, it downloaded the entire profile and saved it all to an XML or JSON file. For people with 100+ games, it was very slow. Soon after, I started looking for other ways to get into xbox.com.

The developer is xboxapi.com, djekl, and I have been good friends from a few years ago. Cleaning is effective, but it is also intimidating, because if something changes in HTML / JSON, things break. I went through several redesigns of my Xbox cleanup library.

You will need an HTTP library that can collect cookies from responses and send them back in the next request. In PHP, cURL is pretty good at that. I noticed that in C # the built-in HTTP library does not correctly store cookies between requests, so you need to either manually control the cookie header or use the .NET wrapper for libcurl, such as LibCurl.Net.

I wish you good luck in your project. It is a pity that we cannot get an open API for this data from Microsoft. Perhaps even a subscription-based model will work if they are concerned about the costs that carry thousands of API requests per hour from various applications.

+4
source

I was working on my own API for Xbox One and 360, I will soon offer some beta access keys, if you are still looking for this type of data or just want to talk about it, please feel free to jump over the gitter channel linked below.

Chat: https://gitter.im/playr-io/one

+1
source

All Articles