API для The Survival Lounge - Project Zomboid
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90286475335022608",
"domain": null,
"id": 11536787,
"ip": "216.245.176.148",
"port": 8771,
"query": 8771,
"color": 0,
"city": "Chicago",
"description": "This is a private server for The Survival Lounge community",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1780139019,
"last_online": 1780350029,
"icon": null,
"name": "The Survival Lounge - Project Zomboid",
"connect": "216.245.176.148:8771",
"request": "216.245.176.148:8771",
"map": "map_distanciado;rvupdate;map_rv",
"gamemode": "Project Zomboid",
"version": "42.17",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779355310,
"last_update": 1780350029,
"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": 2377,
"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/11536787");
$data = json_decode($json, true);
var_dump($data);