Minecraft
CHILITOCRAFTERS • (1.8 ➝ 26.x) DISCORD » discord.gg/MaKdV7f 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/6187253json
{
"response": {
"steam_id": null,
"domain": "play.chilitocrafters.net",
"id": 6187253,
"ip": "104.238.205.62",
"port": 25565,
"query": 25565,
"color": 0,
"city": "Miami",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1774793553,
"score": 0,
"last_online": 1776096047,
"icon": null,
"name": "CHILITOCRAFTERS • (1.8 ➝ 26.x) DISCORD » discord.gg/MaKdV7f",
"connect": "play.chilitocrafters.net:25565",
"request": "104.238.205.62:25565",
"map": null,
"gamemode": "FML",
"version": "Velocity 1.7.2-26.1.2",
"numplayers": 4,
"maxplayers": 2000,
"bots": 0,
"secured": null,
"private": null,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1728259338,
"last_update": 1776096047,
"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": 2375,
"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/6187253");
$data = json_decode($json, true);
var_dump($data);