Project Zomboid
[RU-42.16] Die-Z-Hardcore Mode [PVE] 的 API
我们提供多种集成方式。 你可以使用其中任意一种,也可以通过 JSON API 自行创建集成。 如果你希望我们新增其他集成方式,请联系我们。 联系我们
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11323401json
{
"response": {
"steam_id": "90284118586971156",
"domain": null,
"id": 11323401,
"ip": "89.22.177.184",
"port": 16261,
"query": 16261,
"color": 0,
"city": "Krasnoyarsk",
"description": null,
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1775501528,
"score": 0,
"last_online": 1775716822,
"icon": null,
"name": "[RU-42.16] Die-Z-Hardcore Mode [PVE]",
"connect": "89.22.177.184:16261",
"request": "89.22.177.184:16261",
"map": "muldraughmilitarybaseas24;Raven",
"gamemode": "Project Zomboid",
"version": "42.16",
"numplayers": 1,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 32,
"add_date": 1774594033,
"last_update": 1775716822,
"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": 3736,
"language": "ru",
"parked": false,
"app": {
"id": 71,
"steam_id": 108600,
"name": "Project Zomboid",
"url": "project-zomboid",
"popular_maps_available": false
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11323401");
$data = json_decode($json, true);
var_dump($data);