Sons Of The Forest
Klye Land 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/717456json
{
"response": {
"steam_id": "90275875146138647",
"domain": null,
"id": 717456,
"ip": "104.192.227.58",
"port": 7791,
"query": 27039,
"color": 0,
"city": "Chicago",
"description": "",
"game": 1326470,
"owner": null,
"boosts": 1,
"last_offline": 1776019939,
"score": null,
"last_online": 1776781947,
"icon": null,
"name": "Klye Land",
"connect": "104.192.227.58:7791",
"request": "104.192.227.58:27039",
"map": "Normal",
"gamemode": "Sons Of the Forest",
"version": "0.11.3.0.0",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1672178074,
"last_update": 1776781947,
"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": 13,
"language": "en",
"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/717456");
$data = json_decode($json, true);
var_dump($data);