Minecraft
-*-*-*-*- Xenolith [1.19.4+] -*-*-*-*- | Ванилла | mc.xenolith.ru | Анархия | 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/1004017json
{
"response": {
"steam_id": null,
"domain": "mc.xenolith.ru",
"id": 1004017,
"ip": "185.255.135.166",
"port": 25565,
"query": 25565,
"color": 0,
"city": "Moscow",
"description": "[{\"id\":\"WSEQfeDqq2\",\"type\":\"paragraph\",\"data\":{\"text\":\"Сайт https://xenolith.ru\"}}]",
"game": 9000034,
"owner": 107764,
"boosts": 1,
"last_offline": 1775124091,
"score": null,
"last_online": 1776209410,
"icon": null,
"name": "-*-*-*-*- Xenolith [1.19.4+] -*-*-*-*- | Ванилла | mc.xenolith.ru | Анархия |",
"connect": "mc.xenolith.ru:25565",
"request": "185.255.135.166:25565",
"map": null,
"gamemode": null,
"version": "Xenolith 1.19.3",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": null,
"private": null,
"country": "RU",
"status": true,
"votes": 0,
"points": 90,
"add_date": 1685032751,
"last_update": 1776209410,
"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": 28,
"language": "ru",
"parked": false,
"app": {
"id": 169,
"steam_id": 9000034,
"name": "Minecraft",
"url": "minecraft"
},
"server_owner": {
"username": "nktvdz",
"avatar": "no.jpg",
"last_online": 1740430775
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/1004017");
$data = json_decode($json, true);
var_dump($data);