For inventories with more than 2500 items (backpack.tf's card swap bots, mainly), it takes multiple page loads to fully download the inventory.
Current URL format:
http://steamcommunity.com/trade/STEAMID/foreigninventory/?sessionid=SESSIONID&steamid=STEAMID&appid=APPID&contextid=CONTEXTID
If there is a boolean value named more in the response, there is more to load.
The integer value to add to the request is available under the key more_start, which is a multiple of 2500.
So the request then looks like this:
http://steamcommunity.com/trade/STEAMID/foreigninventory/?sessionid=SESSIONID&steamid=STEAMID&appid=APPID&contextid=CONTEXTID&start=MORE_START
Figure out the best way to load the rest of the inventory from here.
For inventories with more than 2500 items (backpack.tf's card swap bots, mainly), it takes multiple page loads to fully download the inventory.
Current URL format:
http://steamcommunity.com/trade/STEAMID/foreigninventory/?sessionid=SESSIONID&steamid=STEAMID&appid=APPID&contextid=CONTEXTID
If there is a boolean value named
more
in the response, there is more to load. The integer value to add to the request is available under the keymore_start
, which is a multiple of 2500.So the request then looks like this:
http://steamcommunity.com/trade/STEAMID/foreigninventory/?sessionid=SESSIONID&steamid=STEAMID&appid=APPID&contextid=CONTEXTID&start=MORE_START
Figure out the best way to load the rest of the inventory from here.