Ленинград 2.0 New |MAX 8|Monthly|10X Upkeep|Classic| 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 65,
"fps_avg": 62,
"entities_count": 116668,
"world_seed": 1331181802,
"world_size": 4500,
"steam_id": "90286357563769886",
"domain": null,
"id": 10895979,
"ip": "62.183.30.64",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Krasnodar",
"description": "\nДобро пожаловать на классический сервер\r\n Матерные оскорбления запрещены\r\n Ежемесячный вайп\r\n Содержание шкафа в 10 раз меньше\r\n Telegram https://t.me/rust_leningrad\r\n Магазин https://rust-server-org.gamestores.app/",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778929976,
"last_online": 1780554031,
"icon": null,
"name": "Ленинград 2.0 New |MAX 8|Monthly|10X Upkeep|Classic|",
"connect": "62.183.30.64:28015",
"request": "62.183.30.64:28016",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 0,
"maxplayers": 500,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1768383753,
"last_update": 1780554031,
"banned": false,
"wipe": 1778185106,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3832,
"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/10895979");
$data = json_decode($json, true);
var_dump($data);