API dla x2 URAL RUST | КЛАССИКА | CLASSIC |
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 79,
"fps_avg": 78,
"entities_count": 107311,
"world_seed": 1711928135,
"world_size": 4350,
"steam_id": 90286573709855760,
"domain": null,
"id": 11502103,
"ip": "212.220.212.31",
"port": 28014,
"query": 28015,
"color": 0,
"city": "Starosiverskaya",
"description": "------ RUST URAL ------\r\n[EN]:\r\n- Kits (/kit)\r\n- Classic\r\n- Stack x2\r\n- Furnace autosorter\r\n- Event\r\n- x2 rates with Discord (/auth)\r\n- Extra backpack\r\n- Raid bases\r\n- Events\r\n- NO TP\r\n[RU]\r\n- Наборы (/Kit)\r\n- Классический\r\n- Стеки x2\r\n- Автосортировщик печи\r\n- Ивент\r\n- х2 рейты с Discord\r\n- Доп. Рюкзак\r\n- Рейд базы\r\n- Ивенты\r\n- НЕТ ТП",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780524268,
"last_online": 1780555230,
"icon": null,
"name": "x2 URAL RUST | КЛАССИКА | CLASSIC |",
"connect": "212.220.212.31:28014",
"request": "212.220.212.31:28015",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 1,
"maxplayers": 444,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779207190,
"last_update": 1780555230,
"banned": false,
"wipe": 1780041507,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4801,
"language": "ru",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11502103");
$data = json_decode($json, true);
var_dump($data);