Project Zomboid
Our World Z v.4 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11105180json
{
"response": {
"steam_id": "90284383157058584",
"domain": null,
"id": 11105180,
"ip": "209.192.227.12",
"port": 26965,
"query": 26965,
"color": 0,
"city": "Dallas",
"description": "This one may last forever....",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1775787119,
"score": 0,
"last_online": 1776313814,
"icon": null,
"name": "Our World Z v.4",
"connect": "209.192.227.12:26965",
"request": "209.192.227.12:26965",
"map": "Muldraugh, KY",
"gamemode": "Project Zomboid",
"version": "42.16",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1770031169,
"last_update": 1776313814,
"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": 1887,
"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/11105180");
$data = json_decode($json, true);
var_dump($data);