|3.9|a [CN]Sunshine黑色艉流服务器 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": 90286602431178770,
"domain": null,
"id": 11668373,
"ip": "222.129.34.179",
"port": 25001,
"query": 27015,
"color": 0,
"city": "Beijing",
"description": null,
"game": 420290,
"owner": null,
"boosts": 1,
"last_offline": 1780538665,
"last_online": 1780623078,
"icon": null,
"name": "|3.9|a [CN]Sunshine黑色艉流服务器",
"connect": "222.129.34.179:25001",
"request": "222.129.34.179:27015",
"map": "Open Water",
"gamemode": "TDM 3V3",
"version": "x",
"numplayers": 0,
"maxplayers": 54,
"bots": 0,
"secured": false,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780179760,
"last_update": 1780623078,
"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": 9,
"language": "zh",
"parked": false,
"app": {
"id": 175,
"steam_id": 420290,
"name": "Blackwake",
"url": "blackwake"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11668373");
$data = json_decode($json, true);
var_dump($data);