HumanitZ
的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11118230json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11118230,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Řícmanice",
"description": "[{\"id\":\"4xSF7oY4tF\",\"type\":\"paragraph\",\"data\":{\"text\":\"Server pro českou a slovenskou komunitu.\"}},{\"id\":\"JbpklSi4av\",\"type\":\"paragraph\",\"data\":{\"text\":\"Na serveru platí jasná pravidla, o kterých se dočtete na našem Discord serveru.\"}}]",
"game": 1766060,
"owner": 168305,
"boosts": 1,
"last_offline": 1776124882,
"score": 0,
"last_online": 1775257214,
"icon": null,
"name": null,
"connect": null,
"request": null,
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": null,
"private": null,
"country": "CZ",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1770113438,
"last_update": 1776124882,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 1,
"pvp": 1,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 169,
"language": "cs",
"parked": true,
"app": {
"id": 1531516,
"steam_id": 1766060,
"name": "HumanitZ",
"url": "humanitz"
},
"server_owner": {
"username": "sheepa",
"avatar": "250d22ab-73b3-43e2-af54-0fa823d720be.png",
"last_online": 1771027674
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11118230");
$data = json_decode($json, true);
var_dump($data);