Jump to content


Xbox LIVE API


  • Please log in to reply
6 replies to this topic

#1 JBlaze

JBlaze

    Major General

  • Administrators
  • 6643 posts
  • LocationFlorida, USA

Posted 21 June 2011 - 09:33 AM

Since the demise of MyGamerCard.net as well as Duncan MacKenzie's API for Xbox LIVE, developers like myself have had to find alternate means of getting data from the Xbox LIVE servers if they are not included in the XCDP group. This has lead to us having to screen scrape data from certain xbox.com pages.

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!

Follow me on Twitter! @RealJBlaze

Posted Image


#2 amiaturtle

amiaturtle

    Specialist

  • Members
  • 2685 posts
  • LocationCarson, California, United States of America.

Posted 21 June 2011 - 11:21 AM

And God said, "Come, let us go down, and there confound their language, that they may not understand one another's speech."
The Lord said, "What have you done? The voice of your brother's blood cries out to Me from the ground... A fugitive and a vagabond you shall be on the earth."

For God and the soldier we adore, In time of danger, not before! The danger passed, and all things righted, God is forgotten and the soldier slighted." - Rudyard Kipling

#3 mcvugh1983

mcvugh1983
  • Guests

Posted 21 June 2011 - 10:26 PM

Wow that's crazy.

#4 Psyman

Psyman

    Second Lieutenant

  • Members
  • 1443 posts
  • LocationBristol , England

Posted 22 June 2011 - 02:44 AM

i know not of what you speak
Posted Image
Posted Image

#5 amiaturtle

amiaturtle

    Specialist

  • Members
  • 2685 posts
  • LocationCarson, California, United States of America.

Posted 22 June 2011 - 11:14 AM

View Postmcvugh1983, on 21 June 2011 - 10:26 PM, said:

Wow that's crazy.
Scottie, why are you a guest now?
The Lord said, "What have you done? The voice of your brother's blood cries out to Me from the ground... A fugitive and a vagabond you shall be on the earth."

For God and the soldier we adore, In time of danger, not before! The danger passed, and all things righted, God is forgotten and the soldier slighted." - Rudyard Kipling

#6 Karthik Palanivelu

Karthik Palanivelu
  • Guests

Posted 29 October 2011 - 07:59 AM

Hi,
Can you please tell me where can i download this library or wrapper class?
Github link is not working now.

Thanks,
Karthik

#7 Sneak Technique

Sneak Technique

    Specialist

  • Members
  • 35 posts
  • LocationAmsterdam

Posted 02 February 2012 - 03:00 AM

View PostJBlaze, on 21 June 2011 - 09:33 AM, said:

Since the demise of MyGamerCard.net as well as Duncan MacKenzie's API for Xbox LIVE, developers like myself have had to find alternate means of getting data from the Xbox LIVE servers if they are not included in the XCDP group. This has lead to us having to screen scrape data from certain xbox.com pages.

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...20IE&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!

Www.LusoGamers.Com

Enjoy, Pretty Big Collection Of Gamercards