Minecraft
✈ TRC Studio 红色创意 |▶ 1.7.x - 1.21.x |◀ ✈ [!] 不定期开放状态已结束!欢迎回到 PLAY.TRCMC.COM ! 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/9906005json
{
"response": {
"steam_id": null,
"domain": "play.trc-studio.com",
"id": 9906005,
"ip": "111.230.233.184",
"port": 25565,
"query": 25565,
"color": 0,
"city": "Guangzhou",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1776730442,
"score": 0,
"last_online": 1776833485,
"icon": null,
"name": "✈ TRC Studio 红色创意 |▶ 1.7.x - 1.21.x |◀ ✈ [!] 不定期开放状态已结束!欢迎回到 PLAY.TRCMC.COM !",
"connect": "play.trc-studio.com:25565",
"request": "111.230.233.184:25565",
"map": null,
"gamemode": null,
"version": "PaperAirplane 1.7.x - 1.21.x",
"numplayers": 3,
"maxplayers": 811,
"bots": 0,
"secured": null,
"private": null,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1753912366,
"last_update": 1776833485,
"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": 3063,
"language": "zh",
"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/9906005");
$data = json_decode($json, true);
var_dump($data);