EnelGy Posted May 8, 2021 Report 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
Dr. McKay Posted May 11, 2021 Report 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
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.