DayZ
Greenhell: Deadfall (1PP / 2.1) 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/1704248json
{
"response": {
"steam_id": "90285631651127303",
"domain": null,
"id": 1704248,
"ip": "135.148.136.226",
"port": 2902,
"query": 27916,
"color": 0,
"city": "Watson",
"description": "",
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1776312714,
"score": null,
"last_online": 1778535612,
"icon": null,
"name": "Greenhell: Deadfall (1PP / 2.1)",
"connect": "135.148.136.226:2902",
"request": "135.148.136.226:27916",
"map": "Deadfall",
"gamemode": null,
"version": "1.29.162510",
"numplayers": 50,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 82,
"add_date": 1699052184,
"last_update": 1778535612,
"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": 164,
"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/1704248");
$data = json_decode($json, true);
var_dump($data);