DayZ
Zloy Trudyaga [PVP] [RU] 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11491862json
{
"response": {
"steam_id": "90285630452736025",
"domain": null,
"id": 11491862,
"ip": "109.248.4.59",
"port": 2374,
"query": 2375,
"color": 0,
"city": "Moscow",
"description": null,
"game": 221100,
"owner": 191087,
"boosts": 1,
"last_offline": 1777698192,
"score": 5,
"last_online": 1778524818,
"icon": null,
"name": "Zloy Trudyaga [PVP] [RU]",
"connect": "109.248.4.59:2374",
"request": "109.248.4.59:2375",
"map": "enoch",
"gamemode": null,
"version": "1.29.162510",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 6,
"points": 66,
"add_date": 1777638620,
"last_update": 1778524818,
"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": 369,
"language": "ru",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": {
"username": "sania_zonofg",
"avatar": "49aaa611-11ad-4a81-8879-dac47f653067.jpg",
"last_online": 1778187732
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11491862");
$data = json_decode($json, true);
var_dump($data);