API для Mi Servidor Rust | Carbon
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1791410525,
"app": {
"id": 12,
"name": "Rust",
"steam_id": 252490,
"url": "rust"
},
"color": 0,
"connect": "191.112.176.18:28015",
"country": "CL",
"domain": null,
"game": 252490,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 17928419,
"ip": "191.112.176.18",
"language": "es",
"last_update": 1792178067,
"map": "Procedural Map",
"maxplayers": 50,
"name": "Mi Servidor Rust | Carbon",
"numplayers": 0,
"official": null,
"points": 0,
"port": 28015,
"private": false,
"project_id": null,
"pve": 0,
"pvp": null,
"query": 28017,
"request": "191.112.176.18:28017",
"secured": true,
"status": false,
"steam_id": "90294547991931925",
"version": "2634",
"votes": 0,
"wipe": 1791326401,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Maipú",
"description": "Servidor Rust con Carbon.\r\nBienvenido",
"disabled_modules": [],
"gamemode": "Survival",
"hidden": false,
"last_offline": 1792178067,
"last_online": 1791679696,
"list_hidden": false,
"map_url": "procedural_map_3500_seed_228501085_r289",
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 17554,
"wipe_period": null,
"fps": 120,
"gmn": "rust",
"url": "1",
"hash": "92968535",
"build": "167398",
"gc_cl": "108",
"gc_mb": "2238",
"fps_avg": 119,
"ram_sys": "0",
"map_kind": "procedural",
"map_name": "Procedural Map",
"map_seed": 228501085,
"map_size": 3500,
"logoimage": "1",
"listentype": "d",
"environment": "w",
"headerimage": "1",
"a2s_protocol": 17,
"map_revision": 289,
"queueplayers": 0,
"map_image_url": "https://files.facepunch.com/rust/map-images/45fec2b9351540b7a13f7302f326b0ff5a142c3fa5d5b01f39c37b276f685887/proceduralmap.3500.1791326384202.289_45fec2b9351540b7a13f7302f326b0ff.jpg",
"entities_count": 64674,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/17928419");
$data = json_decode($json, true);
var_dump($data);