API для WinterMC ▍ GENS RELEASING SATURDAY wintermc.net ▍ Updates at: discord.gg/wintermc
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": null,
"domain": "mp.wintermc.net",
"id": 10777612,
"ip": "170.205.26.149",
"port": 25565,
"query": 25565,
"color": 0,
"city": "Sterling",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1770214904,
"last_online": 1780581735,
"icon": null,
"name": "WinterMC ▍ GENS RELEASING SATURDAY wintermc.net ▍ Updates at: discord.gg/wintermc",
"connect": "mp.wintermc.net:25565",
"request": "170.205.26.149:25565",
"map": null,
"gamemode": null,
"version": "1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.7.7, 1.7.8, 1.7.9, 1.7.10, 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.8.8, 1.8.9, 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.10, 1.10.1, 1.10.2, 1.11, 1.11.1, 1.11.2, 1.12, 1.12.1, 1.12.2, 1.13, 1.13.1, 1.13.2, 1",
"numplayers": 0,
"maxplayers": 2026,
"bots": 0,
"secured": null,
"private": null,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1766871223,
"last_update": 1780581735,
"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": 3988,
"language": "en",
"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/10777612");
$data = json_decode($json, true);
var_dump($data);