Project Zomboid
PVE - Project Cocoa 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/7623172json
{
"response": {
"steam_id": 90285187303782400,
"domain": null,
"id": 7623172,
"ip": "159.69.66.172",
"port": 28650,
"query": 28650,
"color": 0,
"city": "Falkenstein",
"description": "PVE - CLEAR COVE MAP - COMMUNITY CENTER - HARDCORE - LOW LOOT \\n\\n Join us on Discord : https://discord.gg/ecbjB3GsQh",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1777590192,
"score": 0,
"last_online": 1777666823,
"icon": null,
"name": "PVE - Project Cocoa",
"connect": "159.69.66.172:28650",
"request": "159.69.66.172:28650",
"map": "clearcove;AZSpawn",
"gamemode": "Project Zomboid",
"version": "41.78.16",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": true,
"country": "DE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1739508839,
"last_update": 1777666823,
"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": 312,
"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/7623172");
$data = json_decode($json, true);
var_dump($data);