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.
source share