Royal SMP ѕᴜʀᴠɪᴠᴀʟ | ʟɪꜰᴇѕᴛᴇᴀʟ | ᴘᴠᴘ 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": null,
"domain": "play.royallsmp.fun",
"id": 11750185,
"ip": "185.207.166.244",
"port": 19132,
"query": 19132,
"color": 0,
"city": "Amsterdam",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1780519115,
"last_online": 1780551647,
"icon": null,
"name": "Royal SMP ѕᴜʀᴠɪᴠᴀʟ | ʟɪꜰᴇѕᴛᴇᴀʟ | ᴘᴠᴘ",
"connect": "play.royallsmp.fun:19132",
"request": "185.207.166.244:19132",
"map": null,
"gamemode": null,
"version": "1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2",
"numplayers": 43,
"maxplayers": 500,
"bots": 0,
"secured": null,
"private": null,
"country": "NL",
"status": true,
"votes": 0,
"points": 33,
"add_date": 1780519115,
"last_update": 1780551647,
"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": 1106,
"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/11750185");
$data = json_decode($json, true);
var_dump($data);