API dla [UNSC] Batallon Hastati [ODST/NAVY]
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90284192861851654",
"domain": null,
"id": 11088437,
"ip": "212.227.7.77",
"port": 2302,
"query": 2303,
"project_id": null,
"color": 0,
"city": "Berlin",
"description": null,
"game": 107410,
"owner": null,
"boosts": 1,
"last_offline": 1777409601,
"last_online": 1780683776,
"icon": null,
"name": "[UNSC] Batallon Hastati [ODST/NAVY]",
"connect": "212.227.7.77:2302",
"request": "212.227.7.77:2303",
"map": "OPTRE_Snowlands",
"gamemode": "Operacion NEVADA",
"version": "2.20.152984",
"numplayers": 0,
"maxplayers": 24,
"bots": 0,
"secured": false,
"private": true,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1770025813,
"last_update": 1780683776,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2000,
"language": "de",
"parked": false,
"app": {
"id": 61,
"steam_id": 107410,
"name": "Arma 3",
"url": "arma-3"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11088437");
$data = json_decode($json, true);
var_dump($data);