Rust
KrustyRust SOLO 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11189414json
{
"response": {
"fps": 46,
"fps_avg": 42,
"entities_count": 70743,
"world_seed": 1669245865,
"world_size": 3500,
"steam_id": "90284674077386766",
"domain": null,
"id": 11189414,
"ip": "74.213.72.7",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Aguadilla",
"description": "\nKRUSTY RUST | CHILL SOLO SERVER - Fair-play Rust with good vibes. Active staff, clear rules, consistent enforcement. **RULES:** No cheating/scripting • No racism/hate • No doxxing/IRL threats • No exploit/bug abuse • No harassment • No spam • No teammate griefing. **INFO / WIPES / RATES / RULES: https://krustyrust.com",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776639199,
"score": 0,
"last_online": 1776853227,
"icon": null,
"name": "KrustyRust SOLO",
"connect": "74.213.72.7:28015",
"request": "74.213.72.7:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "PR",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1772699053,
"last_update": 1776853227,
"banned": false,
"wipe": 1775191471,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4812,
"language": "es",
"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/11189414");
$data = json_decode($json, true);
var_dump($data);