Rust
API для FRUBBEN FRIENDLY 5X PVE
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/8809354json
{
"response": {
"fps": 85,
"fps_avg": 82,
"entities_count": 121841,
"world_seed": 2132948072,
"world_size": 4500,
"steam_id": "90284737549446164",
"domain": null,
"id": 8809354,
"ip": "65.109.51.174",
"port": 60405,
"query": 60407,
"color": 0,
"city": "Helsinki",
"description": "This is a friendly server, we don't steal from each other, kill each other in raids, or do other stupid things. We keep a good tone, racist and bullying are prohibited. ONLY english in chat. You can find Discord in External Website.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776776600,
"score": 0,
"last_online": 1776825617,
"icon": null,
"name": "FRUBBEN FRIENDLY 5X PVE",
"connect": "65.109.51.174:60405",
"request": "65.109.51.174:60407",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 1,
"maxplayers": 25,
"bots": 0,
"secured": true,
"private": false,
"country": "FI",
"status": true,
"votes": 0,
"points": 62,
"add_date": 1746054038,
"last_update": 1776825617,
"banned": false,
"wipe": 1776365748,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1381,
"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/8809354");
$data = json_decode($json, true);
var_dump($data);