DayZ
PK HU Chernarus | Vanilla 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10816146json
{
"response": {
"steam_id": "90285632301904918",
"domain": null,
"id": 10816146,
"ip": "45.144.194.35",
"port": 2302,
"query": 27016,
"color": 0,
"city": "Márok",
"description": null,
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1776293512,
"score": 0,
"last_online": 1778538638,
"icon": null,
"name": "PK HU Chernarus | Vanilla",
"connect": "45.144.194.35:2302",
"request": "45.144.194.35:27016",
"map": "chernarusplus",
"gamemode": null,
"version": "1.29.162510",
"numplayers": 1,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "HU",
"status": true,
"votes": 0,
"points": 31,
"add_date": 1767110859,
"last_update": 1778538638,
"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": 1480,
"language": "hu",
"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/10816146");
$data = json_decode($json, true);
var_dump($data);