API dla UKSF | Private Operations
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286567274748941",
"domain": null,
"id": 11622966,
"ip": "54.36.165.77",
"port": 2302,
"query": 2303,
"project_id": null,
"color": 0,
"city": "City of London",
"description": null,
"game": 107410,
"owner": null,
"boosts": 1,
"last_offline": 1780693997,
"last_online": 1780534308,
"icon": null,
"name": "UKSF | Private Operations",
"connect": "54.36.165.77:2302",
"request": "54.36.165.77:2303",
"map": "Altis",
"gamemode": "RA_Final_Ex",
"version": "2.20.152984",
"numplayers": 0,
"maxplayers": 63,
"bots": 0,
"secured": false,
"private": true,
"country": "GB",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779916107,
"last_update": 1780693997,
"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": 4844,
"language": "en",
"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/11622966");
$data = json_decode($json, true);
var_dump($data);