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
groupID64
value. 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
$month
and$year
are numerical values (ie.1
and2014
for 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:
event
andexpiredEvent
s can be in the same XML and theeventCount
andexpiredEventCount
will reflect the total number of each that appear in the XML.