Project Zomboid
API для Zomboid CR
Мы предлагаем широкий выбор методов интеграции. Вы можете воспользоваться любым из них или создать свой собственный с помощью JSON API. Если у вас есть предложение по добавлению нового метода интеграции, пожалуйста, свяжитесь с нами. Связаться с нами
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10873304json
{
"response": {
"steam_id": "90284096508189702",
"domain": null,
"id": 10873304,
"ip": "31.214.134.150",
"port": 13000,
"query": 13000,
"color": 0,
"city": "Miami",
"description": "hosted by nitrado.net",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1774461119,
"score": 0,
"last_online": 1775690416,
"icon": null,
"name": "Zomboid CR",
"connect": "31.214.134.150:13000",
"request": "31.214.134.150:13000",
"map": "AZSpawn;Raven Creek B42;Silent",
"gamemode": "Project Zomboid",
"version": "42.16",
"numplayers": 0,
"maxplayers": 6,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1768318868,
"last_update": 1775690416,
"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": 1534,
"language": "en",
"parked": false,
"app": {
"id": 71,
"steam_id": 108600,
"name": "Project Zomboid",
"url": "project-zomboid",
"popular_maps_available": false
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/10873304");
$data = json_decode($json, true);
var_dump($data);