Minecraft
▶ CraftRise ∙ Türkiye'nin sunucusu ∙ 1.8/1.21 ◀ https://www.craftrise.com.tr/oyna 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/592712json
{
"response": {
"steam_id": null,
"domain": null,
"id": 592712,
"ip": "185.255.92.9",
"port": 25565,
"query": 25565,
"color": 0,
"city": "Istanbul",
"description": "",
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1775865760,
"score": null,
"last_online": 1776648616,
"icon": null,
"name": "▶ CraftRise ∙ Türkiye'nin sunucusu ∙ 1.8/1.21 ◀ https://www.craftrise.com.tr/oyna",
"connect": "185.255.92.9:25565",
"request": "185.255.92.9:25565",
"map": null,
"gamemode": "FML",
"version": "BungeeCord 1.8.x-1.21.x",
"numplayers": 345,
"maxplayers": 346,
"bots": 0,
"secured": null,
"private": null,
"country": "TR",
"status": true,
"votes": 0,
"points": 71,
"add_date": 1669241272,
"last_update": 1776648616,
"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": 50,
"language": "tr",
"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/592712");
$data = json_decode($json, true);
var_dump($data);