Rust
[EU] Royals Solo Only | 2x Vanilla | Thursdays 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10740672json
{
"response": {
"fps": 30,
"fps_avg": 30,
"entities_count": 66516,
"world_seed": 700532900,
"world_size": 3500,
"steam_id": "90284796944865293",
"domain": null,
"id": 10740672,
"ip": "85.228.18.151",
"port": 28012,
"query": 28022,
"color": 0,
"city": "Västervik",
"description": "![[EU] Royals Solo Only | 2x Vanilla | Thursdays](https://rustroyals.eu/imgss/Rust-Royals-V3.png)\nWelcome to Royals Solo Only!\r\nVisit us on discord.gg/rustroyals alt.\r\nhttp://discord.com/invite/vXZGHu2hXj\r\n\r\n\r\nWipe Schedule: Thursdays @ 4PM CEST \r\nBlueprint wipes are monthly\r\n\r\nFeatures:\r\n ✦ 2x on farm and stacks\r\n ✦ 55 min day and 5 min night\r\n ✦ No decay on minis or cars\r\n ✦ Skinbox\r\n ✦ Buy Offline raid protection with scrap\r\n ✦ No allies allowed!\r\n\r\n\r\nPlease use discord to report anyone breaking the rules or use F7 to report a cheater.\r\nEnjoy your stay and have fun!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775836927,
"score": 0,
"last_online": 1776880825,
"icon": null,
"name": "[EU] Royals Solo Only | 2x Vanilla | Thursdays",
"connect": "85.228.18.151:28012",
"request": "85.228.18.151:28022",
"map": "Royals Custom Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "SE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1766250726,
"last_update": 1776880825,
"banned": false,
"wipe": 1776420232,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4291,
"language": "sv",
"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/10740672");
$data = json_decode($json, true);
var_dump($data);