Minecraft
CRYSTALCHAOS DEV SERVER LOL 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/8075574json
{
"response": {
"steam_id": null,
"domain": null,
"id": 8075574,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": null,
"game": 9000034,
"owner": 126496,
"boosts": 1,
"last_offline": 1761066209,
"score": 0,
"last_online": 1758622228,
"icon": null,
"name": "CRYSTALCHAOS DEV SERVER LOL",
"connect": null,
"request": null,
"map": null,
"gamemode": "FML",
"version": null,
"numplayers": 0,
"maxplayers": 1000,
"bots": 0,
"secured": false,
"private": null,
"country": "BE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1741520488,
"last_update": 1761066209,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": true,
"hide_query": false,
"position_game": 5357,
"language": "nl",
"parked": true,
"app": {
"id": 169,
"steam_id": 9000034,
"name": "Minecraft",
"url": "minecraft"
},
"server_owner": {
"username": "Boggy_Dev",
"avatar": "b50ff8fc-6401-4cfd-b8eb-b4d98bfa0e36.jpg",
"last_online": 1752581055
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/8075574");
$data = json_decode($json, true);
var_dump($data);