DayZ
CZ/SK DayZen PVE 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10877651json
{
"response": {
"steam_id": "90284744933321733",
"domain": null,
"id": 10877651,
"ip": "93.99.7.86",
"port": 3122,
"query": 3123,
"color": 0,
"city": "Řícmanice",
"description": null,
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1776249116,
"score": 0,
"last_online": 1776814927,
"icon": null,
"name": "CZ/SK DayZen PVE",
"connect": "93.99.7.86:3122",
"request": "93.99.7.86:3123",
"map": "chernarus2035",
"gamemode": null,
"version": "1.29.162510",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "CZ",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1768319305,
"last_update": 1776814927,
"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": 3194,
"language": "cs",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10877651");
$data = json_decode($json, true);
var_dump($data);