✦ HydraCraft NETWORK [1.7 ↠ 1.21] ✦ DESCUENTO 35% https://tienda.hydracraft.es 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": null,
"domain": "mc.hydracraft.es",
"id": 9752170,
"ip": "51.222.145.245",
"port": 25565,
"query": 25565,
"project_id": null,
"color": 0,
"city": "Beauharnois",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1752327688,
"last_online": 1780929053,
"icon": null,
"name": "✦ HydraCraft NETWORK [1.7 ↠ 1.21] ✦ DESCUENTO 35% https://tienda.hydracraft.es",
"connect": "mc.hydracraft.es:25565",
"request": "51.222.145.245:25565",
"map": null,
"gamemode": "FML",
"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.12.2, 1.13, 1.13.1, 1.13.2, 1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19",
"numplayers": 48,
"maxplayers": 600,
"bots": 0,
"secured": null,
"private": null,
"country": "CA",
"status": true,
"votes": 0,
"points": 33,
"add_date": 1752327688,
"last_update": 1780929053,
"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": 1331,
"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.cn/servers/9752170");
$data = json_decode($json, true);
var_dump($data);