Assuming this is a RESTful API[1] then you need to make a HTTP GET, POST, PUT, or PATCH request to that URI to retreive or alter the resource (the concept of a "resource" is abstract is REST).
In JavaScript you use AJAX, which is shorthand for the built-in XMLHttpRequest
object which makes HTTP requests for you. Using libraries like jQuery can further simplify this for you:
var xhr = new XMLHTTPRequest();
xhr.addEventListener("load", function() {
console.log( this.responseText ); // got response, do processing here
});
xhr.open("GET", "http://api.steampowered.com/ISteamUserStats/GetUserStatsForGame/v0002/?appid=730&key=<<KEY>>&steamid=<<PROFILEID>>");
xhr.send();
[1]The endpoint you posted is not strictly RESTful because the resource path itself contains a verb: GetUserStatsForGame
, if it were fully RESTful then the URI should look like this: /ISteamUserStats/Games/{gameId}/
, but I digress.