Minecraft
| Fallout: The New Frontier | A Serious Fallout Role Play | | Join Us Today! | 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/362271json
{
"response": {
"steam_id": null,
"domain": "server.thebigdigmc.info",
"id": 362271,
"ip": "195.154.183.151",
"port": 25565,
"query": 25565,
"color": 0,
"city": "Paris",
"description": "",
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1768938683,
"score": null,
"last_online": 1778609488,
"icon": null,
"name": "| Fallout: The New Frontier | A Serious Fallout Role Play | | Join Us Today! |",
"connect": "server.thebigdigmc.info:25565",
"request": "195.154.183.151:25565",
"map": null,
"gamemode": null,
"version": "Spigot 1.16.5",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": null,
"private": null,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1597679888,
"last_update": 1778609488,
"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": 1845,
"language": "fr",
"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/362271");
$data = json_decode($json, true);
var_dump($data);