API для Lonewolf
JSON для программ, сайтов и прочего
text
json
{
"response": {
"fps": 30,
"fps_avg": 30,
"entities_count": 101308,
"world_seed": 1336052612,
"world_size": 4250,
"steam_id": "90286968842920961",
"domain": null,
"id": 474724,
"ip": "104.129.133.107",
"port": 28089,
"query": 28086,
"project_id": null,
"color": 0,
"city": "Dallas",
"description": "\nWelcome to Diddy's Den! The oldest running Low Pop/ Big Map server in Rust! \r\n wiped 1 May (Next BP Wipe 5 June) \r\n Big Map (4000!) \r\nVanilla \r\n You wont find any cheating here or any fake population. Come join us for a fun time! This server generally only wipes when less than 2 groups are actively playing",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1781362433,
"last_online": 1781511028,
"icon": null,
"name": "Lonewolf",
"connect": "104.129.133.107:28089",
"request": "104.129.133.107:28086",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1634303269,
"last_update": 1781511028,
"banned": false,
"wipe": 1781362632,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2615,
"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/474724");
$data = json_decode($json, true);
var_dump($data);