-
Notifications
You must be signed in to change notification settings - Fork 1
A2S Notes
福狼 edited this page Jul 8, 2026
·
2 revisions
addons/a2s is used for querying game servers directly.
It is different from Steam Web API calls.
| Steam Web API | A2S |
|---|---|
| HTTP-based | UDP-based game server query |
| Queries Steam platform data | Queries a specific game server |
| Uses SDK client and credentials when needed | Does not use Steam Web API key |
| Good for player profiles, achievements, app data | Good for server info, players, rules |
client.API.GameServersService.GetServerList is a Steam Web API discovery helper. It returns server candidates from Steam's Web API side; use A2S afterward when you need current server info, players, or rules.
The A2S addon exposes common server query operations:
- info
- players
- rules
Server info:
go run ./examples/a2s -server 1.2.3.4:27015 -query infoPlayers:
go run ./examples/a2s -server 1.2.3.4:27015 -query playersRules:
go run ./examples/a2s -server 1.2.3.4:27015 -query rulesaddons/a2saddons/a2s/masteraddons/a2s/scanner
- Treat A2S as network probing against game servers.
- Treat
GetServerListresults as candidates, not proof that every server still matches every filter. - Expect timeouts and partial failures.
- Use bounded concurrency when scanning.
- Do not mix A2S error handling with Web API error handling.
- Keep A2S as an addon so the core Web API client stays small.
____ ____ ____ _ _ ____ ____ _ _ / ____ ___ ____ ____ _ _ ____ ____
| __ | | |___ | | |__/ |__/ \_/ / [__ | |___ |__| |\/| __ | __ | |
|__] |__| | |__| | \ | \ | / ___] | |___ | | | | |__] |__|
- SteamID Model
- Steam Web API Notes
- Public Store Page Access Notes
- Partner API Notes
- OpenID Notes
- A2S Notes
- Steam Keys and Access Tokens
- Steam Static Assets
- Steam VDF and addons/vdf
- Steam Web API 特性说明
- 公开商店页面访问说明
- Partner API 说明
- OpenID 说明
- A2S 说明
- Steam Key 与 Access Token
- Steam 静态资源
- Steam VDF 与 addons/vdf