Minecraft
❤ INFINITY WORLDS ❤ ⋆ Minecraft 1.7.X - 1.21.11 | ✔ᴏɴʟɪɴᴇ ✮ Survival ✮ 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11156356json
{
"response": {
"steam_id": null,
"domain": "infinityworlds.ru",
"id": 11156356,
"ip": "5.189.120.8",
"port": 25565,
"query": 25565,
"color": 0,
"city": "Yekaterinburg",
"description": null,
"game": 9000034,
"owner": 173075,
"boosts": 1,
"last_offline": 1776690245,
"score": 0,
"last_online": 1776832824,
"icon": null,
"name": "❤ INFINITY WORLDS ❤ ⋆ Minecraft 1.7.X - 1.21.11 | ✔ᴏɴʟɪɴᴇ ✮ Survival ✮",
"connect": "infinityworlds.ru:25565",
"request": "5.189.120.8:25565",
"map": null,
"gamemode": null,
"version": "Paper 1.21.11",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": null,
"private": null,
"country": "RU",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1772228004,
"last_update": 1776832824,
"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": 128,
"language": "ru",
"parked": false,
"app": {
"id": 169,
"steam_id": 9000034,
"name": "Minecraft",
"url": "minecraft"
},
"server_owner": {
"username": "mzarecnyj",
"avatar": "no.jpg",
"last_online": 1772545262
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11156356");
$data = json_decode($json, true);
var_dump($data);