Half-Life 2: Deathmatch
G-Power by The Nanny |Public Match| 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/5582034json
{
"response": {
"steam_id": "90285033137370125",
"domain": null,
"id": 5582034,
"ip": "45.84.199.92",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Offenbach",
"description": null,
"game": 320,
"owner": null,
"boosts": 1,
"last_offline": 1777050150,
"score": 0,
"last_online": 1777564898,
"icon": null,
"name": "G-Power by The Nanny |Public Match|",
"connect": "45.84.199.92:27015",
"request": "45.84.199.92:27015",
"map": "dm_arena_new_final",
"gamemode": "FFA (0) 12:06",
"version": "9540945",
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1723413365,
"last_update": 1777564898,
"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": 75,
"language": "de",
"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/5582034");
$data = json_decode($json, true);
var_dump($data);