GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - gofurry/steam-go: A clean and extensible Go SDK for Steam Web API, with built-in support for retries, rate limiting, and pluggable transports.

BranchesTags
Open more actions menu

Latest commit

 

History

208 Commits
208 Commits

Folders and files

NameName
Last commit message
Last commit date
.agents
.agents
 
 
.github
.github
 
 
addons
addons
 
 
api
api
 
 
contracts
contracts
 
 
docs
docs
 
 
examples
examples
 
 
internal
internal
 
 
steamid
steamid
 
 
testdata
testdata
 
 
web
web
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
client.go
client.go
 
 
client_test.go
client_test.go
 
 
errors.go
errors.go
 
 
errors_preview_test.go
errors_preview_test.go
 
 
example_test.go
example_test.go
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
observer.go
observer.go
 
 
observer_benchmark_test.go
observer_benchmark_test.go
 
 
observer_test.go
observer_test.go
 
 
options.go
options.go
 
 
options_contract_test.go
options_contract_test.go
 
 
options_internal_test.go
options_internal_test.go
 
 
proxy.go
proxy.go
 
 
proxy_benchmark_test.go
proxy_benchmark_test.go
 
 
proxy_test.go
proxy_test.go
 
 
raw_http.go
raw_http.go
 
 
raw_http_test.go
raw_http_test.go
 
 
redact.go
redact.go
 
 
redact_test.go
redact_test.go
 
 
redaction_golden_test.go
redaction_golden_test.go
 
 
request_profiles.go
request_profiles.go
 
 
request_profiles_test.go
request_profiles_test.go
 
 
runtime_stats.go
runtime_stats.go
 
 
traffic_policy.go
traffic_policy.go
 
 

Repository files navigation

steam-go

License    Go Version    Weekend Project    Made with Love

⭐ Wiki  |  Steam Keys and Access Tokens |  中文 README  |  Steam Key 与 Access Token ⭐

				____ ____ ____ _  _ ____ ____ _   _   / ____ ___ ____ ____ _  _    ____ ____ 
				| __ |  | |___ |  | |__/ |__/  \_/   /  [__   |  |___ |__| |\/| __ | __ |  | 
				|__] |__| |    |__| |  \ |  \   |   /   ___]  |  |___ |  | |  |    |__] |__| 
                                                                             

steam-go is a stable Go SDK for the official Steam Web API, with practical request controls and carefully scoped read-only Steam Web helpers.

Why Use It

  • Stable root Client with grouped official API access under client.API.*
  • Read-only client.Web.* helpers for Storefront, Community inventory, and Market JSON endpoints
  • Functional options for API key, access token, timeout, retry, rate limit, proxy, cookies, and traffic policy
  • Safe defaults for external traffic with bounded response bodies and URL redaction helpers
  • Typed responses for stable payloads, with raw methods and json.RawMessage for volatile subtrees
  • Storefront release-date and supported-language normalization without changing the raw appdetails fields
  • Rotating and health-checked API key providers for resilient 401/429 handling
  • Player avatar and equipped Profile asset discovery through the shared assets verify/read/download pipeline
  • Addons for OpenID, web sessions, assets, markup, VDF, free-claim workflows, and A2S without bloating the core SDK

Installation

go get github.com/gofurry/steam-go@latest

steam-go currently requires Go 1.25+.

Quick Start: Official API

package main

import (
	"context"
	"fmt"
	"time"

	steam "github.com/gofurry/steam-go"
)

func main() {
	client, err := steam.NewClient(
		steam.WithAPIKey("your-key"),
		steam.WithTimeout(10*time.Second),
		steam.WithRetry(2),
	)
	if err != nil {
		panic(err)
	}
	defer client.Close()

	resp, err := client.API.SteamUser.GetPlayerSummaries(
		context.Background(),
		[]string{"76561198370695025"},
	)
	if err != nil {
		panic(err)
	}

	for _, player := range resp.Response.Players {
		fmt.Printf("%s: %s\n", player.SteamID, player.PersonaName)
	}
}

More official API examples: docs/cookbook/basic-api.md.

Quick Start: Steam OpenID

verifier, err := openid.NewVerifier(openid.Config{
	Realm:    "https://example.com/",
	ReturnTo: "https://example.com/auth/steam/callback",
})
if err != nil {
	panic(err)
}

loginURL, err := verifier.LoginURL("csrf-state")
if err != nil {
	panic(err)
}

fmt.Println(loginURL)

In a real app, store the state in a secure cookie or server-side session before redirecting the user. Cookbook: docs/cookbook/auth-openid.md.

Quick Start: Read-Only Web Query

client, err := steam.NewClient(steam.WithSafeDefaults())
if err != nil {
	panic(err)
}
defer client.Close()

reviews, err := client.Web.Storefront.GetAppReviews(context.Background(), 440, &storefront.GetAppReviewsOptions{
	Language:   "english",
	NumPerPage: 20,
})
if err != nil {
	panic(err)
}

fmt.Println(reviews.QuerySummary.TotalReviews)

client.Web.* is read-only and never injects Steam Web API key or access_token. Cookbook: docs/cookbook/web-readonly.md.

Production Notes

  • Start with WithSafeDefaults() for real external traffic, then tune timeout, retry, and rate limit per workload.
  • Use WithProxySelector(...) or WithTrafficPolicy(...) when region, host, or session behavior needs different network paths.
  • Keep official API traffic and Storefront page-like traffic on separate traffic policies. In a 2026-06-07 Storefront appdetails experiment, repeated runs started returning 429 around 220-230 requests and then 403; a conservative Store budget such as 1 request / 2 seconds with burst=1 is a safer starting point.
  • Do not log raw URLs that may contain key, access_token, cookies, or proxy credentials. Use steam.RedactSensitiveURL(...).
  • Use WithMaxResponseBodyBytes(...) when callers need a stricter response body cap.
  • Keep live smoke credentials and web cookies out of Git; examples use environment variables or hidden terminal prompts for sensitive values.

Stability Boundary

  • client.API.* is the official Steam Web API surface and the main stable v1 contract.
  • client.Web.* exposes stable Go method signatures, but the upstream Store / Community / Market payloads are unofficial and may drift.
  • Volatile nested payloads may remain json.RawMessage instead of being forced into brittle typed structs.
  • The core package does not include browser fallback, purchase, sell, trade, or bulk account automation.

Addons

Addon Use it for
addons/openid Steam OpenID login verification
addons/websession Manual Steam web-login session flow
addons/freeclaim Read-only free promotion discovery plus explicit single-package claim
addons/assets Store, Library, player avatar, and equipped Profile asset discovery, verification, reading, and downloading
addons/markup Steam BBCode / HTML conversion, sanitizing, and plain-text summaries
addons/vdf Valve VDF / KeyValues text parsing via github.com/gofurry/vdf-go
addons/a2s A2S server queries through github.com/gofurry/a2s-go

Detailed addon notes: docs/addons/reference.md.

Documentation

  • Documentation index
  • API reference
  • Local SteamID parsing and conversion
  • Web reference
  • Addon reference
  • Storefront normalization example
  • Live player assets example
  • Cookbook
  • Rate limiting strategy
  • Storefront appdetails rate-limit experiment
  • Compatibility policy
  • Endpoint stability
  • Endpoint coverage
  • Release checklist
  • Generated API coverage
  • API coverage diff

About

A clean and extensible Go SDK for Steam Web API, with built-in support for retries, rate limiting, and pluggable transports.

github.com/gofurry/steam-go/wiki

Topics

a2sapi-clientopenidsdk-gosteam

Resources

Readme
MIT license

Contributing

Contributing

Security policy

Security policy
Activity

Stars

62 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.