Rust
API для Wolf-SWE-PVE 10X
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10727976json
{
"response": {
"steam_id": "90284713558983699",
"domain": null,
"id": 10727976,
"ip": "37.27.235.111",
"port": 28010,
"query": 28011,
"color": 0,
"city": "Helsinki",
"description": "\nWolf-SWE-PVE 10X\r\n - WIPED 16/04\r\n - NEXT WIPE 30/04 20:00 EU time\r\n - /kit\r\n - /mymini\r\n - /up 1,2,3,4\r\n - /outpost, /bandit\r\n - /info\r\n - Abandoned Bases\r\n - Backpacks\r\n - Raidable Bases\r\n - no BP\r\n - Convoy event\r\n - Heli crash event\r\n - Gas station event\r\n - fast smelt and instant craft\r\n - active admins\r\n - try to help each other and be nice\r\n join our discord https://discord.gg/jzdmbNmk5e",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776721398,
"score": 1,
"last_online": 1776825625,
"icon": null,
"name": "Wolf-SWE-PVE 10X",
"connect": "37.27.235.111:28010",
"request": "37.27.235.111:28011",
"map": "Procedural Map",
"gamemode": "Rust",
"version": "2623",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "FI",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1765148660,
"last_update": 1776825625,
"banned": false,
"wipe": 1776363435,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3943,
"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/10727976");
$data = json_decode($json, true);
var_dump($data);