Project Zomboid
API для IssaBunn's RP! (Season 2)
Мы предлагаем широкий выбор методов интеграции. Вы можете воспользоваться любым из них или создать свой собственный с помощью JSON API. Если у вас есть предложение по добавлению нового метода интеграции, пожалуйста, свяжитесь с нами. Связаться с нами
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11102975json
{
"response": {
"steam_id": "90284157147167746",
"domain": null,
"id": 11102975,
"ip": "162.245.190.98",
"port": 17456,
"query": 17456,
"color": 0,
"city": "Teterboro",
"description": "Community driven RP server with focus on story, season 2, IssaBunn!",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1775668927,
"score": 0,
"last_online": 1775838019,
"icon": null,
"name": "IssaBunn's RP! (Season 2)",
"connect": "162.245.190.98:17456",
"request": "162.245.190.98:17456",
"map": "vehicle_interior;researchbase;r",
"gamemode": "Project Zomboid",
"version": "41.78.19",
"numplayers": 0,
"maxplayers": 21,
"bots": 0,
"secured": false,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1770029963,
"last_update": 1775838019,
"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": 2043,
"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/11102975");
$data = json_decode($json, true);
var_dump($data);