How to display in game character data on your website

I was just curious on understanding the concept. If you play 360 and make your own avatar and if you go on the xbox site there’s your avatar with the most recent updated changes that you made to him/her. or even on a PC game like World of Warcraft, I’ve seen sites pull in-game character data and displayed it as well. How does this concept work? I’m assuming it could be done in PHP. Thanks for any info.

If there is no some kind of API for that, you will need to fetch player profile page into PHP, parse relevant data from fetched (HTML) page and display it on your website.

I’m not 100% sure but I think this is possible through an API. I have seen some unofficial 360 fan sites showing profile data and player trophies.