API для nitrado.net Zomboid
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1786220550,
"app": {
"id": 71,
"name": "Project Zomboid",
"steam_id": 108600,
"url": "project-zomboid"
},
"color": 0,
"connect": "5.83.172.205:10070",
"country": "DE",
"domain": null,
"game": 108600,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 13581682,
"ip": "5.83.172.205",
"language": "de",
"last_update": 1790476552,
"map": "Muldraugh, KY",
"maxplayers": 6,
"name": "nitrado.net Zomboid",
"numplayers": 0,
"official": null,
"points": 60,
"port": 10070,
"private": true,
"project_id": null,
"pve": null,
"pvp": 0,
"query": 10070,
"request": "5.83.172.205:10070",
"secured": true,
"status": true,
"steam_id": "90293466992118799",
"version": "42.20",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Франкфурт-на-Майне",
"description": "hosted by nitrado.net",
"disabled_modules": [],
"gamemode": "Project Zomboid",
"hidden": false,
"last_offline": 1790054989,
"last_online": 1790476552,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 4070,
"wipe_period": null,
"open": "1",
"public": "0",
"modCount": "1",
"listentype": "d",
"environment": "l",
"a2s_protocol": 17,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/13581682");
$data = json_decode($json, true);
var_dump($data);