You can use the steam API to achieve what you are wanting, depending on how you want to do it.
Here is the code to do it in C# assuming you know how to use it,
Code:
using System.Net;
using System.IO;
public class Form1
{
private void button1_Click(object sender, EventArgs e)
{
string steamId = "1234567890";
string apiKey = "YOUR_API_KEY";
string url = "https://api.steampowered.com/IEconItems_730/GetPlayerItems/v0001/?key=" + apiKey + "&steamid=" + steamId;
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
string responseString = new StreamReader(response.GetResponseStream()).ReadToEnd();
Console.WriteLine(responseString);
}
}
Obviously you need your own API key from steam.
I also used CS:GO as the appid (730)
If using PHP you can achieve the same with the following code
Code:
<?php
$steamId = "1234567890";
$apiKey = "YOUR_API_KEY";
$url = "https://api.steampowered.com/IEconItems_730/GetPlayerItems/v0001/?key=" . $apiKey . "&steamid=" . $steamId;
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => $url,
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>
Remember that in PHP you need to have cURL extension enabled in your server, if you have any trouble check with your hosting provider.