Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oguzhantasimaz/steam-web-api-go
Steam Web API wrapper for Go developers.
https://github.com/oguzhantasimaz/steam-web-api-go
api counter-strike go golang steam steam-api steamwebapi valve web wrapper wrapper-api
Last synced: 2 days ago
JSON representation
Steam Web API wrapper for Go developers.
- Host: GitHub
- URL: https://github.com/oguzhantasimaz/steam-web-api-go
- Owner: oguzhantasimaz
- License: mit
- Created: 2023-10-06T14:43:09.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-12T12:01:38.000Z (about 1 year ago)
- Last Synced: 2024-11-16T01:23:47.870Z (about 2 months ago)
- Topics: api, counter-strike, go, golang, steam, steam-api, steamwebapi, valve, web, wrapper, wrapper-api
- Language: Go
- Homepage: https://www.steamwebapi.com/api/doc
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Steamwebapi GoLang API Wrapper
![GitHub](https://img.shields.io/github/license/oguzhantasimaz/steam-web-api-go)
![GitHub Release (latest by date)](https://img.shields.io/github/v/release/oguzhantasimaz/steam-web-api-go)
![GitHub Go Module Version](https://img.shields.io/github/go-mod/go-version/oguzhantasimaz/steam-web-api-go)
![GitHub issues](https://img.shields.io/github/issues/oguzhantasimaz/steam-web-api-go)## 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](#installation)
- [Usage](#usage)
- [API Endpoints](#api-endpoints)
- [Examples](#examples)
- [Contributing](#contributing)
- [License](#license)## 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](https://www.steamwebapi.com/api/list). Once you have your API key, you can initialize the wrapper and make requests to the Steam Web API.
```go
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](https://github.com/oguzhantasimaz/steam-web-api-go/tree/main/examples).
## 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](LICENSE).