HumanitZ
HytaleWelten.de HumanitZ Server 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11138744json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11138744,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Berlin",
"description": null,
"game": 1766060,
"owner": 124805,
"boosts": 1,
"last_offline": 1773381696,
"score": 0,
"last_online": 1772450415,
"icon": null,
"name": "HytaleWelten.de HumanitZ Server",
"connect": null,
"request": null,
"map": "Main Map",
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 24,
"bots": 0,
"secured": false,
"private": null,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1770586396,
"last_update": 1773381696,
"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": 317,
"language": "de",
"parked": true,
"app": {
"id": 1531516,
"steam_id": 1766060,
"name": "HumanitZ",
"url": "humanitz"
},
"server_owner": {
"username": "Matthias_Brenzel",
"avatar": "dbcdb449-5597-44a4-8eab-de47f27a2f54.jpg",
"last_online": 1775231445
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11138744");
$data = json_decode($json, true);
var_dump($data);