API для A Minecraft Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1728261041,
"app": {
"id": 169,
"name": "Minecraft",
"steam_id": 9000034,
"url": "minecraft"
},
"color": 0,
"connect": "dragonzkey.apexmc.co:25642",
"country": "NL",
"domain": "dragonzkey.apexmc.co",
"game": 9000034,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 6191929,
"ip": "23.109.46.97",
"language": "nl",
"last_update": 1790452525,
"map": null,
"maxplayers": 6,
"name": "A Minecraft Server",
"numplayers": 0,
"official": null,
"points": 30,
"port": 25642,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 25642,
"request": "23.109.46.97:25642",
"secured": null,
"status": true,
"steam_id": null,
"version": "1.16.5",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Амстердам",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1790069068,
"last_online": 1790452525,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 2081,
"wipe_period": null,
"protocol": 754
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/6191929");
$data = json_decode($json, true);
var_dump($data);