Rust
API для LagCity RP [GER] by PoT
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/6124846json
{
"response": {
"fps": 39,
"fps_avg": 39,
"entities_count": 135417,
"world_seed": 1234,
"world_size": 4250,
"steam_id": "90285622060829704",
"domain": null,
"id": 6124846,
"ip": "88.198.7.190",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Falkenstein",
"description": "![LagCity RP [GER] by PoT](https://dl.p-o-t.net/pic/logo/LAG_Banner1024x512.png)\n\r\nhttps://lagcity.p-o-t.net/\r\n\r\nLagCity RP – Wo deine Entscheidungen zählen.\r\nEigene Plugins: Polizei- & Drogen-RP, dynamische Voice-Range.\r\nBerufe & Skill-System, viele RP-Items, RustApp & persönliche Skins.\r\nKomm rein und schreib deine Geschichte!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778331783,
"score": 0,
"last_online": 1778542213,
"icon": null,
"name": "LagCity RP [GER] by PoT",
"connect": "88.198.7.190:28015",
"request": "88.198.7.190:28016",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 17,
"maxplayers": 99,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 70,
"add_date": 1727883179,
"last_update": 1778542213,
"banned": false,
"wipe": 1778175199,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 696,
"language": "de",
"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/6124846");
$data = json_decode($json, true);
var_dump($data);