API dla Bot Wars Zombified 3x PVE
JSON dla programów, stron i innych
text
json
{
"response": {
"modded": true,
"fps": 52,
"fps_avg": 51,
"entities_count": 133445,
"world_seed": 2125564517,
"world_size": 4250,
"steam_id": 90286570953157650,
"domain": null,
"id": 1031102,
"ip": "104.129.132.220",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Dallas",
"description": "\nNew and Friendly Players Welcome!\r\nWipes first Thursday of each month.\r\nDiscord: https://discord.gg/ZHnKkR9VaZ \r\n\r\nBW Zombified is a 3x server with NPC Bots and Zombies. The Bots are tough, the Zombies are relentless. It's PVE that can test your survival skills, so come join the fun.\r\n\r\nFeatures:\r\nBetterNPC\r\nDangerous Treasures\r\nRaidable Bases\r\nServer Rewards\r\nZombie Hordes\r\nPlus other Events\r\n\r\nAddons:\r\nBackpacks\r\nKits\r\nMy Mini\r\nRemove Tool\r\nSkinbox\r\nWater Bases\r\nAnd More\r\n\r\nExtras:\r\nTown/Admin Shop\r\nHeli Towers",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778202184,
"last_online": 1780570227,
"icon": null,
"name": "Bot Wars Zombified 3x PVE",
"connect": "104.129.132.220:28015",
"request": "104.129.132.220:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 1,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1688487246,
"last_update": 1780570227,
"banned": false,
"wipe": 1778187858,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1433,
"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/1031102");
$data = json_decode($json, true);
var_dump($data);