API dla FWC Memorial (SWAT / Medic / Brutal Bots)
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286436532792327",
"domain": null,
"id": 11695666,
"ip": "89.12.191.202",
"port": 28073,
"query": 28073,
"color": 0,
"city": "Berlin",
"description": null,
"game": 222880,
"owner": null,
"boosts": 1,
"last_offline": 1780523007,
"last_online": 1780271511,
"icon": null,
"name": "FWC Memorial (SWAT / Medic / Brutal Bots)",
"connect": "89.12.191.202:28073",
"request": "89.12.191.202:28073",
"map": "ministry_coop",
"gamemode": "Insurgency",
"version": "2.4.2.4",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780225683,
"last_update": 1780523007,
"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": 244,
"language": "de",
"parked": false,
"app": {
"id": 13,
"steam_id": 222880,
"name": "Insurgency",
"url": "insurgency"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11695666");
$data = json_decode($json, true);
var_dump($data);