GRUFF ZONE ZA 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 259,
"fps_avg": 262,
"entities_count": 91959,
"world_seed": 34393550,
"world_size": 4000,
"steam_id": "90286411919908879",
"domain": null,
"id": 11511600,
"ip": "102.39.233.23",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Cape Town",
"description": "\nGRUFF ZONE ZA \r\nFor those of you that like more of a challange.\r\nRoaming NPC's will try and kill you .\r\nScientists will raid your base if you kill them\r\nCustom Monuments\r\nand much more",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780588411,
"last_online": 1780165224,
"icon": null,
"name": "GRUFF ZONE ZA",
"connect": "102.39.233.23:28015",
"request": "102.39.233.23:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "ZA",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779353856,
"last_update": 1780588411,
"banned": false,
"wipe": 1779380405,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 11844,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11511600");
$data = json_decode($json, true);
var_dump($data);