Minecraft
gm.link/u168710 to Eternal Horizons 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11142835json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11142835,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Mumbai",
"description": null,
"game": 9000034,
"owner": 168710,
"boosts": 1,
"last_offline": 1772316574,
"score": 0,
"last_online": 1771417214,
"icon": null,
"name": "gm.link/u168710 to Eternal Horizons",
"connect": null,
"request": null,
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": false,
"private": null,
"country": "IN",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1770907825,
"last_update": 1772316574,
"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": 5788,
"language": "hi",
"parked": true,
"app": {
"id": 169,
"steam_id": 9000034,
"name": "Minecraft",
"url": "minecraft"
},
"server_owner": {
"username": "sakin_saimon",
"avatar": "c3a1ead9-fa2b-4573-a15e-96270a103de2.jpg",
"last_online": 1771263306
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11142835");
$data = json_decode($json, true);
var_dump($data);