DayZ
Cherno The Descent PVE {No Trader Safe Hub Electro} 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/6168742json
{
"response": {
"steam_id": "90284748533068824",
"domain": null,
"id": 6168742,
"ip": "185.216.147.184",
"port": 2302,
"query": 2303,
"color": 0,
"city": "City of London",
"description": "Get your server at GTXGaming.co.uk",
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1776781401,
"score": 0,
"last_online": 1776810022,
"icon": null,
"name": "Cherno The Descent PVE {No Trader Safe Hub Electro}",
"connect": "185.216.147.184:2302",
"request": "185.216.147.184:2303",
"map": "chernarusplus",
"gamemode": null,
"version": "1.29.162510",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1728136389,
"last_update": 1776810022,
"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": 830,
"language": "en",
"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/6168742");
$data = json_decode($json, true);
var_dump($data);