CaseRust | РУССКИЙ | ДЛЯ НОВИЧКОВ 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 84,
"fps_avg": 83,
"entities_count": 50208,
"world_seed": 1914365770,
"world_size": 3000,
"steam_id": 90286129888458780,
"domain": null,
"id": 11602759,
"ip": "62.122.215.220",
"port": 26197,
"query": 19687,
"color": 0,
"city": "Moscow",
"description": "\n=== Ванильный сервер \r\n === Без Доната \r\n === Вайпы По четвергам \r\n === переработчики во всех мирных зонах \r\n === нет лимита на команду \r\n === Раз в месяц Глобал вайп \r\n === Сервер для Новичков \r\n \r\n \r\n \r\n wipe 28.05",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779568320,
"last_online": 1779595820,
"icon": null,
"name": "CaseRust | РУССКИЙ | ДЛЯ НОВИЧКОВ",
"connect": "62.122.215.220:26197",
"request": "62.122.215.220:19687",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 150,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 1,
"points": 61,
"add_date": 1779568320,
"last_update": 1779595820,
"banned": false,
"wipe": 1779301151,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2082,
"language": "ru",
"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/11602759");
$data = json_decode($json, true);
var_dump($data);