Project Zomboid
PZRP Season 20 | projectzomboidroleplay.com 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/4807505json
{
"response": {
"steam_id": "90284553195679753",
"domain": null,
"id": 4807505,
"ip": "216.66.96.123",
"port": 16261,
"query": 16261,
"color": 0,
"city": "Springfield",
"description": "PZRP Season 20 | projectzomboidroleplay.com",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1775663527,
"score": 0,
"last_online": 1776430817,
"icon": null,
"name": "PZRP Season 20 | projectzomboidroleplay.com",
"connect": "216.66.96.123:16261",
"request": "216.66.96.123:16261",
"map": "Muldraugh, KY;Nettle Township;G",
"gamemode": "Project Zomboid",
"version": "41.78.19",
"numplayers": 5,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 66,
"add_date": 1718900000,
"last_update": 1776430817,
"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": 72,
"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/4807505");
$data = json_decode($json, true);
var_dump($data);