API для JUSTMC (1.16 – 1.21.11) Creative+ • SkyBlockTech • LuckyWars • BedWars
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": null,
"domain": "play.justmc.io",
"id": 11750689,
"ip": "132.243.222.133",
"port": 25565,
"query": 25565,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1780519129,
"last_online": 1780562422,
"icon": null,
"name": "JUSTMC (1.16 – 1.21.11) Creative+ • SkyBlockTech • LuckyWars • BedWars",
"connect": "play.justmc.io:25565",
"request": "132.243.222.133:25565",
"map": null,
"gamemode": "FML",
"version": "1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.",
"numplayers": 249,
"maxplayers": 250,
"bots": 0,
"secured": null,
"private": null,
"country": "DE",
"status": true,
"votes": 0,
"points": 71,
"add_date": 1780519129,
"last_update": 1780562422,
"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": 70,
"language": "de",
"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.ru/servers/11750689");
$data = json_decode($json, true);
var_dump($data);