Minecraft
Felix's Minecraft Network Survival - Creative - FREEDOM! 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/1003567json
{
"response": {
"steam_id": null,
"domain": "minecraft.felixband.nl",
"id": 1003567,
"ip": "77.169.45.103",
"port": 25565,
"query": 25565,
"color": 0,
"city": "Bussum",
"description": "",
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1776007403,
"score": null,
"last_online": 1776122444,
"icon": null,
"name": "Felix's Minecraft Network Survival - Creative - FREEDOM!",
"connect": "minecraft.felixband.nl:25565",
"request": "77.169.45.103:25565",
"map": null,
"gamemode": null,
"version": "Paper 26.1.2",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": null,
"private": null,
"country": "NL",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1685032603,
"last_update": 1776122444,
"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": 2098,
"language": "nl",
"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/1003567");
$data = json_decode($json, true);
var_dump($data);