vendalized 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"modded": true,
"fps": 20,
"fps_avg": 20,
"entities_count": 152929,
"world_seed": 28939767,
"world_size": 4500,
"steam_id": "90286733207564311",
"domain": null,
"id": 10633081,
"ip": "185.180.2.35",
"port": 28634,
"query": 27634,
"project_id": null,
"color": 0,
"city": "Prague",
"description": "\nIMPORTANT NOTICE:\r\nServer is currently still under heavy development!\r\nFeatures might change or get removed at any time without prior notice.\r\nJoin the Discord to get all the latest news and updates.\r\n(for link click website button)\r\n_____________________________________________________________\r\n\r\npowered by Carbon Framework",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780704252,
"last_online": 1780898432,
"icon": null,
"name": "vendalized",
"connect": "185.180.2.35:28634",
"request": "185.180.2.35:27634",
"map": "SkyFall",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": true,
"private": false,
"country": "CZ",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1763713727,
"last_update": 1780898432,
"banned": false,
"wipe": 1780595113,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3707,
"language": "cs",
"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/10633081");
$data = json_decode($json, true);
var_dump($data);