XBox Live Gamercard API in ColdFusion

This post is more than 2 years old.

There isn't a real API for XBox Live, but I thought it would be fun to whip one up. This UDF is a bit ugly and needs to be cleaned. I'll release to CFlib once I've made it nicer. Right now it returns gamescore (nerd score!), a link to your gamer image, your last five games played, your XBox Live level, and a link to your XBox Live URL.

To get your data, you just pass in your XBox Live username:

<cfset info = getGamerCard('cfjedimaster')> <cfset info2 = getGamerCard('boyzoid')>

I've attached the UDF and test code to this blog entry. Hopefully Microsoft will come to their senses and create a real API soon so we can avoid all this silly string parsing.

Download attached file.

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate for HERE Technologies. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA