API для ULTIMATEPRISON | LOTS OF NEW UPDATES ᴊᴏɪɴ ɴᴏᴡ ᴅɪꜱᴄᴏʀᴅ.ᴜʟᴛɪᴍᴀᴛᴇᴘʀɪꜱᴏɴ.ɴᴇᴛ
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": null,
"domain": "mc.ultimateprison.net",
"id": 8433225,
"ip": "51.195.105.4",
"port": 25565,
"query": 25565,
"project_id": null,
"color": 0,
"city": "Limburg an der Lahn",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1778426016,
"last_online": 1780940530,
"icon": null,
"name": "ULTIMATEPRISON | LOTS OF NEW UPDATES ᴊᴏɪɴ ɴᴏᴡ ᴅɪꜱᴄᴏʀᴅ.ᴜʟᴛɪᴍᴀᴛᴇᴘʀɪꜱᴏɴ.ɴᴇᴛ",
"connect": "mc.ultimateprison.net:25565",
"request": "51.195.105.4:25565",
"map": null,
"gamemode": "FML",
"version": "1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.8.8, 1.8.9",
"numplayers": 0,
"maxplayers": 2026,
"bots": 0,
"secured": null,
"private": null,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1743854436,
"last_update": 1780940530,
"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": 3118,
"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/8433225");
$data = json_decode($json, true);
var_dump($data);