Minecraft
API для PRISONS.DK [1.21.10] OP-Prison - Prison - Sky-Prison
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10737317json
{
"response": {
"steam_id": null,
"domain": "spil.prisons.dk",
"id": 10737317,
"ip": "185.144.70.239",
"port": 25565,
"query": 25565,
"color": 0,
"city": "Maisach",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1775570565,
"score": 0,
"last_online": 1776098449,
"icon": null,
"name": "PRISONS.DK [1.21.10] OP-Prison - Prison - Sky-Prison",
"connect": "spil.prisons.dk:25565",
"request": "185.144.70.239:25565",
"map": null,
"gamemode": "FML",
"version": "BungeeCord 1.8.x-1.21.x",
"numplayers": 0,
"maxplayers": 1000,
"bots": 0,
"secured": null,
"private": null,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1766250036,
"last_update": 1776098449,
"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": 3979,
"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/10737317");
$data = json_decode($json, true);
var_dump($data);