Minecraft
Pathfinders ~ Farlands A long walk far far away ~ 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10866536json
{
"response": {
"steam_id": null,
"domain": "peenoisemc.xyz",
"id": 10866536,
"ip": "66.118.234.232",
"port": 25565,
"query": 25565,
"color": 0,
"city": "Singapore",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1777013003,
"score": 0,
"last_online": 1778595636,
"icon": null,
"name": "Pathfinders ~ Farlands A long walk far far away ~",
"connect": "peenoisemc.xyz:25565",
"request": "66.118.234.232:25565",
"map": null,
"gamemode": null,
"version": "26.1.2",
"numplayers": 2,
"maxplayers": 30,
"bots": 0,
"secured": null,
"private": null,
"country": "SG",
"status": true,
"votes": 0,
"points": 33,
"add_date": 1768317198,
"last_update": 1778595636,
"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": 1149,
"language": "en",
"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/10866536");
$data = json_decode($json, true);
var_dump($data);