DayZ
The Lab EU1 | Max 5 | dayzthelab.com 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/3025432json
{
"response": {
"steam_id": "90284415739505686",
"domain": null,
"id": 3025432,
"ip": "195.60.166.82",
"port": 2302,
"query": 27016,
"color": 0,
"city": "City of London",
"description": "",
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1776187917,
"score": null,
"last_online": 1776278418,
"icon": null,
"name": "The Lab EU1 | Max 5 | dayzthelab.com",
"connect": "195.60.166.82:2302",
"request": "195.60.166.82:27016",
"map": "chernarusplus",
"gamemode": null,
"version": "1.29.162510",
"numplayers": 91,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 58,
"add_date": 1708078178,
"last_update": 1776278418,
"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": 1268,
"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/3025432");
$data = json_decode($json, true);
var_dump($data);