Apocalyptic storm SOLO/DUO 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 60,
"fps_avg": 59,
"entities_count": 124178,
"world_seed": 123791699,
"world_size": 4500,
"steam_id": "90286573755095057",
"domain": null,
"id": 2705427,
"ip": "178.159.92.210",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Krasnoyarsk",
"description": "\nКлассический сервер\r\n Без доната\r\n Вайп каждый четверг нового месяца\r\n Нет читеров\r\n Дискорд\r\n Шкаф потребляет в 2 раза меньше ресурсов",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780524268,
"last_online": 1780579232,
"icon": null,
"name": "Apocalyptic storm SOLO/DUO",
"connect": "178.159.92.210:28015",
"request": "178.159.92.210:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 4,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1706196282,
"last_update": 1780579232,
"banned": false,
"wipe": 1779274783,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2014,
"language": "ru",
"parked": false,
"app": {
"id": 252490,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/2705427");
$data = json_decode($json, true);
var_dump($data);