Rust
Lazy Rusters I - 100x | Crazy Loot | No BP | Instant Craft 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/5616018json
{
"response": {
"fps": 38,
"fps_avg": 37,
"entities_count": 243796,
"world_seed": 23310,
"world_size": 4300,
"steam_id": "90285196098436124",
"domain": null,
"id": 5616018,
"ip": "158.69.22.101",
"port": 28085,
"query": 29015,
"color": 0,
"city": "Montreal",
"description": "\nTaking the grind out of Rust...\r\n\r\n...with monthly wipes, 100x gather rates, crazy loot, no blueprints, instant crafting, teleports, personal recyclers, personal minis and much more!\r\n\r\nWe also have NPCs, and NPC bases so there's always killing and raiding to be done!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1777694593,
"score": 0,
"last_online": 1777693820,
"icon": null,
"name": "Lazy Rusters I - 100x | Crazy Loot | No BP | Instant Craft",
"connect": "158.69.22.101:28085",
"request": "158.69.22.101:29015",
"map": "Don't Be A Dick",
"gamemode": "Vanilla",
"version": "2623",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "CA",
"status": false,
"votes": 0,
"points": 60,
"add_date": 1723693844,
"last_update": 1777694593,
"banned": false,
"wipe": 1775157345,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2723,
"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/5616018");
$data = json_decode($json, true);
var_dump($data);