Get steamID by user nickname

Is it possible to get a parody of user passwords by their nickname? I did not find a solution in the steam API documentation. The only thing I found is an old post on http://dev.dota2.com :

You can use this to search the Dota2 API directly using the player_name GetMatchHistory option. Then you can find their 32-bit identifier in the list, and then convert it to a 64-bit ID.

But now the GetMatchHistory function GetMatchHistory not have a player_name parameter. Now this requires account_id .

So how do websites like http://dotabuff.com/search?q=Dendi get this information?

+6
source share
3 answers

you can use

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

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

You cannot get the steamID from someone else's current alias, because aliases can change and are not unique.

+8
source

Using PHP and the Steam Condenser project, you can do this.

 require_once('steam/steam-condenser.php'); $playername = 'NAMEOFPLAYER'; try { $id = SteamId::create($playername); } catch (SteamCondenserException $s) { // Error occurred } echo $id->getSteamId; 

There are usage examples in the project wiki if you need more information.

+1
source

Have you read this from the Steam Web API?

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

It has an example of using ur password profile to return the Steam Steam identifier, as well as some other arguments for collecting other information.

If you report a little on this, it states that "Returns the list of friends of any Steam user

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

  • you can add arguments for the profile information that will be returned, for example, the Steam identifier that makes the profile public.
-6
source

Source: https://habr.com/ru/post/955487/


All Articles