Adamastor EU | Monthly 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 111,
"fps_avg": 106,
"entities_count": 43245,
"world_seed": 1337,
"world_size": 3000,
"steam_id": "90286429023942657",
"domain": null,
"id": 11501849,
"ip": "193.160.23.146",
"port": 28035,
"query": 28037,
"color": 0,
"city": "Maidenhead",
"description": "\nAdamastor is a Mythical creature that lurked and destroyed Portuguese ships that were trying to pass the cape of torments in order to reach India.\r\nLike Rust one must endure the pain, endure the journey. Sooner or later the cape is crossed and its no longer a torment but a symbol of hope.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780206834,
"last_online": 1780607433,
"icon": null,
"name": "Adamastor EU | Monthly",
"connect": "193.160.23.146:28035",
"request": "193.160.23.146:28037",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779207182,
"last_update": 1780607433,
"banned": false,
"wipe": 1778696228,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4658,
"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/11501849");
$data = json_decode($json, true);
var_dump($data);