Half-Life 2: Deathmatch
{WTSW} FlaciD's-KILL-FLOOR 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11180302json
{
"response": {
"steam_id": "90284549387265030",
"domain": null,
"id": 11180302,
"ip": "168.100.160.85",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Ashburn",
"description": null,
"game": 320,
"owner": null,
"boosts": 1,
"last_offline": 1775835127,
"score": 0,
"last_online": 1776444129,
"icon": null,
"name": "{WTSW} FlaciD's-KILL-FLOOR",
"connect": "168.100.160.85:27015",
"request": "168.100.160.85:27015",
"map": "dm_resistance",
"gamemode": "Half-Life 2 Deathmatch",
"version": "9540945",
"numplayers": 0,
"maxplayers": 33,
"bots": 10,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1772229594,
"last_update": 1776444129,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 187,
"language": "en",
"parked": false,
"app": {
"id": 1,
"steam_id": 320,
"name": "Half-Life 2: Deathmatch",
"url": "half-life-2-deathmatch"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11180302");
$data = json_decode($json, true);
var_dump($data);