Half-Life 2: Deathmatch
<<[CLL]>> FUNfighter (the real) (18+) (cll_redrock_2020 in 6:43 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/8536796json
{
"response": {
"steam_id": "90284543201856538",
"domain": null,
"id": 8536796,
"ip": "84.200.132.57",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 320,
"owner": null,
"boosts": 1,
"last_offline": 1772802746,
"score": 0,
"last_online": 1776435727,
"icon": null,
"name": "<<[CLL]>> FUNfighter (the real) (18+) (cll_redrock_2020 in 6:43",
"connect": "84.200.132.57:27015",
"request": "84.200.132.57:27015",
"map": "dm_sniper_delta-prime",
"gamemode": "Half-Life 2 Deathmatch",
"version": "9540945",
"numplayers": 0,
"maxplayers": 18,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1744463569,
"last_update": 1776435727,
"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": 117,
"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/8536796");
$data = json_decode($json, true);
var_dump($data);