API pentru [SSD] PUBserver - SWE, FF on, https://discord.gg/ypkPnQwsAj

JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/6294090
json
{
  "response": {
    "steam_id": "85568392924705904",
    "domain": null,
    "id": 6294090,
    "ip": "178.174.152.149",
    "port": 27015,
    "query": 27015,
    "color": 0,
    "city": "Malmo",
    "description": null,
    "game": 300,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775080543,
    "score": 0,
    "last_online": 1776226849,
    "icon": null,
    "name": "[SSD] PUBserver - SWE, FF on, https://discord.gg/ypkPnQwsAj",
    "connect": "178.174.152.149:27015",
    "request": "178.174.152.149:27015",
    "map": "dod_gost_flash_mini",
    "gamemode": "Day of Defeat",
    "version": "9540945",
    "numplayers": 0,
    "maxplayers": 32,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "SE",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1729565694,
    "last_update": 1776226849,
    "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": 63,
    "language": "sv",
    "parked": false,
    "app": {
      "id": 8,
      "steam_id": 300,
      "name": "Day of Defeat: Source",
      "url": "day-of-defeat-source"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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