DayZ
Illegals | Sakhal | PvE World & PvP Zones 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/8170992json
{
"response": {
"steam_id": "90284753517194250",
"domain": null,
"id": 8170992,
"ip": "212.22.93.112",
"port": 2602,
"query": 2605,
"color": 0,
"city": "Moscow",
"description": null,
"game": 221100,
"owner": 92418,
"boosts": 1,
"last_offline": 1776822194,
"score": 0,
"last_online": 1776801754,
"icon": null,
"name": "Illegals | Sakhal | PvE World & PvP Zones",
"connect": "212.22.93.112:2602",
"request": "212.22.93.112:2605",
"map": "sakhal",
"gamemode": null,
"version": "1.29.162510",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": true,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1742209393,
"last_update": 1776822194,
"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": 4408,
"language": "ru",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": {
"username": "dmdv",
"avatar": "941d92ba-e0f8-438e-abeb-fb81b12c1bdd.jpg",
"last_online": 1749327298
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/8170992");
$data = json_decode($json, true);
var_dump($data);