Package is available on PyPi, you could install it with:
pip install steamy-pyor
uv add steamy-pyMost methods require an API key, which can be obtained at https://steamcommunity.com/dev/apikey
Some APIs work with access tokens, if you have one you can provide it here, and it will be preferred over the webapi key.
Here's how to get a store token:
- Open https://store.steampowered.com/pointssummary/ajaxgetasyncconfig
- Copy the value of webapi_token or simply paste the full JSON in
Here's how to get a community token:
- Open https://steamcommunity.com/my/edit/info
- Run the following script:
JSON.parse(application_config.dataset.loyalty_webapi_token)In the examples directory, you can find examples of how to use the package.
Basic example:
async with Steam(api_key="YOUR_API_KEY") as steam:
friends = await steam.player.get_friends_list(steam_id=1234567890)
print(friends)