API dla RETRO RUST #2 X2|NOLIMIT|EVENT GLOBAL 5.06
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 240,
"fps_avg": 239,
"entities_count": 50278,
"world_seed": 1337,
"world_size": 3000,
"steam_id": "90286730572093458",
"domain": null,
"id": 6125212,
"ip": "37.230.137.172",
"port": 20800,
"query": 20801,
"project_id": null,
"color": 0,
"city": "Moscow",
"description": "\nRETRO RUST #2 \r\n · Рейты x2\r\n · Длинный день \r\n · Моментальный крафт \r\n · Ускоренная плавка \r\n · Увеличенные стаки \r\n · Система кланов /clan \r\n · Трейд /trade \r\n · Ивенты \r\n · Магазин проекта - https://retrorust.store",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780604659,
"last_online": 1780898432,
"icon": null,
"name": "RETRO RUST #2 X2|NOLIMIT|EVENT GLOBAL 5.06",
"connect": "37.230.137.172:20800",
"request": "37.230.137.172:20801",
"map": "Custom Map",
"gamemode": "Vanilla",
"version": "2627",
"numplayers": 0,
"maxplayers": 225,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1727883312,
"last_update": 1780898432,
"banned": false,
"wipe": 1780604676,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2940,
"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/6125212");
$data = json_decode($json, true);
var_dump($data);