Minecraft
gm.link/u140946 A Minecraft Server 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/7427283json
{
"response": {
"steam_id": null,
"domain": null,
"id": 7427283,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": null,
"game": 9000034,
"owner": 140946,
"boosts": 1,
"last_offline": 1762494743,
"score": 0,
"last_online": 1761566682,
"icon": null,
"name": "gm.link/u140946 A Minecraft Server",
"connect": null,
"request": null,
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 2,
"bots": 0,
"secured": false,
"private": null,
"country": "GE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1739203497,
"last_update": 1762494743,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": true,
"hide_address": true,
"hide_query": false,
"position_game": 10401,
"language": "ka",
"parked": true,
"app": {
"id": 169,
"steam_id": 9000034,
"name": "Minecraft",
"url": "minecraft"
},
"server_owner": {
"username": "David_Petrosyan",
"avatar": "65b3b185-e600-4f5d-a85e-966107a75590.jpg",
"last_online": 1775213511
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/7427283");
$data = json_decode($json, true);
var_dump($data);