Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
The rate limits are unknown, i doubt anyone would be able to give you a clear cut answer in regards to this, so my suggestion is to actually make a check when you recieve your error and then set a delay to check when your ip ban&cooldown is gone.
additionally i can see you are targeting the community items and using the old endpoint as you do would probably not be advised as it essentially means more requests to that endpoint when a new endpoint gives you the ability to do it less on really large inventories (2k+ items ).
old endpoint : /inventory/json/753/6
new endpoint: /inventory/<steamid>/753/6
https://steamcommunity.com/inventory/76561198049216736/753/6?l=english&count=5000
"total_inventory_count":400,
"success":1,
"rwgrsn":-2}
so this works well on small inventories and the old endpoint would certainly also do its job however on mine you can tell the difference:
https://steamcommunity.com/inventory/76561198034957967/753/6?l=english&count=5000
"more_items":1,
"last_assetid":"5285663602",
"total_inventory_count":10230,
"success":1,"rwgrsn":-2}
so where you would have to make, i believe, 6 requests with the old endpoint you could be making 3 with the new.
and to make sure there is no more "pages"/"items", you can either check the total inventory count and see if it is between a range and set a number for it, such as in this case 3 and have the script loop this 3 times.
or the simpel way and check if the json has either the property "more_items" or "last_assetid" as it is being removed from the json if there are less than 5000 items in the json.
https://steamcommunity.com/inventory/76561198034957967/753/6?l=english&count=5000&start_assetid=5285663602
"more_items":1,
"last_assetid":"8159788449",
"total_inventory_count":10230,
"success":1,"rwgrsn":-2}
https://steamcommunity.com/inventory/76561198034957967/753/6?l=english&count=5000&start_assetid=8159788449
,"total_inventory_count":10230,
"success":1,"rwgrsn":-2}
anyways, just a way for you to optimize your script to make it do fewer requests to larger inventories and perhaps avoid hitting a rate limit.
Does anyone have any updates to add here from recent experience?