API pentru Australian 3x
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"fps": 52,
"fps_avg": 50,
"entities_count": 98566,
"world_seed": 1337,
"world_size": 4096,
"steam_id": "90286605439818760",
"domain": null,
"id": 10764427,
"ip": "51.161.198.78",
"port": 28050,
"query": 28051,
"color": 0,
"city": "North Sydney",
"description": "\nWelcome to Australian 3x\r\n-Server is PVP and PVE you choose\r\n-Custom Loot tables\r\n-Quick smelt\r\n-/Kits\r\n-Mini's spawn on roads\r\n-/Buy Tank (buy Bradley)\r\n-Teleports\r\n-Dungeon Events\r\n-Raidable Bases\r\n-Water Bases\r\n-Indoor Furnaces\r\n-Convoy\r\n-Heli Signals\r\n-Custom Monuments\r\n-Skinner",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780598072,
"last_online": 1780601439,
"icon": null,
"name": "Australian 3x",
"connect": "51.161.198.78:28050",
"request": "51.161.198.78:28051",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 1,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "AU",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1766261079,
"last_update": 1780601439,
"banned": false,
"wipe": 1780598048,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3716,
"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/10764427");
$data = json_decode($json, true);
var_dump($data);