Minecraft
API для sᴛᴀʀᴍᴄᴠɴ.ᴄᴏᴍ - 1.18.2 » 1.21+ Hỗ Trợ Java [1.18] & Bedrock [1.21]
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11075977json
{
"response": {
"steam_id": null,
"domain": "starmcvn.com",
"id": 11075977,
"ip": "15.235.181.54",
"port": 25565,
"query": 25565,
"color": 0,
"city": "Singapore",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1776309119,
"score": 0,
"last_online": 1776825638,
"icon": null,
"name": "sᴛᴀʀᴍᴄᴠɴ.ᴄᴏᴍ - 1.18.2 » 1.21+ Hỗ Trợ Java [1.18] & Bedrock [1.21]",
"connect": "starmcvn.com:25565",
"request": "15.235.181.54:25565",
"map": null,
"gamemode": "FML",
"version": "Purpur 1.20.4",
"numplayers": 15,
"maxplayers": 666,
"bots": 0,
"secured": null,
"private": null,
"country": "SG",
"status": true,
"votes": 0,
"points": 31,
"add_date": 1769976049,
"last_update": 1776825638,
"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": 1434,
"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/11075977");
$data = json_decode($json, true);
var_dump($data);