Minecraft
All the Mods 10 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11488245json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11488245,
"ip": "45.93.200.16",
"port": 25580,
"query": 25580,
"color": 0,
"city": "Nizhnevartovsk",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1775721726,
"score": 0,
"last_online": 1776088224,
"icon": null,
"name": "All the Mods 10",
"connect": "45.93.200.16:25580",
"request": "45.93.200.16:25580",
"map": null,
"gamemode": null,
"version": "1.21.1",
"numplayers": 1,
"maxplayers": 20,
"bots": 0,
"secured": null,
"private": null,
"country": "RU",
"status": true,
"votes": 0,
"points": 32,
"add_date": 1775467328,
"last_update": 1776088224,
"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": 1518,
"language": "ru",
"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/11488245");
$data = json_decode($json, true);
var_dump($data);