Project Zomboid
woshinidexingnu 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11437044json
{
"response": {
"steam_id": "90284509732679702",
"domain": null,
"id": 11437044,
"ip": "5.62.127.100",
"port": 19400,
"query": 19400,
"color": 0,
"city": "Poplar",
"description": "hosted by nitrado.net",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1774977306,
"score": 0,
"last_online": 1776392424,
"icon": null,
"name": "woshinidexingnu",
"connect": "5.62.127.100:19400",
"request": "5.62.127.100:19400",
"map": "Muldraugh, KY",
"gamemode": "Project Zomboid",
"version": "41.78.19",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774977306,
"last_update": 1776392424,
"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": 3165,
"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/11437044");
$data = json_decode($json, true);
var_dump($data);