Rust
API pentru Tactical Bedtime
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/7467936json
{
"response": {
"fps": 54,
"fps_avg": 53,
"entities_count": 101654,
"world_seed": 932052465,
"world_size": 4096,
"steam_id": "90284694127953933",
"domain": null,
"id": 7467936,
"ip": "168.100.161.97",
"port": 28109,
"query": 28106,
"color": 0,
"city": "London",
"description": "\nWelcome to Tactical Bedtime We offer an unforgettable Rust journey. PvE Server all Month round and blended with economy, progression, and high-risk events for all playstyles. Monthly Map Wipe and NO BP Wipe Better way of life mods \r\n Economics \r\n Raidable Base's \r\n Backpack \r\n Building Grades \r\n Building Skins \r\n Kit's \r\n Lock Barrels \r\n Dangerous Treasure's \r\n Automated Event \r\n Drugs Business \r\n monster bosse's \r\n Gas Station and Supermarket Events \r\n Lock Barrels and Ovens \r\n Skinner \r\n Outpost Respawn",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776357228,
"score": 0,
"last_online": 1776837023,
"icon": null,
"name": "Tactical Bedtime",
"connect": "168.100.161.97:28109",
"request": "168.100.161.97:28106",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2622",
"numplayers": 0,
"maxplayers": 160,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1739234780,
"last_update": 1776837023,
"banned": false,
"wipe": 1772890540,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2966,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/7467936");
$data = json_decode($json, true);
var_dump($data);