Project Zomboid
API для Dethtozacks Server
Мы предлагаем широкий выбор методов интеграции. Вы можете воспользоваться любым из них или создать свой собственный с помощью JSON API. Если у вас есть предложение по добавлению нового метода интеграции, пожалуйста, свяжитесь с нами. Связаться с нами
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/7127377json
{
"response": {
"steam_id": 90283993605286940,
"domain": null,
"id": 7127377,
"ip": "142.79.47.22",
"port": 26965,
"query": 26965,
"color": 0,
"city": "Los Angeles",
"description": "A Sophie v1.14 Server",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1775451125,
"score": 0,
"last_online": 1775826616,
"icon": null,
"name": "Dethtozacks Server",
"connect": "142.79.47.22:26965",
"request": "142.79.47.22:26965",
"map": "vehicle_interior;RavenCreek;Tay",
"gamemode": "Project Zomboid",
"version": "41.78.18",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1735935234,
"last_update": 1775826616,
"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": 320,
"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.ru/servers/7127377");
$data = json_decode($json, true);
var_dump($data);