Project Zomboid
API для My PZ Server
Мы предлагаем широкий выбор методов интеграции. Вы можете воспользоваться любым из них или создать свой собственный с помощью JSON API. Если у вас есть предложение по добавлению нового метода интеграции, пожалуйста, свяжитесь с нами. Связаться с нами
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11324001json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11324001,
"ip": "63.135.165.54",
"port": 9110,
"query": 9110,
"color": 0,
"city": "Dallas",
"description": null,
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1775690486,
"score": 0,
"last_online": 1774986658,
"icon": null,
"name": "My PZ Server",
"connect": "63.135.165.54:9110",
"request": "63.135.165.54:9110",
"map": "West Point Expansion_B42;Taylor",
"gamemode": "Project Zomboid",
"version": null,
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1774594056,
"last_update": 1775690486,
"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": 9276,
"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/11324001");
$data = json_decode($json, true);
var_dump($data);