PZ Reforged Skunk Works 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": 90286495270457360,
"domain": null,
"id": 11719040,
"ip": "108.49.76.232",
"port": 16263,
"query": 16263,
"color": 0,
"city": "Woonsocket",
"description": "Experimental Test Server for the ODYN community. Powered by our Discord integrated Server Management Bot, Jeeves.",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1780324252,
"last_online": 1780353627,
"icon": null,
"name": "PZ Reforged Skunk Works",
"connect": "108.49.76.232:16263",
"request": "108.49.76.232:16263",
"map": "HavenFall;Raven Creek B42;Muldr",
"gamemode": "Project Zomboid",
"version": "42.19",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1780324252,
"last_update": 1780353627,
"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": 3390,
"language": "en",
"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/11719040");
$data = json_decode($json, true);
var_dump($data);