node-steamcommunity
node-steamcommunity copied to clipboard
Update inventoryhistory
Feature request In the past this might have been replaced by trade history, however it currently contains ALL inventory interactions, not just trades. Updating this would be a major help to data nerds like myself, I would attempt a pull request for it however my nodejs is awful.
If better support is added some things I've found out about this url is it has a daily request limit of 600 and takes parameters start_time and app[] filter. Example url: steamcommunity.com/my/inventoryhistory?start_time=1635143259&app[0]=440&l=english would get item histories for only tf2 before aprox. when this issue was created. g_historyCursor holds the next page time in {"time":1635066671,"time_frac":463000000,"s":"4243086703"} and is not included on the last page.
Using the load more button does not appear to trigger the daily request limit should someone find this on their research.
Here's a simple script to load the entire history although you're going to get a massive page if you don't stop it early:
if(document.getElementById("load_more_button") != null && window.getComputedStyle(document.getElementById("load_more_button")).display != "none" && window.getComputedStyle(document.getElementById("load_more_button")).visibility != "hidden"){
InventoryHistory_LoadMore();
window.scrollTo(0,document.body.scrollHeight);
}
}, 3000)
clearInterval(clear);
Command to stop it loading.
InventoryHistory_LoadMore()
's rate limit should be the exact same as the internal request it is making, namely:
https://steamcommunity.com/my/inventoryhistory/?ajax=1&cursor%5Btime%5D=1645472314&cursor%5Btime_frac%5D=723000000&cursor%5Bs%5D=4915201385&sessionid=xxx
Ah that would have been helpful (still is for the future); I gave up looking for that request since the script I had worked for my needs. Unless they changed the limit in the last 6 months the actual URL you visit has the previously mentioned rate limit, weird that it's separate.