0

I got this to work on a smaller Steam group, but I'm trying to run it on a larger steamgroup and it eventually gives me a 504 timeout error. Am I missing something? Or would this be a server fix I would need to do?

<?php 

 $group = simplexml_load_file('http://steamcommunity.com/groups/revgame/memberslistxml?xml=1');

    foreach ($group->members as $groupinfo) {
        $members = $groupinfo->steamID64;
    }

    foreach ($members as $m) {
        $memberinfo[] = json_decode(file_get_contents('http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=APIKEY&steamids=' . $m),true);
        $avatar = $mi['response']['players']['0']['avatar'];
        echo '<img src="'.$avatar.'" />';

            }

    ?>
Riva
  • 59
  • 1
  • 7
  • or maybe you're being throttled because you're pounding on the server too fast, retrieving each member page? – Marc B Jul 16 '15 at 17:02
  • 1
    That's what I'm wondering, if theres a better way to get large amounts of data from each player without having to call it 150 times. – Riva Jul 16 '15 at 17:06
  • 1
    I know this is an old post, however the steamids query string takes comma delimited list , up to 100 ids i.e &steamids=7806060206,702402104,502150215 – mt025 Apr 18 '18 at 03:42

0 Answers0