Rust
API для FLASHBACK - [ 2X | ИВЕНТЫ | MAX3 ]
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10533863json
{
"response": {
"fps": 45,
"fps_avg": 41,
"entities_count": 87728,
"world_seed": 1338583447,
"world_size": 3500,
"steam_id": "90284792550198277",
"domain": null,
"id": 10533863,
"ip": "65.109.110.74",
"port": 20540,
"query": 20541,
"color": 0,
"city": "Helsinki",
"description": "![FLASHBACK - [ 2X | ИВЕНТЫ | MAX3 ]](https://i.imgur.com/E2NHgsb.png)\nFLASHBACK EU - [ 2X | ИВЕНТЫ | MAX3 ]\r\n\r\nTeam - MAX 3\r\nThe server has unique plugins:\r\nCustom Weather\r\nWipeBlock\r\nKits\r\nQuick crafting\r\nFriends\r\nQuick smelt\r\nAnd other interesting plugins\r\nOnline store: flashrust.online",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776715400,
"score": 0,
"last_online": 1776832822,
"icon": null,
"name": "FLASHBACK - [ 2X | ИВЕНТЫ | MAX3 ]",
"connect": "65.109.110.74:20540",
"request": "65.109.110.74:20541",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2623",
"numplayers": 1,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "FI",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1762518614,
"last_update": 1776832822,
"banned": false,
"wipe": 1776419165,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3712,
"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/10533863");
$data = json_decode($json, true);
var_dump($data);