API для LOOT MC Лайт #1
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": null,
"domain": "lootmc.com",
"id": 11156401,
"ip": "87.228.84.194",
"port": 19140,
"query": 19140,
"project_id": null,
"color": 0,
"city": "St Petersburg",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1780470434,
"last_online": 1780687848,
"icon": null,
"name": "LOOT MC Лайт #1",
"connect": "lootmc.com:19140",
"request": "87.228.84.194:19140",
"map": "LOOT MC",
"gamemode": "Survival",
"version": null,
"numplayers": 61,
"maxplayers": 250,
"bots": 0,
"secured": null,
"private": null,
"country": "RU",
"status": true,
"votes": 0,
"points": 40,
"add_date": 1772228008,
"last_update": 1780687848,
"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": 823,
"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/11156401");
$data = json_decode($json, true);
var_dump($data);