DayZ
Bartleskeet|Frostline|Fast Night|Survival/PvE/NonKOS 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10032401json
{
"response": {
"steam_id": "90284733642335253",
"domain": null,
"id": 10032401,
"ip": "68.231.6.213",
"port": 2402,
"query": 2405,
"color": 0,
"city": "Phoenix",
"description": "[{\"id\":\"sWksAPzPb-\",\"type\":\"header\",\"data\":{\"text\":\"Welcome to the Bartleskeet Frostline server Fast Night Survival/PvE NonKOS\",\"level\":2}}]",
"game": 221100,
"owner": 130468,
"boosts": 1,
"last_offline": 1776314472,
"score": 0,
"last_online": 1776797415,
"icon": null,
"name": "Bartleskeet|Frostline|Fast Night|Survival/PvE/NonKOS",
"connect": "68.231.6.213:2402",
"request": "68.231.6.213:2405",
"map": "sakhal",
"gamemode": null,
"version": "1.29.162510",
"numplayers": 0,
"maxplayers": 60,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 90,
"add_date": 1755056944,
"last_update": 1776797415,
"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": 614,
"language": "en",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": {
"username": "darkschneidr",
"avatar": "86be3547-afbf-405d-b575-3a628a2e5a58.jpg",
"last_online": 1761679806
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10032401");
$data = json_decode($json, true);
var_dump($data);