Main article about WebAPI.
GET http://api.steampowered.com/ISteamUserStats/GetNumberOfCurrentPlayers/v1