Get steamID by user nickname

前端 未结 4 1715
被撕碎了的回忆
被撕碎了的回忆 2021-02-04 14:02

Is it possible to get user\'s steamID by his nickname? I didn\'t find solution in steam API documentation. The only one thing that I found is an old post on http://dev.dota2.com

4条回答
  •  执笔经年
    2021-02-04 14:31

    Have you read over this from the Steam Web API?

    https://developer.valvesoftware.com/wiki/Steam_Web_API#GetPlayerSummaries_.28v0002.29

    It has an example of using a steam profile url to return the users Steam ID, also some other arguments to gather other information.

    If you read down a bit from there it states that "Returns the friend list of any Steam user

    Example URL: http://api.steampowered.com/ISteamUser/GetFriendList/v0001/?key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&steamid=76561197960435530&relationship=friend"

    • you can add the arguments for profile information to be returned such as the Steam ID providing the profile is public.

提交回复
热议问题