Minecraft
API для VanillaCrafts | Версия 1.20.1-26.1.2 Сервер без приватов, гриферство запрещено
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10414708json
{
"response": {
"steam_id": null,
"domain": "play.vanillacrafts.ru",
"id": 10414708,
"ip": "87.228.56.245",
"port": 25565,
"query": 25565,
"color": 0,
"city": "St Petersburg",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1775831486,
"score": 0,
"last_online": 1777629629,
"icon": null,
"name": "VanillaCrafts | Версия 1.20.1-26.1.2 Сервер без приватов, гриферство запрещено",
"connect": "play.vanillacrafts.ru:25565",
"request": "87.228.56.245:25565",
"map": null,
"gamemode": null,
"version": "1.20.1",
"numplayers": 14,
"maxplayers": 32,
"bots": 0,
"secured": null,
"private": null,
"country": "RU",
"status": true,
"votes": 0,
"points": 46,
"add_date": 1759824701,
"last_update": 1777629629,
"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": 628,
"language": "ru",
"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/10414708");
$data = json_decode($json, true);
var_dump($data);