Rust
API для OLD - Lazy Rusters II - Moved to lr2.lazyrusters.com!
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/448026json
{
"response": {
"fps": 39,
"fps_avg": 38,
"entities_count": 499912,
"world_seed": 1337,
"world_size": 4300,
"steam_id": "90285111568726023",
"domain": null,
"id": 448026,
"ip": "158.69.120.45",
"port": 29090,
"query": 29015,
"color": 0,
"city": "Montreal",
"description": "\nLove to raid, but tired of logging on every day only to find your base raided?\r\nDo you just want a nice peaceful place to farm and build?\r\nDo you hate grinding away in Rust, then by the time you reach the level you want to be at, its wipe day?\r\nWell FORGET THE GRIND!\r\n20X Gather rates, increased loot, monthly wipes, instant crafting, no upkeep or decay, and more to make the most of the time you spend in Rust. \r\n\r\nDon't grind your wipe away!\r\n\r\nCheck us out at LazyRusters.com",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1777696348,
"score": null,
"last_online": 1777488626,
"icon": null,
"name": "OLD - Lazy Rusters II - Moved to lr2.lazyrusters.com!",
"connect": "158.69.120.45:29090",
"request": "158.69.120.45:29015",
"map": "Forget the Grind",
"gamemode": "Survival",
"version": "2621",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "CA",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1630779793,
"last_update": 1777696348,
"banned": false,
"wipe": 1770320713,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 7058,
"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/448026");
$data = json_decode($json, true);
var_dump($data);