Rust
API для RLSA Vanilla | Duo | Bi-Weekly
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11261231json
{
"response": {
"fps": 108,
"fps_avg": 103,
"entities_count": 65194,
"world_seed": 189868791,
"world_size": 3500,
"steam_id": "90285572953097216",
"domain": null,
"id": 11261231,
"ip": "156.38.153.242",
"port": 10100,
"query": 10110,
"color": 0,
"city": "Pretoria",
"description": "This is a Solo | Duo server with raid time manager for those who have work IRL we care for you. Decay is set to half. Minis spawn on the road.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778764937,
"score": 0,
"last_online": 1778403023,
"icon": null,
"name": "RLSA Vanilla | Duo | Bi-Weekly",
"connect": "156.38.153.242:10100",
"request": "156.38.153.242:10110",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "ZA",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1774555228,
"last_update": 1778764937,
"banned": false,
"wipe": 1778180123,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 7412,
"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/11261231");
$data = json_decode($json, true);
var_dump($data);