Battlelog is very useful but sometimes you want to have stats for your own site.
With that in mind I’ve come across 2 APIs that can be used to talk to EA’s servers:
- bf2s.com have an API for Battlefield 2 that is the same as the one for bfs3.com.
- The bf3stats.com api is explained here and looks fairly easy to work with.
- There’s also a WordPress plugin that uses the bf3stats.com api to power a widget.
I haven’t tried any of the above but I will be downloading the WordPress plugin, hopefully I can submit a few patches to the author if I can as we’ll need shortcode support if it’s to work on the B2C site.
5 replies on “Battlefield 3 stats for your own site?”
I wrote a plugin for bf2s.com way, way back in the day: http://wordpress.org/extend/plugins/battlefield-2-stats/
It was one of my early plugins. 🙂
There’s also signature images: http://forums.bf2s.com/viewtopic.php?id=144340
Fun visiting BF2S again. I was a moderator there back in the day (and apparently still am!).
Nice, I have yet to look at this bf3 one. Maybe some night this week…
Glad you found this Donncha, I plan on changing the code so that I can grab a list of players and output it in a table format. I haven;t really done WP plugins before, but I took a quick 5 minute look and it seems simple to customize for my site.
Doing a more generic shortcode approach looks to be work though, if you do that, I’d love to use that instead.
WP does rule.
I wrote a stats page using the bf3stats API that can be used by clans to track their members: http://bf3stats.grewe.ca. You can find the project, some screenshots and the source here: http://www.grewe.ca/projects/clanstats/