LaTech Unofficial Minecraft Server 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": null,
"domain": "play.latechsmp.net",
"id": 10529404,
"ip": "147.185.221.212",
"port": 50060,
"query": 50060,
"color": 0,
"city": "Eugene",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1780553613,
"last_online": 1780071087,
"icon": null,
"name": "LaTech Unofficial Minecraft Server",
"connect": "play.latechsmp.net:50060",
"request": "147.185.221.212:50060",
"map": null,
"gamemode": "Survival",
"version": "Paper 26.1.2",
"numplayers": 0,
"maxplayers": 1500,
"bots": 0,
"secured": null,
"private": null,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1762516933,
"last_update": 1780553613,
"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": 5272,
"language": "en",
"parked": false,
"app": {
"id": 169,
"steam_id": 9000034,
"name": "Minecraft",
"url": "minecraft"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10529404");
$data = json_decode($json, true);
var_dump($data);