PZ Reforged - B42 - Season 3 - "Patches on Patches" - Powered b 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286888768638992",
"domain": null,
"id": 10933572,
"ip": "108.49.76.232",
"port": 16261,
"query": 16261,
"project_id": null,
"color": 0,
"city": "Woonsocket",
"description": "Modded Server in development for the ODYN community. Powered by our Discord integrated Server Management Bot, Jeeves.",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1781092414,
"last_online": 1781200229,
"icon": null,
"name": "PZ Reforged - B42 - Season 3 - \"Patches on Patches\" - Powered b",
"connect": "108.49.76.232:16261",
"request": "108.49.76.232:16261",
"map": "HavenFall;Raven Creek B42;Muldr",
"gamemode": "Project Zomboid",
"version": "42.19",
"numplayers": 2,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1768486450,
"last_update": 1781200229,
"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": 242,
"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/10933572");
$data = json_decode($json, true);
var_dump($data);