Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update inventoryhistory #279

Open
jh34ghu43gu opened this issue Oct 25, 2021 · 3 comments
Open

Update inventoryhistory #279

jh34ghu43gu opened this issue Oct 25, 2021 · 3 comments

Comments

@jh34ghu43gu
Copy link

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.

@jh34ghu43gu
Copy link
Author

jh34ghu43gu commented Feb 26, 2022

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.

@Revadike
Copy link
Contributor

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

@jh34ghu43gu
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants