API для Legion Linux Gamers Latam (UY)
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794335312,
"app": {
"id": 12556,
"name": "Survive the Nights",
"steam_id": 541300,
"url": "survive-the-nights"
},
"color": 0,
"connect": "167.58.25.113:7950",
"country": "UY",
"domain": null,
"game": 541300,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19917803,
"ip": "167.58.25.113",
"language": "es",
"last_update": 1794711994,
"map": "Black_Island",
"maxplayers": 100,
"name": "Legion Linux Gamers Latam (UY)",
"numplayers": 0,
"official": null,
"points": 0,
"port": 7950,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27034,
"request": "167.58.25.113:27034",
"secured": true,
"status": false,
"steam_id": "90297153526452229",
"version": "1.5.1.0",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Монтевидео",
"description": null,
"disabled_modules": [],
"gamemode": "Survive The Nights",
"hidden": false,
"last_offline": 1794711994,
"last_online": 1794378342,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 724,
"wipe_period": null,
"listentype": "d",
"environment": "l",
"loaded_mods": "",
"a2s_protocol": 17,
"blocked_mods": "",
"required_mods": "",
"players_complete": true,
"loaded_mods_count": "0",
"blocked_mods_count": "0",
"required_mods_count": "0"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19917803");
$data = json_decode($json, true);
var_dump($data);