DayZ
STALKERZ - Hardcore Roleplay Survival - Discord.gg/StalkerZ 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11424511json
{
"response": {
"steam_id": 0,
"domain": null,
"id": 11424511,
"ip": "72.56.119.181",
"port": 13260,
"query": 22726,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1777491163,
"score": 0,
"last_online": 1776947416,
"icon": null,
"name": "STALKERZ - Hardcore Roleplay Survival - Discord.gg/StalkerZ",
"connect": "72.56.119.181:13260",
"request": "72.56.119.181:22726",
"map": "chernarusplus",
"gamemode": null,
"version": "1.29.162510",
"numplayers": 0,
"maxplayers": 80,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1774600086,
"last_update": 1777491163,
"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": 4045,
"language": "de",
"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/11424511");
$data = json_decode($json, true);
var_dump($data);