Rust
API для ShadowHunter 10x PVE
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/5940808json
{
"response": {
"fps": 51,
"fps_avg": 55,
"entities_count": 161574,
"world_seed": 1792539870,
"world_size": 4500,
"steam_id": "90284790541239309",
"domain": null,
"id": 5940808,
"ip": "196.216.133.238",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Ventersdorp",
"description": "\nWelcome to ShadowHunter 10x PVE - Your Ultimate PvE Rust Adventure!\r\n 10x PvE Experience: Explore, build, and conquer without PvP conflict.\r\n Monthly Wipes: Fresh start every month for new adventures.\r\n Raidable NPC Bases: Challenge yourself against formidable NPCs.\r\n Persistent Backpacks: Keep your gear after death.\r\n Guarded Crates, Kits, and Shop: Customizable gameplay options.\r\n PvP Zones: Airfield and Giant Excavator for thrilling battles.\r\n Purge Event: Final 24 hours of each wipe allow raiding and PvP.\r\n Many More Mods: Enhanced gameplay features for an immersive experience.\r\n Join Us Today: Experience Rust like never before on ShadowHunter 10x PVE. See you in the wasteland!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776746647,
"score": 0,
"last_online": 1776874221,
"icon": null,
"name": "ShadowHunter 10x PVE",
"connect": "196.216.133.238:28015",
"request": "196.216.133.238:28017",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 4,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "ZA",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1726346447,
"last_update": 1776874221,
"banned": false,
"wipe": 1775152874,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1991,
"language": "en",
"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/5940808");
$data = json_decode($json, true);
var_dump($data);