API для A Minecraft Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 741100,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": "Сервер | RolLand | | Политический сервер | 1.16.5 | для Minecraft версии [1.16 - 1.19]\n? привет! хотим представить новый политический рп сервер.\n\nздесь вас ждёт много всего:\n• возможность создать государство/нацию\n• много видов оружия\n• онлайн карта мира\n• покупка транспорта\n• ивенты\n• отзывчивая администрация\n\n✅ айпи сервера: rolland.gomc.fun\n— версия: 1.16.5\n\nс нетерпением ждем новых игроков! И желаем вам хорошей игры на сервере.",
"game": 9000034,
"owner": 31618,
"boosts": 1,
"last_offline": 1750457064,
"last_online": 1730678457,
"icon": null,
"name": "A Minecraft Server",
"connect": null,
"request": null,
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": false,
"private": null,
"country": "FI",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1675130990,
"last_update": 1750457064,
"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": 5575,
"language": "fi",
"parked": true,
"app": {
"id": 169,
"steam_id": 9000034,
"name": "Minecraft",
"url": "minecraft"
},
"server_owner": {
"username": "hellwey",
"avatar": "321e66ce-d60a-4f4a-a4eb-55e50ea5ecbd.jpg"
},
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/741100");
$data = json_decode($json, true);
var_dump($data);