Rust
CZ/SK začátečníci SOLO/DUO/TRIO 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/7920815json
{
"response": {
"fps": 95,
"fps_avg": 95,
"entities_count": 68450,
"world_seed": 1436565860,
"world_size": 3500,
"steam_id": "90284792924484621",
"domain": null,
"id": 7920815,
"ip": "185.180.2.25",
"port": 28898,
"query": 27898,
"color": 0,
"city": "Prague",
"description": "SOLO/DUO/TRIO\r\nVanilla\r\n2week wipe\r\nMAX 1000 hour ->PUBLIC PROFILE!!!! (Veřejné hodiny)\r\nMAX 1 raid/day (per 24h)\r\nNO GRIEFING !!!! Zákaz griefování = při a po raidu musí zůstat base majiteli, nesmí se zastavovat base stěnami ani dveřmi. Raid je povolen jednou za 24/h.\r\nZákaz změny týmu. Tým lze změnit jen s povolením admina.\r\nV den wipu povolen multiraid 00:00-20:00\r\nDiscord: https://discord.gg/Ed8W6fudB7",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775151730,
"score": 0,
"last_online": 1776875421,
"icon": null,
"name": "CZ/SK začátečníci SOLO/DUO/TRIO",
"connect": "185.180.2.25:28898",
"request": "185.180.2.25:27898",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 1,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "CZ",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1740791948,
"last_update": 1776875421,
"banned": false,
"wipe": 1776362346,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2288,
"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/7920815");
$data = json_decode($json, true);
var_dump($data);