API dla Kittenbritches Killing Witches
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286343319652376",
"domain": null,
"id": 11326336,
"ip": "176.57.143.50",
"port": 32900,
"query": 32915,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 1149460,
"owner": null,
"boosts": 1,
"last_offline": 1780023218,
"last_online": 1780597875,
"icon": null,
"name": "Kittenbritches Killing Witches",
"connect": "176.57.143.50:32900",
"request": "176.57.143.50:32915",
"map": null,
"gamemode": "Icarus",
"version": "0.0.0.1",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1774594132,
"last_update": 1780597875,
"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": 3260,
"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/11326336");
$data = json_decode($json, true);
var_dump($data);