SpecialBananaPrivate 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286666442242051",
"domain": null,
"id": 11730785,
"ip": "213.142.151.208",
"port": 25564,
"query": 25565,
"project_id": null,
"color": 0,
"city": "Istanbul",
"description": null,
"game": 573090,
"owner": null,
"boosts": 1,
"last_offline": 1781232783,
"last_online": 1780819277,
"icon": null,
"name": "SpecialBananaPrivate",
"connect": "213.142.151.208:25564",
"request": "213.142.151.208:25565",
"map": "Career",
"gamemode": "Stormworks",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": false,
"private": true,
"country": "TR",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780389976,
"last_update": 1781232783,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 100,
"language": "tr",
"parked": false,
"app": {
"id": 13818,
"steam_id": 573090,
"name": "Stormworks: Build and Rescue",
"url": "stormworks-build-and-rescue"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11730785");
$data = json_decode($json, true);
var_dump($data);