1. There is no such thing as a "pending" ban or Steam admin. Anyone threatening your account is a scammer trying to scare you. Read more.

Suggestion: Multiple Users Per Query

Discussion in 'SteamRep API Discussion' started by Enstage, Sep 2, 2015.

  1. Enstage

    Enstage SteamRep Admin Partner Community Donator - Tier V

    Messages:
    4,705
    Steam:
    STEAM_0:1:52569926
    Is it possible to implement the ability to return results for multiple SteamIDs per query, similar to how the Steam API works, for example...

    http://steamrep.com/api/beta3/reputation/76561197971691194,76561198065405581

    ...would return...

    HTML:
    <steamrep>
        <user>
            <steamID32>STEAM_0:0:5712733</steamID32>
            <steamID64>76561197971691194</steamID64>
            <steamrepurl>http://steamrep.com/profiles/76561197971691194</steamrepurl>
            <reputation>
                <full>REDDIT ADMIN,SR ADMIN,SR DONATOR</full>
                <summary>ADMIN</summary>
            </reputation>
        </user>
        <user>
            <steamID32>STEAM_0:1:52569926</steamID32>
            <steamID64>76561198065405581</steamID64>
            <steamrepurl>http://steamrep.com/profiles/76561198065405581</steamrepurl>
            <reputation>
                <full>SR DONATOR</full>
                <summary>none</summary>
            </reputation>
        </user>
    </steamrep>
    
    I believe the Steam API allows up to 100 different IDs.

    Thanks!
  2. SilentReaper(SR)

    SilentReaper(SR) Retired Staff

    Messages:
    11,991
    SteamRep Admin:
    STEAM_0:0:89705646
    No wonder the Steam API is so slow....

    Our API is been optimized for a long time for individual queries...
  3. Enstage

    Enstage SteamRep Admin Partner Community Donator - Tier V

    Messages:
    4,705
    Steam:
    STEAM_0:1:52569926
    I don't believe this change would affect the speed of the single query. Just check if the length of the input is 17 (SteamID64 length), if so, then just run what you already have, if not then run the code for multiple SteamIDs.