API для ᴄᴏɴᴄɪᴛʏ ┃ ꜱᴋʏʙʟᴏᴄᴋ ᴠ4 ᴍᴍᴏʀᴘɢ ʏᴇɴɪ ᴏʏᴜɴ, ᴇꜰꜱᴀɴᴇᴠɪ ᴍᴀᴄᴇʀᴀ!
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": null,
"domain": "con.city",
"id": 11750193,
"ip": "45.195.75.98",
"port": 25565,
"query": 25565,
"project_id": null,
"color": 0,
"city": "Istanbul",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1786372720,
"last_online": 1786682715,
"icon": null,
"name": "ᴄᴏɴᴄɪᴛʏ ┃ ꜱᴋʏʙʟᴏᴄᴋ ᴠ4 ᴍᴍᴏʀᴘɢ ʏᴇɴɪ ᴏʏᴜɴ, ᴇꜰꜱᴀɴᴇᴠɪ ᴍᴀᴄᴇʀᴀ!",
"connect": "con.city:25565",
"request": "45.195.75.98:25565",
"map": null,
"gamemode": null,
"version": "1.7.2, 26.2",
"numplayers": 35,
"maxplayers": 500,
"bots": 0,
"secured": null,
"private": null,
"country": "TR",
"status": true,
"votes": 0,
"points": 33,
"add_date": 1780519115,
"last_update": 1786682715,
"ban_reason": null,
"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": 1007,
"language": "tr",
"parked": false,
"app": {
"id": 169,
"steam_id": 9000034,
"name": "Minecraft",
"url": "minecraft"
},
"server_owner": null,
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11750193");
$data = json_decode($json, true);
var_dump($data);