API pentru Atlantica - EU 5x | Bi-Weekly | PVE |
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"fps": 58,
"fps_avg": 57,
"entities_count": 140640,
"world_seed": 1337,
"world_size": 4500,
"steam_id": "90286574922002458",
"domain": null,
"id": 11644890,
"ip": "178.214.223.32",
"port": 28015,
"query": 28017,
"color": 0,
"city": "City of London",
"description": "\nWelcome To Atlantica PVE\r\n 5X Gather \r\n Keep Inventory On Death\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",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780177439,
"last_online": 1780555830,
"icon": null,
"name": "Atlantica - EU 5x | Bi-Weekly | PVE |",
"connect": "178.214.223.32:28015",
"request": "178.214.223.32:28017",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 1,
"maxplayers": 500,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1780177439,
"last_update": 1780555830,
"banned": false,
"wipe": 1779386091,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5617,
"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/11644890");
$data = json_decode($json, true);
var_dump($data);