API для TT vil L2L2
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1793304720,
"app": {
"id": 12,
"name": "Rust",
"steam_id": 252490,
"url": "rust"
},
"color": 0,
"connect": "45.124.213.24:28080",
"country": "SG",
"domain": null,
"game": 252490,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19352648,
"ip": "45.124.213.24",
"language": "en",
"last_update": 1793922367,
"map": "Procedural Map",
"maxplayers": 5,
"name": "TT vil L2L2",
"numplayers": 0,
"official": null,
"points": 60,
"port": 28080,
"private": false,
"project_id": null,
"pve": 0,
"pvp": null,
"query": 28015,
"request": "45.124.213.24:28015",
"secured": false,
"status": true,
"steam_id": "90296564933404700",
"version": "2636",
"votes": 0,
"wipe": 1793304675,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Сингапур",
"description": "test",
"disabled_modules": [],
"gamemode": "Survival",
"hidden": false,
"last_offline": 1793747974,
"last_online": 1793922367,
"list_hidden": false,
"map_url": "proceduralmap_4000_261002_tenga_s51_fin4_r289",
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 9030,
"wipe_period": null,
"fps": 128,
"gmn": "rust",
"url": "",
"hash": "ae80e6bc",
"build": "170147",
"gc_cl": "320",
"gc_mb": "2546",
"fps_avg": 128,
"ram_sys": "0",
"map_kind": "custom",
"map_name": "Proceduralmap",
"map_seed": 720022919,
"map_size": 4096,
"logoimage": "",
"listentype": "d",
"environment": "w",
"headerimage": "",
"a2s_protocol": 17,
"map_revision": 289,
"queueplayers": 0,
"map_image_url": "https://files.facepunch.com/rust/map-images/e900db3c6aea229704d80f359ee3626ebe3a2000a2e706697de9e58524f6c35c/proceduralmap.4000.261002.tenga.s51.fin4.4096.1790923335014.290_e900db3c6aea229704d80f359ee3626e.jpg",
"entities_count": 96000,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19352648");
$data = json_decode($json, true);
var_dump($data);