Rust
API для Norwegian Beginners [NOR/EU]
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11159399json
{
"response": {
"fps": 76,
"fps_avg": 72,
"entities_count": 132090,
"world_seed": 1951414870,
"world_size": 4500,
"steam_id": "90284726927106066",
"domain": null,
"id": 11159399,
"ip": "95.217.112.190",
"port": 28002,
"query": 28004,
"color": 0,
"city": "Helsinki",
"description": "![Norwegian Beginners [NOR/EU]](https://www.dropbox.com/scl/fi/fjk2zuv5up6fytf0xa8k6/nor.jpg?rlkey=ntyska211pzipbx8k1l4vhqky&st=i5hettc7&dl=1)\n2x | Wipe weekly Thursday 17:00 | Monthly BP | Active admin | Minis spawn by road |\r\n Rules: \r\n No Hacking/scripting \r\n No intentional bug abuse \r\n No EAC/FP banned alts \r\n No ban evading \r\n No Griefing \r\n No Toxic Behavior \r\n Be Helpful: Players are encouraged to assist new players.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776352420,
"score": 0,
"last_online": 1776825620,
"icon": null,
"name": "Norwegian Beginners [NOR/EU]",
"connect": "95.217.112.190:28002",
"request": "95.217.112.190:28004",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "FI",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1772228127,
"last_update": 1776825620,
"banned": false,
"wipe": 1776352421,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4621,
"language": "fi",
"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/11159399");
$data = json_decode($json, true);
var_dump($data);