GGFD|CS:S|ag_rats only 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286656807437333",
"domain": null,
"id": 10789497,
"ip": "158.101.168.47",
"port": 27016,
"query": 27016,
"project_id": null,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 240,
"owner": null,
"boosts": 1,
"last_offline": 1779937423,
"last_online": 1780788156,
"icon": null,
"name": "GGFD|CS:S|ag_rats only",
"connect": "158.101.168.47:27016",
"request": "158.101.168.47:27016",
"map": "ag_rats",
"gamemode": "Counter-Strike: Source",
"version": "9540945",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1766874490,
"last_update": 1780788156,
"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": 2436,
"language": "de",
"parked": false,
"app": {
"id": 5,
"steam_id": 240,
"name": "Counter-Strike: Source",
"url": "counter-strike-source"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10789497");
$data = json_decode($json, true);
var_dump($data);