API dla Outlaw Bandits | 2x | Monthy | PvP | Raidable Bases | AU
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 209,
"fps_avg": 209,
"entities_count": 55732,
"world_seed": 1449881993,
"world_size": 3500,
"steam_id": "90286566626820112",
"domain": null,
"id": 11744664,
"ip": "103.15.236.183",
"port": 25566,
"query": 25567,
"color": 0,
"city": "Melbourne",
"description": "\nHosted by Shockbyte\r\n2x Gather and Resources.\r\nSolo|Duo|Trio. Monthly Map wipes\r\nActive & Fair Admins. \r\nQuality-of-Life Mods\r\nPvP Focused Gameplay\r\nBeginner Friendly but Raid Ready",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780608257,
"last_online": 1780595432,
"icon": null,
"name": "Outlaw Bandits | 2x | Monthy | PvP | Raidable Bases | AU",
"connect": "103.15.236.183:25566",
"request": "103.15.236.183:25567",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "AU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780518718,
"last_update": 1780608257,
"banned": false,
"wipe": 1778207394,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 12934,
"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/11744664");
$data = json_decode($json, true);
var_dump($data);