Minecraft
API для ┊ CyberCraft ┊ ≫ Мир приключений!
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11489409json
{
"response": {
"steam_id": null,
"domain": "Cybercraftt.ddns.net",
"id": 11489409,
"ip": "176.109.191.40",
"port": 25565,
"query": 25565,
"color": 0,
"city": "Luhansk",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1776420493,
"score": 0,
"last_online": 1776523243,
"icon": null,
"name": "┊ CyberCraft ┊ ≫ Мир приключений!",
"connect": "Cybercraftt.ddns.net:25565",
"request": "176.109.191.40:25565",
"map": null,
"gamemode": null,
"version": "Velocity 1.7.2-1.21.10",
"numplayers": 2,
"maxplayers": 25,
"bots": 0,
"secured": null,
"private": null,
"country": "UA",
"status": true,
"votes": 0,
"points": 32,
"add_date": 1776420493,
"last_update": 1776523243,
"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": 1596,
"language": "uk",
"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/11489409");
$data = json_decode($json, true);
var_dump($data);