API для WsiokyZomboid
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1785343909,
"app": {
"id": 71,
"name": "Project Zomboid",
"steam_id": 108600,
"url": "project-zomboid"
},
"color": 0,
"connect": "195.3.223.102:25607",
"country": "PL",
"domain": null,
"game": 108600,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 12975111,
"ip": "195.3.223.102",
"language": "pl",
"last_update": 1790185519,
"map": "Muldraugh, KY",
"maxplayers": 10,
"name": "WsiokyZomboid",
"numplayers": 0,
"official": null,
"points": 30,
"port": 25607,
"private": true,
"project_id": null,
"pve": null,
"pvp": 1,
"query": 25607,
"request": "195.3.223.102:25607",
"secured": true,
"status": true,
"steam_id": "90292101478075411",
"version": "42.20",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Варшава",
"description": null,
"disabled_modules": [],
"gamemode": "Project Zomboid",
"hidden": false,
"last_offline": 1789500839,
"last_online": 1790185519,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 5640,
"wipe_period": null,
"open": "1",
"public": "0",
"modCount": "50",
"listentype": "d",
"environment": "l",
"a2s_protocol": 17,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12975111");
$data = json_decode($json, true);
var_dump($data);