Minecraft
API для A Minecraft Server
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11491894json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11491894,
"ip": "135.181.126.157",
"port": 25602,
"query": 25602,
"color": 0,
"city": "Helsinki",
"description": "[{\"id\":\"x-AnvEVB-_\",\"type\":\"paragraph\",\"data\":{\"text\":\"СМП Сервер \"}}]",
"game": 9000034,
"owner": 192129,
"boosts": 1,
"last_offline": 1778430138,
"score": 0,
"last_online": 1778594412,
"icon": null,
"name": "A Minecraft Server",
"connect": "135.181.126.157:25602",
"request": "135.181.126.157:25602",
"map": null,
"gamemode": null,
"version": "Spigot 1.16.5",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": null,
"private": null,
"country": "FI",
"status": true,
"votes": 0,
"points": 90,
"add_date": 1777673250,
"last_update": 1778594412,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": 1,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 36,
"language": "ru",
"parked": false,
"app": {
"id": 169,
"steam_id": 9000034,
"name": "Minecraft",
"url": "minecraft"
},
"server_owner": {
"username": "adsffv093",
"avatar": "fdaca998-3020-4954-bcb7-0479554a2a64.jpg",
"last_online": 1777824346
},
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11491894");
$data = json_decode($json, true);
var_dump($data);