API для Rust Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1792660278,
"app": {
"id": 12,
"name": "Rust",
"steam_id": 252490,
"url": "rust"
},
"color": 0,
"connect": "118.27.226.196:28015",
"country": "JP",
"domain": null,
"game": 252490,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 18812592,
"ip": "118.27.226.196",
"language": null,
"last_update": 1792684590,
"map": "Procedural Map",
"maxplayers": 50,
"name": "Rust Server",
"numplayers": 0,
"official": null,
"points": 60,
"port": 28015,
"private": false,
"project_id": null,
"pve": 0,
"pvp": null,
"query": 28016,
"request": "118.27.226.196:28016",
"secured": true,
"status": true,
"steam_id": "90295520301962243",
"version": "2634",
"votes": 0,
"wipe": 1792659337,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Chiyoda",
"description": "Rust Server",
"disabled_modules": [],
"gamemode": "Survival",
"hidden": false,
"last_offline": 1792659097,
"last_online": 1792684590,
"list_hidden": false,
"map_url": "procedural_map_3000_seed_1234_r289",
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 10196,
"wipe_period": null,
"fps": 60,
"gmn": "rust",
"url": "",
"hash": "addd52d0",
"build": "167781",
"gc_cl": "108",
"gc_mb": "1694",
"fps_avg": 59,
"ram_sys": "0",
"map_kind": "procedural",
"map_name": "Procedural Map",
"map_seed": 1234,
"map_size": 3000,
"logoimage": "",
"listentype": "d",
"environment": "l",
"headerimage": "",
"a2s_protocol": 17,
"map_revision": 289,
"queueplayers": 0,
"map_image_url": "https://files.facepunch.com/rust/map-images/a8fae513273f5266dcafaad041dc3727d74903672f6aec4685d7b6af789b912e/proceduralmap.3000.0.289_a8fae513273f5266dcafaad041dc3727.jpg",
"entities_count": 43929,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/18812592");
$data = json_decode($json, true);
var_dump($data);