Rust
Boat Building | Admin Menu | F1 Items | MedioTesting Builds 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11260365json
{
"response": {
"fps": 57,
"fps_avg": 54,
"entities_count": 64613,
"world_seed": 1337,
"world_size": 2500,
"steam_id": "90285044089902081",
"domain": null,
"id": 11260365,
"ip": "217.60.245.134",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Frankfurt am Main",
"description": "\nThis server is testing purpose only\r\n---------------------------\r\n- Behave nice\r\n- Don`t be a dick\r\n- Don`t try to do something that breaks server\r\n-------------------\r\nCreated and mainated by MediocratyItself",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1777063998,
"score": 0,
"last_online": 1777316419,
"icon": null,
"name": "Boat Building | Admin Menu | F1 Items | MedioTesting Builds",
"connect": "217.60.245.134:28015",
"request": "217.60.245.134:28017",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 16,
"maxplayers": 100,
"bots": 0,
"secured": false,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 67,
"add_date": 1774555191,
"last_update": 1777316419,
"banned": false,
"wipe": 1775292369,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 945,
"language": "de",
"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/11260365");
$data = json_decode($json, true);
var_dump($data);