Minecraft
-=MC Eternal 2 | V: 1.2.0.3 | PVE=- -=Red Galaxy Network | 24/7 | Friendly Staff=- 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10462431json
{
"response": {
"steam_id": null,
"domain": "mce2.redgalaxynetwork.com",
"id": 10462431,
"ip": "38.129.136.34",
"port": 25568,
"query": 25568,
"color": 0,
"city": "Draper",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1776496406,
"score": 0,
"last_online": 1776814234,
"icon": null,
"name": "-=MC Eternal 2 | V: 1.2.0.3 | PVE=- -=Red Galaxy Network | 24/7 | Friendly Staff=-",
"connect": "mce2.redgalaxynetwork.com:25568",
"request": "38.129.136.34:25568",
"map": null,
"gamemode": null,
"version": "1.20.1",
"numplayers": 2,
"maxplayers": 20,
"bots": 0,
"secured": null,
"private": null,
"country": "US",
"status": true,
"votes": 0,
"points": 36,
"add_date": 1760475387,
"last_update": 1776814234,
"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": 802,
"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/10462431");
$data = json_decode($json, true);
var_dump($data);