API dla BisectHosting 5175123a
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286639275548692",
"domain": null,
"id": 11745640,
"ip": "66.248.194.163",
"port": 9030,
"query": 9031,
"project_id": null,
"color": 0,
"city": "The Hague",
"description": null,
"game": 892970,
"owner": null,
"boosts": 1,
"last_offline": 1780608861,
"last_online": 1780743738,
"icon": null,
"name": "BisectHosting 5175123a",
"connect": "66.248.194.163:9030",
"request": "66.248.194.163:9031",
"map": "BisectHosting 5175123a",
"gamemode": null,
"version": "0.221.12",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": false,
"private": true,
"country": "NL",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780518851,
"last_update": 1780743738,
"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": 9870,
"language": "nl",
"parked": false,
"app": {
"id": 34967,
"steam_id": 892970,
"name": "Valheim",
"url": "valheim"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11745640");
$data = json_decode($json, true);
var_dump($data);