I'm currently trying display events from a Steam community group on a forum (running vBulletin 4.2.1). I've looked at the Steam API's and none of the ones I can find give much access to groups, the most they seem able to do is to display a members list.
Is there an API which allows you to retrieve steam group events? or is there another way to do this?
There is not an API for this (yet), but you are able to get this information via the XML that Valve makes available.
First, you need to know your group's
groupID64value. You can find this by examining the XML of a member of your group.Using Robin Walker as an example, we can look at his profile using this URL:
In that XML, you'll find that he is a member of several groups. Each of them have a line like this:
That value is what we need. That value is used in a URL like this to pull events by month
Where
$monthand$yearare numerical values (ie.1and2014for January, 2014)This will return XML that looks like this if there are no events for the month:
Or this for expired events:
Or this for upcoming events:
eventandexpiredEvents can be in the same XML and theeventCountandexpiredEventCountwill reflect the total number of each that appear in the XML.