DayZ
FRONT - Vanilla PVP 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11489803json
{
"response": {
"steam_id": "90284861079877651",
"domain": null,
"id": 11489803,
"ip": "195.18.27.78",
"port": 2602,
"query": 2605,
"color": 0,
"city": "Moscow",
"description": "[{\"id\":\"45Q17FVhEf\",\"type\":\"paragraph\",\"data\":{\"text\":\"FRONT - минимум модов, максимум напряжения. https://frontdayz.life/\"}}]",
"game": 221100,
"owner": 189255,
"boosts": 1,
"last_offline": 1776960200,
"score": 0,
"last_online": 1776963015,
"icon": null,
"name": "FRONT - Vanilla PVP",
"connect": "195.18.27.78:2602",
"request": "195.18.27.78:2605",
"map": "chernarusplus",
"gamemode": null,
"version": "1.29.162510",
"numplayers": 3,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 1,
"points": 93,
"add_date": 1776871825,
"last_update": 1776963015,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": 1,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 537,
"language": "ru",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": {
"username": "novikov",
"avatar": "b6b204e4-40ae-4f00-a19c-6ff5108fb1ed.jpg",
"last_online": 1776953102
},
"mods": [
{
"id": 1615,
"name": "CF"
},
{
"id": 1614,
"name": "VPPAdminTools"
}
],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11489803");
$data = json_decode($json, true);
var_dump($data);