Skip to content

AuthFailed/steamy-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Package is available on PyPi, you could install it with:

pip install steamy-py

or

uv add steamy-py

Authorization

Most 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:

  1. Open https://store.steampowered.com/pointssummary/ajaxgetasyncconfig
  2. Copy the value of webapi_token or simply paste the full JSON in

Here's how to get a community token:

  1. Open https://steamcommunity.com/my/edit/info
  2. Run the following script:
JSON.parse(application_config.dataset.loyalty_webapi_token)

Examples

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)

About

Asynchronous Python wrapper for the Steam Web API

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages