Skip to content

oguzhantasimaz/steam-web-api-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steamwebapi GoLang API Wrapper

GitHub GitHub Release (latest by date) GitHub Go Module Version GitHub issues

Description

Steamwebapi is a free and open-source API wrapper for interacting with the Steam Web API. It provides easy access to various Steam services such as Inventory, Profile, CS:GO Items, Rust Items, Dota Items, Team Fortress Items, and more without the risk of Steam blocking.

Table of Contents

Installation

To use this API wrapper in your Go project, you can add it as a dependency in your go.mod file.

go get github.com/oguzhantasimaz/steam-web-api-go

Usage

Before making API requests, you need to obtain an API key from steamwebapi.com. Once you have your API key, you can initialize the wrapper and make requests to the Steam Web API.

import "github.com/oguzhantasimaz/steam-web-api-go/swa"

func main() {
    apiKey := "your-api-key"
    client := swa.NewClient(apiKey)

    // Get Item History for P250 Crimson Kimono Factory New
    
    ih, err := client.Items().GetItemPriceHistory("P250 | Crimson Kimono (Factory New)")
    if err != nil {
        panic(err)
    }
    
    log.Println(ih)
}

API Endpoints

The API wrapper supports the following endpoints:

  • Currency

    • Get a list of currencies
    • Get exchange rates for currencies
  • Profiles

    • Get random steam profile
    • Get a steam profile with high valued inventory
  • Items

    • Get Steam items
    • Get information about Steam items
    • Find Steam items
    • Get details of a specific Steam item
    • Get item history
  • Inventory

    • Get Steam inventory
    • Get Steam inventory tracked by day
  • Profile

    • Get Steam IDs
    • Get Steam profiles
    • Get Steam friend lists

Examples

For more examples check the examples directory.

Contributing

Contributions to this project are welcome! If you encounter a bug or have a feature request, feel free to open an issue. Pull requests with improvements or new features are also appreciated.

License

This API wrapper is licensed under the MIT License.