I have written a nice class that scrapes data from xbox.com for a given gamertag, and returns the data in JSON or XML format. It also caches the responses for 1 hour.
You can find the source for this on GitHub: http://github.com/JB.../Xbox-LIVE-API/
To call the API if you want to host it on your own server, I have also provided a wrapper class. Simply instantiate the wrapper like so:
<?php
$response = new XboxWrapper();
$response = $response->getGamerInfo('{gamertag}');
?>
To get an idea of what info this API will return, here are a few samples:
http://gamingbrother...Z IE&format=xml
http://gamingbrother...lson&format=xml
http://gamingbrother...lage&format=xml
For an explanation of what each element will return, check this out: http://community.xbo...d-api-48.0.html
Included you will find a gamercard generator as well. Have fun!
















