API для Rust Idaho.
JSON для программ, сайтов и прочего
text
json
{
"response": {
"fps": 62,
"fps_avg": 62,
"entities_count": 115636,
"world_seed": 2000244303,
"world_size": 4500,
"steam_id": "90286602869283848",
"domain": null,
"id": 10534282,
"ip": "135.131.173.223",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Nampa",
"description": "Rust server in Boise ID.\r\nRaiding zombie hordes, Recyclers on oil rigs and cargo ships. Stack sizes increased. 10x HQM out of the furnace. One second crate unlock. Superfast cooking and refining. Locks on helis and horses. Craftable recyclers (up to 2). Minis have spotlights and storage.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780447459,
"last_online": 1780603833,
"icon": null,
"name": "Rust Idaho.",
"connect": "135.131.173.223:28015",
"request": "135.131.173.223:28017",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1762518664,
"last_update": 1780603833,
"banned": false,
"wipe": 1778178776,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3697,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/10534282");
$data = json_decode($json, true);
var_dump($data);