DayZ
RU APOCALYPSE PVE HARDCORE 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/708761json
{
"response": {
"steam_id": "90284517562774539",
"domain": null,
"id": 708761,
"ip": "185.189.255.140",
"port": 2100,
"query": 27017,
"color": 0,
"city": "Moscow",
"description": "",
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1776315712,
"score": null,
"last_online": 1776345646,
"icon": null,
"name": "RU APOCALYPSE PVE HARDCORE",
"connect": "185.189.255.140:2100",
"request": "185.189.255.140:27017",
"map": "chernarusplus",
"gamemode": null,
"version": "1.29.162510",
"numplayers": 4,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 31,
"add_date": 1672092148,
"last_update": 1776345646,
"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": 2106,
"language": "ru",
"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/708761");
$data = json_decode($json, true);
var_dump($data);