4Netplayers Gay Island 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286782665908233",
"domain": null,
"id": 11730308,
"ip": "146.59.1.3",
"port": 24600,
"query": 24610,
"project_id": null,
"color": 0,
"city": "Warsaw",
"description": null,
"game": 1326470,
"owner": null,
"boosts": 1,
"last_offline": 1781213580,
"last_online": 1781001120,
"icon": null,
"name": "4Netplayers Gay Island",
"connect": "146.59.1.3:24600",
"request": "146.59.1.3:24610",
"map": "HardSurvival",
"gamemode": "Sons Of the Forest",
"version": "0.11.3.0.0",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": false,
"private": false,
"country": "PL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780389582,
"last_update": 1781213580,
"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": 2096,
"language": "pl",
"parked": false,
"app": {
"id": 1569757,
"steam_id": 1326470,
"name": "Sons Of The Forest",
"url": "sons-of-the-forest"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11730308");
$data = json_decode($json, true);
var_dump($data);