Goon Nation 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286262884800523",
"domain": null,
"id": 11602912,
"ip": "216.225.152.39",
"port": 9125,
"query": 9126,
"project_id": null,
"color": 0,
"city": "Dallas",
"description": null,
"game": 602960,
"owner": null,
"boosts": 1,
"last_offline": 1779779559,
"last_online": 1780681923,
"icon": null,
"name": "Goon Nation",
"connect": "216.225.152.39:9125",
"request": "216.225.152.39:9126",
"map": "Dugong",
"gamemode": "multiplayercampaign",
"version": "1.12.7.0",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": false,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779779559,
"last_update": 1780681923,
"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": 99,
"language": "en",
"parked": false,
"app": {
"id": 50335,
"steam_id": 602960,
"name": "Barotrauma",
"url": "barotrauma"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11602912");
$data = json_decode($json, true);
var_dump($data);