Get steamID by user nickname

前端 未结 4 1729
被撕碎了的回忆
被撕碎了的回忆 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:26

    You can use

    GET http://api.steampowered.com/ISteamUser/ResolveVanityURL/v0001/

    to get the SteamID from the custom URL of a Steam Profile. See http://wiki.teamfortress.com/wiki/WebAPI/ResolveVanityURL

    You can't get the steamID from someone's current nickname because nicknames can change and are not unique.

提交回复
热议问题