Rust
Lazy Rusters IV - 2X - PVE - NPC Bases - Forget the Grind! 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/3712860json
{
"response": {
"fps": 37,
"fps_avg": 37,
"entities_count": 130853,
"world_seed": 111120,
"world_size": 4250,
"steam_id": "90285237975539729",
"domain": null,
"id": 3712860,
"ip": "158.69.23.95",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Montreal",
"description": "\nLove to raid, but tired of logging on every day only to find your base raided?\r\nDo you just want a nice peaceful place to farm and build?\r\nDo you hate grinding away in Rust, then by the time you reach the level you want to be at, its wipe day?\r\nWell FORGET THE GRIND!\r\n2X Gather rates, monthly wipes, instant crafting, no upkeep or decay, and more to make the most of the time you spend in Rust. \r\n\r\nDon't grind your wipe away!\r\n\r\nCheck us out at LazyRusters.com",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1777695190,
"score": 0,
"last_online": 1777699823,
"icon": null,
"name": "Lazy Rusters IV - 2X - PVE - NPC Bases - Forget the Grind!",
"connect": "158.69.23.95:28015",
"request": "158.69.23.95:28017",
"map": "Don't Be A Dick",
"gamemode": "Vanilla",
"version": "2623",
"numplayers": 1,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "CA",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1712333539,
"last_update": 1777699823,
"banned": false,
"wipe": 1775157357,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2611,
"language": "en",
"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/3712860");
$data = json_decode($json, true);
var_dump($data);