DayZ
[UA|EU]Hope fo life PVE|PVP|AI|18+ 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10536876json
{
"response": {
"steam_id": "90284742703337485",
"domain": null,
"id": 10536876,
"ip": "54.38.62.90",
"port": 2491,
"query": 2492,
"color": 0,
"city": "Warsaw",
"description": null,
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1776782602,
"score": 0,
"last_online": 1776783033,
"icon": null,
"name": "[UA|EU]Hope fo life PVE|PVP|AI|18+",
"connect": "54.38.62.90:2491",
"request": "54.38.62.90:2492",
"map": "chernarusplus",
"gamemode": null,
"version": "1.29.162510",
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": true,
"private": true,
"country": "PL",
"status": true,
"votes": 0,
"points": 39,
"add_date": 1762519729,
"last_update": 1776783033,
"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": 1559,
"language": "pl",
"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/10536876");
$data = json_decode($json, true);
var_dump($data);