Minecraft
SMP Сервер | Без правил (почти) 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11488719json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11488719,
"ip": "95.54.46.80",
"port": 25565,
"query": 25565,
"color": 0,
"city": "Gatchina",
"description": "[{\"id\":\"wA5GmP3O9h\",\"type\":\"paragraph\",\"data\":{\"text\":\"Minecraft проект \\\"ProstoSMP\\\" — простая выживалка (SMP), без плагинов и т.д. Только выживание! Без вайпов. Без правил (почти 😄)\"}},{\"id\":\"TkDg3pmuP_\",\"type\":\"paragraph\",\"data\":{\"text\":\"Для игроков Bedrock айпи: 95.54.46.80:19132 (версия 26.1 и выше)\"}}]",
"game": 9000034,
"owner": 149730,
"boosts": 1,
"last_offline": 1776025397,
"score": 0,
"last_online": 1776079810,
"icon": null,
"name": "SMP Сервер | Без правил (почти)",
"connect": "95.54.46.80:25565",
"request": "95.54.46.80:25565",
"map": null,
"gamemode": null,
"version": "Velocity 1.7.2-1.21.11",
"numplayers": 13,
"maxplayers": 50,
"bots": 0,
"secured": null,
"private": null,
"country": "RU",
"status": true,
"votes": 0,
"points": 100,
"add_date": 1775764788,
"last_update": 1776079810,
"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": 14,
"language": "ru",
"parked": false,
"app": {
"id": 169,
"steam_id": 9000034,
"name": "Minecraft",
"url": "minecraft"
},
"server_owner": {
"username": "mishapeskarik",
"avatar": "ab2804cb-de8e-4939-ae0d-8dfbba3f9a72.jpg",
"last_online": 1776078935
},
"mods": [
{
"id": 1710,
"name": "TAB"
},
{
"id": 1699,
"name": "LuckPerms"
},
{
"id": 1595,
"name": "SkinsRestorer"
},
{
"id": 1593,
"name": "GeyserMC"
},
{
"id": 1683,
"name": "Chunky"
}
],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11488719");
$data = json_decode($json, true);
var_dump($data);