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) {
There are usage examples in the project wiki if you need more information.
source share