Project Zomboid
Fallenlands (DE) 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11162193json
{
"response": {
"steam_id": "90285619929636882",
"domain": null,
"id": 11162193,
"ip": "85.214.246.198",
"port": 16261,
"query": 16261,
"color": 0,
"city": "Berlin",
"description": "Deutscher Rollenspielserver - Whitelist ueber Discord: https://discord.com/invite/z6kwWDxf6N",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1778220184,
"score": 0,
"last_online": 1778506813,
"icon": null,
"name": "Fallenlands (DE)",
"connect": "85.214.246.198:16261",
"request": "85.214.246.198:16261",
"map": "map_distanciado;Muldraugh, KY",
"gamemode": "Project Zomboid",
"version": "42.17",
"numplayers": 8,
"maxplayers": 32,
"bots": 0,
"secured": false,
"private": true,
"country": "DE",
"status": true,
"votes": 0,
"points": 84,
"add_date": 1772228285,
"last_update": 1778506813,
"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": 27,
"language": "de",
"parked": false,
"app": {
"id": 71,
"steam_id": 108600,
"name": "Project Zomboid",
"url": "project-zomboid"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11162193");
$data = json_decode($json, true);
var_dump($data);