A collection of variables, functions and endpoints the Steam website uses
g_sessionID Your Steam session ID
g_steamID Your Steam ID
g_ServerTime Steam server timestamp
g_eDiscoveryQueueType
g_bLoggedIn bool logged-in state
g_rgWalletInfo Wallet information
g_strCountryCode Your country code
g_strLanguage Your language
Soon....
These are cross-domain protected, so they will only work in a userscript etc
| appid | The badge ID |
| series | The card deck series |
| border-color | not sure what this is, set it to '0' |
| sessionid | Your g_sessionID |
{
"success": 1,
"rgDroppedItems": [ // List of drops recieved
{
"title": "",
"label": "",
"description": "",
"image": "",
"economy_hover_data": ""
}
],
"Badge": { // Leveled-up badge info
"image": "",
"title": "",
"xp": "",
"unlocked_time": 1482886723,
"game": ""
}
}| country | Your g_strCountryCode |
| language | Your g_strLanguage |
| currency | Your wallet currency |
| item_nameid | The item market ID |
| appid | This should equal 753 for most things |
| market_hash_name | hash name of market item |
| price_total | price for your order |
| quantity | number you would like to buy |
| currency | Your wallet currency |
| sessionid | Your g_sessionID |
| buy_orderid | The orderid returned when you make a buy order |
| sessionid | Your g_sessionID |
| buy_orderid | The orderid returned when you make a buy order |
| sessionid | Your g_sessionID |
| appid | App ID |
| sessionid | Your g_sessionID |
| appid | App ID |
| sessionid | Your g_sessionID |
| count | Number of comments you wish to retrieve, can be set to Number.POSITIVE_INFINITY to get all |
| start | Not sure what this is, seems to always be 0 |
| sessionid | Your g_sessionID |
| comment | Your comment text |
| count | Not sure what this is, seems to always be 6 |
| sessionid | Your g_sessionID |
{
"success":true,
"name":"Profile_<userid>_0",
"start":0,
"pagesize":"6",
"total_count": 0, // Total count of all comments
"upvotes":0,
"has_upvoted":0,
"comments_html: "", // HTML string of current comments page
"timelastpost":1482905415
}| gidcomment | The comment ID |
| start | Not sure what this is, seems to always be 0 |
| count | Not sure what this is, seems to always be 6 |
| sessionid | Your g_sessionID |
{
"success":true,
"name":"Profile_<userid>_0",
"start":0,
"pagesize":"6",
"total_count": 0, // Total count of all comments
"upvotes":0,
"has_upvoted":0,
"comments_html: "", // HTML string of current comments page
"timelastpost":1482905415
}
https://steamcommunity.com/my/ajaxaliases/
$J.post(g_rgProfileData.url + '/ajaxsetpersonaname', {'persona': 'doggo', 'sessionid': g_sessionID}).then(r => { console.log(r) })