Rust
Daryls Testing 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11189569json
{
"response": {
"fps": 141,
"fps_avg": 147,
"entities_count": 81598,
"world_seed": 1310747615,
"world_size": 3700,
"steam_id": "90285642936015878",
"domain": null,
"id": 11189569,
"ip": "51.161.198.108",
"port": 60410,
"query": 60412,
"color": 0,
"city": "North Sydney",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778300582,
"score": 0,
"last_online": 1778559058,
"icon": null,
"name": "Daryls Testing",
"connect": "51.161.198.108:60410",
"request": "51.161.198.108:60412",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "AU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1772699060,
"last_update": 1778559058,
"banned": false,
"wipe": 1778300409,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5926,
"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/11189569");
$data = json_decode($json, true);
var_dump($data);