EnelGy Posted May 8, 2021 Report Share Posted May 8, 2021 (edited) For the first request I make usual request $steam = "http://steamcommunity.com/inventory/" . $steamid . "/440/2?l=english?count=1000"; $json = file_get_contents($steam); $data = json_decode($json, true); Then I get more_items = 1; last_assetid=123 and I want to do another request which starts with the last_assetid. I know that next $steam should have ?start_assetid=123, but don't have any idea how Would I do it to keep the old content. Please suggest me Edited May 8, 2021 by EnelGy Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted May 11, 2021 Report Share Posted May 11, 2021 You would want to use a loop to request inventories until Steam no longer reports that more items are available, and use array_merge to combine the result pages. Quote Link to comment Share on other sites More sharing options...
EnelGy Posted May 17, 2021 Author Report Share Posted May 17, 2021 thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.