API dla Atlantica - EU 5x | Monthly | PVE + PVP |
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 76,
"fps_avg": 79,
"entities_count": 102795,
"world_seed": 3486489,
"world_size": 4096,
"steam_id": "90286603800466458",
"domain": null,
"id": 11644890,
"ip": "178.214.223.32",
"port": 28015,
"query": 28017,
"color": 0,
"city": "City of London",
"description": "\nWelcome To Atlantica PVE + PVP\r\n 5X Gather \r\n Keep Inventory On Death (PVE Only)\r\n Backpack (Keep On Death PVE & PVP)\r\n Bigger Stacks\r\n Events\r\n Abandoned Bases\r\n Spawn Mini's\r\n Starter Kits\r\n Noobs Welcome\r\n Tree Houses\r\n SkinBox\r\n Automated Farms\r\n Faster Plant Growth\r\n Shop\r\n Raidable Bases\r\n Abandoned Bases 2 Days PVP - 4 Days PVE",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780595664,
"last_online": 1780610427,
"icon": null,
"name": "Atlantica - EU 5x | Monthly | PVE + PVP |",
"connect": "178.214.223.32:28015",
"request": "178.214.223.32:28017",
"map": "Synecdoche Islands",
"gamemode": "Vanilla",
"version": "2627",
"numplayers": 4,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 62,
"add_date": 1780177439,
"last_update": 1780610427,
"banned": false,
"wipe": 1780595185,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1683,
"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/11644890");
$data = json_decode($json, true);
var_dump($data);