API dla mooshberry APEX
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286830234745873",
"domain": null,
"id": 11715409,
"ip": "170.23.117.99",
"port": 25696,
"query": 25697,
"project_id": null,
"color": 0,
"city": "Chicago",
"description": null,
"game": 1326470,
"owner": null,
"boosts": 1,
"last_offline": 1781609592,
"last_online": 1781119924,
"icon": null,
"name": "mooshberry APEX",
"connect": "170.23.117.99:25696",
"request": "170.23.117.99:25697",
"map": "Normal",
"gamemode": "Sons Of the Forest",
"version": "0.11.3.0.0",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780301662,
"last_update": 1781609592,
"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": 2238,
"language": "en",
"parked": false,
"app": {
"id": 1569757,
"steam_id": 1326470,
"name": "Sons Of The Forest",
"url": "sons-of-the-forest"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11715409");
$data = json_decode($json, true);
var_dump($data);