API dla Tactical Tea Time - PvE
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 110,
"fps_avg": 117,
"entities_count": 115382,
"world_seed": 1309209684,
"world_size": 4500,
"steam_id": "90286608555846674",
"domain": null,
"id": 5387845,
"ip": "145.40.185.11",
"port": 28015,
"query": 28014,
"color": 0,
"city": "Southampton",
"description": "\nWelcome to Tactical Tea Time, the PvE server where survival challenges blend seamlessly with quirky camaraderie.\r\nPrepare to fortify, fight, and forge alliances amidst the unpredictable wilderness of Rust. Join us to strategize and survive, and maybe even relax a little between the battles. \r\n\r\nSee our Discord for full rules, info and to join our community.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780603462,
"last_online": 1780608035,
"icon": null,
"name": "Tactical Tea Time - PvE",
"connect": "145.40.185.11:28015",
"request": "145.40.185.11:28014",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1722420265,
"last_update": 1780608035,
"banned": false,
"wipe": 1780595413,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3238,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/5387845");
$data = json_decode($json, true);
var_dump($data);