Project Zomboid
[RU] Hydrocraft | discord.gg/XXCUbfkb8h 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/646382json
{
"response": {
"steam_id": 90285614259689490,
"domain": null,
"id": 646382,
"ip": "78.29.39.14",
"port": 16261,
"query": 16261,
"color": 0,
"city": "Chelyabinsk",
"description": "PVPVE hard server | Trade System | No Wipe | personal safehouse | register off |discord.gg/XXCUbfkb8h",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1778490182,
"score": null,
"last_online": 1778528424,
"icon": null,
"name": "[RU] Hydrocraft | discord.gg/XXCUbfkb8h",
"connect": "78.29.39.14:16261",
"request": "78.29.39.14:16261",
"map": "RavenCreek;Chestown;BedfordFall",
"gamemode": "Project Zomboid",
"version": "41.78.19",
"numplayers": 1,
"maxplayers": 31,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1669887996,
"last_update": 1778528424,
"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": 150,
"language": "ru",
"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/646382");
$data = json_decode($json, true);
var_dump($data);