[CN]*▄【┳一『中国梦CSS』死亡竞技服务器 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "85568392934484985",
"domain": null,
"id": 11570447,
"ip": null,
"port": null,
"query": null,
"project_id": null,
"color": 0,
"city": "Guangzhou",
"description": null,
"game": 240,
"owner": null,
"boosts": 1,
"last_offline": 1780734204,
"last_online": 1780581678,
"icon": null,
"name": "[CN]*▄【┳一『中国梦CSS』死亡竞技服务器",
"connect": null,
"request": null,
"map": "FY_Dust",
"gamemode": "Counter-Strike: Source",
"version": "9540945",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779356643,
"last_update": 1780734204,
"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": 3216,
"language": "zh",
"parked": true,
"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/11570447");
$data = json_decode($json, true);
var_dump($data);