Rust
API для My Untitled Rust Server
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/6769581json
{
"response": {
"fps": 34,
"fps_avg": 32,
"entities_count": 143242,
"world_seed": 0,
"world_size": 5000,
"steam_id": "90283774862307347",
"domain": null,
"id": 6769581,
"ip": "15.235.113.18",
"port": 28025,
"query": 28026,
"color": 0,
"city": "Montreal",
"description": "\nWelcome to Eagles Nest (PVE)\r\n - The path to success is not for the faint of heart\r\n - New Players will be challenged, but those who make it will reap the reward\r\n - Lots of Fun Peace full place to chill back\r\n - Respect players and have fun\r\n - can't wait to see everyone\r\n - ###World Size 5000### -\r\n - *****MODDS***** -\r\n ✔ Better NPC's\r\n ✔ Convoy\r\n ✔ Train Convoy\r\n ✔ Large oil event\r\n ✔ Raid Bases\r\n ✔ NPC-raiders\r\n ✔ Defendable-bases\r\n ✔ Air Field event\r\n ✔Flying Cargo event\r\n ✔ Water Treatment Showdown\r\n ✔ Train yard event\r\n ✔ Water Patrol\r\n ✔ Pirates on tugboat\r\n ✔ Zombies\r\n ✔ Skill Tree\r\n ✔ Spray cans - to change skins\r\n ✔ farming\r\n ✔ BetterTC\r\n ✔ 24/7 Support\r\n ✔ Powerful Systems",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775035333,
"score": 0,
"last_online": 1776505821,
"icon": null,
"name": "My Untitled Rust Server",
"connect": "15.235.113.18:28025",
"request": "15.235.113.18:28026",
"map": "Procedural Map",
"gamemode": "Hardcore",
"version": "2622",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "CA",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1732811076,
"last_update": 1776505821,
"banned": false,
"wipe": 1773850812,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3367,
"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/6769581");
$data = json_decode($json, true);
var_dump($data);