Jump to content
McKay Development

How am I exceeding steam api's rate limit?


Recommended Posts

Posted

I want to get a steam user's CSGO inventory with this steam API and it works fine for the first 5-6 call. After that I get the error code 429, but I don't understand how I exceed the rate limit with this low amount of requests. I found this on steam: "You are limited to one hundred thousand (100,000) calls to the Steam Web API per day.", but I clearly did not make more than 100.000 calls.

import requests
import json

steamIDs = [
    76561198323251063, # Enyém
    76561199013264816 # Rolié
]

gameID = "730"

with open("valid_proxies.txt", "r") as f:
    proxies = f.read().split("\n")

def jprint(obj):
    text = json.dumps(obj, sort_keys=True, indent=4)
    return text

response = requests.get(f"http://steamcommunity.com/inventory/{steamIDs[1]}/{gameID}/2")
print(response.status_code)

with open("data.txt", "w") as f:
    f.write(jprint(response.json()))



 

Posted

The inventory endpoint doesn't fall under the Steam Web API, and the 100k request limit doesn't apply to it.

Check the headers that your browser is sending, and make sure you send as many of them as you can in your own requests.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...