API dla Reboot ZA 3x | Wiped 3 days ago
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 60,
"fps_avg": 60,
"entities_count": 16293,
"world_seed": 1847003380,
"world_size": 2000,
"steam_id": "90286574603515921",
"domain": null,
"id": 11502584,
"ip": "102.209.116.70",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Cape Town",
"description": "\nReboot ZA 3x | Weekly Mondays | Under Development\r\n\r\n3x Gather Rates\r\nWeekly Force Wipes (Mondays)\r\nRegion: South Africa\r\n\r\nMods:\r\n- Auto Auth\r\n- Team BP sharing\r\n- Furnace Splitter\r\n- Quick Smelt\r\n- Faster Recycler\r\n- Faster Crafting\r\n- Increased Stack Sizes\r\n- Custom day/night cycle\r\n- Decreased bag timers\r\n\r\nCommands:\r\n- /help\r\n- /tod\r\n- /pop\r\n\r\nDiscord: https://discord.gg/GF8h9RzYuc",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780605265,
"last_online": 1780587033,
"icon": null,
"name": "Reboot ZA 3x | Wiped 3 days ago",
"connect": "102.209.116.70:28015",
"request": "102.209.116.70:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "ZA",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779207205,
"last_update": 1780605265,
"banned": false,
"wipe": 1780326340,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 11156,
"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/11502584");
$data = json_decode($json, true);
var_dump($data);