API dla BLACKREACH
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286573497197568",
"domain": null,
"id": 11775248,
"ip": "117.103.90.154",
"port": 9876,
"query": 9877,
"project_id": null,
"color": 0,
"city": "Majuro",
"description": null,
"game": 1604030,
"owner": null,
"boosts": 1,
"last_offline": 1780997289,
"last_online": 1781026868,
"icon": null,
"name": "BLACKREACH",
"connect": "117.103.90.154:9876",
"request": "117.103.90.154:9877",
"map": "VRisingWorld",
"gamemode": "6778a8ae-288a-4f35-a6e1-e2c84e2ef4bf",
"version": "0.0.0.1",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": true,
"country": "MH",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780997289,
"last_update": 1781026868,
"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": 4007,
"language": "en",
"parked": false,
"app": {
"id": 55075,
"steam_id": 1604030,
"name": "V Rising",
"url": "v-rising"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11775248");
$data = json_decode($json, true);
var_dump($data);