【JPN】ちきんサーバー 別館 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286577275280384",
"domain": null,
"id": 11742148,
"ip": "60.41.173.149",
"port": 7778,
"query": 27015,
"color": 0,
"city": "Roppongi",
"description": null,
"game": 887570,
"owner": null,
"boosts": 1,
"last_offline": 1780539261,
"last_online": 1780578205,
"icon": null,
"name": "【JPN】ちきんサーバー 別館",
"connect": "60.41.173.149:7778",
"request": "60.41.173.149:27015",
"map": "Pillars (8P)",
"gamemode": "1",
"version": "0.6.2.3",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": false,
"private": false,
"country": "JP",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780473217,
"last_update": 1780578205,
"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": 19,
"language": "ja",
"parked": false,
"app": {
"id": 1559663,
"steam_id": 887570,
"name": "NEBULOUS: Fleet Command",
"url": "nebulous-fleet-command"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11742148");
$data = json_decode($json, true);
var_dump($data);