WKS 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286803004378132",
"domain": null,
"id": 11772303,
"ip": "175.137.206.169",
"port": 26261,
"query": 26261,
"project_id": null,
"color": 0,
"city": "Petaling Jaya",
"description": null,
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1781042059,
"last_online": 1781028076,
"icon": null,
"name": "WKS",
"connect": "175.137.206.169:26261",
"request": "175.137.206.169:26261",
"map": "map_distanciado;DawnTown;AZSpaw",
"gamemode": "Project Zomboid",
"version": "42.19",
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": true,
"country": "MY",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780997001,
"last_update": 1781042059,
"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": 12716,
"language": "ms",
"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/11772303");
$data = json_decode($json, true);
var_dump($data);