Chrayntopia 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 60,
"fps_avg": 59,
"entities_count": 108233,
"world_seed": 148090100,
"world_size": 4250,
"steam_id": "90286604192635915",
"domain": null,
"id": 11502425,
"ip": "40.160.20.241",
"port": 28015,
"query": 27017,
"color": 0,
"city": "Reston",
"description": "\nWelcome! We are all about fun and chill vibes here.\r\n• Vanilla gather and loot tables\r\n• No raiding allowed\r\n• No KOS (except at red card monuments, cargo, or oil rigs)\r\n• PVP zones are marked by large bubbles and red UI markers\r\n• Use /remove to fix or alter your builds\r\n• Zero tolerance for toxicity: toxic behavior = permanent ban\r\n• Biweekly wipes (every other Thursday)\r\n\r\nHave fun and enjoy the island!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780596273,
"last_online": 1780597827,
"icon": null,
"name": "Chrayntopia",
"connect": "40.160.20.241:28015",
"request": "40.160.20.241:27017",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2627",
"numplayers": 157,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 96,
"add_date": 1779207200,
"last_update": 1780597827,
"banned": false,
"wipe": 1780596534,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 205,
"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/11502425");
$data = json_decode($json, true);
var_dump($data);