API dla Zockergemeinde
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286578692396038",
"domain": null,
"id": 11446452,
"ip": "134.255.218.155",
"port": 2312,
"query": 2313,
"color": 0,
"city": "Münster",
"description": null,
"game": 1149460,
"owner": null,
"boosts": 1,
"last_offline": 1780245845,
"last_online": 1780608629,
"icon": null,
"name": "Zockergemeinde",
"connect": "134.255.218.155:2312",
"request": "134.255.218.155:2313",
"map": null,
"gamemode": "Icarus",
"version": "0.0.0.1",
"numplayers": 2,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 64,
"add_date": 1774977884,
"last_update": 1780608629,
"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": 90,
"language": "de",
"parked": false,
"app": {
"id": 1600891,
"steam_id": 1149460,
"name": "Icarus",
"url": "icarus"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11446452");
$data = json_decode($json, true);
var_dump($data);