Rust
Rustrician.io Electricity Creative Build Server | F1 | Noclip 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/570630json
{
"response": {
"fps": 178,
"fps_avg": 161,
"entities_count": 83133,
"world_seed": 1337,
"world_size": 3000,
"steam_id": "90285939163562004",
"domain": null,
"id": 570630,
"ip": "74.208.55.12",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Washington",
"description": "\nThe official server of Rustrician.io - RUST Electricity Simulator\r\n\r\nIf you want to learn about electricity in Rust or have a question about a circuit, join us on Discord @ discord.rustrician.io\r\n\r\nWe also have many example circuits available for you to test and experiment with @ www.rustrician.io\r\n\r\nWipes every Thursday. Enjoy your stay and don't get electricuted!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779172373,
"score": null,
"last_online": 1779192016,
"icon": null,
"name": "Rustrician.io Electricity Creative Build Server | F1 | Noclip",
"connect": "74.208.55.12:28015",
"request": "74.208.55.12:28016",
"map": "Custom Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 6,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 65,
"add_date": 1668892562,
"last_update": 1779192016,
"banned": false,
"wipe": 1778753216,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 822,
"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/570630");
$data = json_decode($json, true);
var_dump($data);