API pentru [DBN] Killing Floor 2 Server [ Hard| Endless ]

JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10915
json
{
  "response": {
    "steam_id": "90284401586628623",
    "domain": null,
    "id": 10915,
    "ip": "107.191.49.38",
    "port": 7807,
    "query": 7808,
    "color": 0,
    "city": "Elk Grove Village",
    "description": "",
    "game": 232090,
    "owner": null,
    "boosts": 1,
    "last_offline": 1769795488,
    "score": null,
    "last_online": 1777243859,
    "icon": null,
    "name": "[DBN] Killing Floor 2 Server [ Hard| Endless ]",
    "connect": "107.191.49.38:7807",
    "request": "107.191.49.38:7808",
    "map": "KF-DESOLATION",
    "gamemode": "Killing Floor 2",
    "version": "1150",
    "numplayers": 0,
    "maxplayers": 6,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1501541318,
    "last_update": 1777243859,
    "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": 116,
    "language": "en",
    "parked": false,
    "app": {
      "id": 51,
      "steam_id": 232090,
      "name": "Killing Floor 2",
      "url": "killing-floor-2"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/10915");
$data = json_decode($json, true);
var_dump($data);