Add optional Steam App ID filter to Steam Game Server monitor
I have found these related issues/pull requests
I searched existing issues and pull requests for "Steam Game Server" (#2446, #2758, #5934). Existing issues discuss general Steam API downtime or dynamic DNS resolution, but none address custom/mod Steam App ID filtering.
Feature description
Currently, the Steam Game Server monitor queries Valve's Master Server API:
https://api.steampowered.com/IGameServersService/GetServerList/v1/
In server/monitor-types/steam.js, the query filter is constructed solely from the IP and port:
addr\<ip>:<port>
While this works for official store titles, dedicated servers running Source mods, unreleased games, or custom App IDs (such as Team Fortress 2 Classic under App ID 3545060) return an empty response { "response": {} } from Valve when queried via addr\ without an \appid\ filter.
This causes Uptime Kuma to report:
[DOWN] Server not found on Steam
even though the server is online and registered with the master server.
✔️ Solution
- Add an optional Steam App ID input field in the monitor settings UI for the "Steam Game Server" monitor type.
❓ Alternatives
No response
Additional Context
Testing with a live server running TF2 Classic (App ID 3545060 on 192.99.105.48:27015):
- Current filter (
addr\<ip>:<port>):
curl -sG "https://api.steampowered.com/IGameServersService/GetServerList/v1/" \
--data-urlencode "key=API_KEY" \
--data-urlencode "filter=addr\192.99.105.48:27015"Response:
{
"response": {}
}(Triggers false-positive "Server not found on Steam")
- With App ID filter (
addr\<ip>:<port>\appid\<appid>):
curl -sG "https://api.steampowered.com/IGameServersService/GetServerList/v1/" \
--data-urlencode "key=API_KEY" \
--data-urlencode "filter=addr\192.99.105.48:27015\appid\3545060"Response:
{
"response": {
"servers": [
{
"addr": "192.99.105.48:27015",
"gameport": 27015,
"specport": 27020,
"steamid": "90293108201686036",
"name": "VaultF4 - Official [NA-2] Standard",
"appid": 3545060,
"gamedir": "tf2classified",
"version": "5102",
"product": "tf2classified",
"region": 0,
"players": 24,
"max_players": 24,
"bots": 0,
"map": "vipr_2bridge",
"secure": true,
"dedicated": true,
"os": "l",
"gametype": "respawntimes"
}
]
}
}Source: louislam/uptime-kuma