API pentru [Only DD2 #1] Gamefuture.pl [CLASSIC | FREE VIP STEAM/LOSOWANIE SVIP | SVIP 22-7 | SKINY&ASYSTY | ROZBUDOWANY RANKING]

JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/1032845
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 1032845,
    "ip": "51.83.228.105",
    "port": 27015,
    "query": 27015,
    "color": 0,
    "city": "Wroclaw",
    "description": "",
    "game": 10,
    "owner": null,
    "boosts": 1,
    "last_offline": 1768642928,
    "score": null,
    "last_online": 1776181811,
    "icon": null,
    "name": "[Only DD2 #1] Gamefuture.pl [CLASSIC | FREE VIP STEAM/LOSOWANIE SVIP | SVIP 22-7 | SKINY&ASYSTY | ROZBUDOWANY RANKING]",
    "connect": "51.83.228.105:27015",
    "request": "51.83.228.105:27015",
    "map": "de_dust2",
    "gamemode": "*ONLY DD2*",
    "version": "1.1.2.7/Stdio",
    "numplayers": 30,
    "maxplayers": 32,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "PL",
    "status": true,
    "votes": 0,
    "points": 96,
    "add_date": 1688588935,
    "last_update": 1776181811,
    "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": 1653,
    "language": "pl",
    "parked": false,
    "app": {
      "id": 3,
      "steam_id": 10,
      "name": "Counter-Strike",
      "url": "counter-strike"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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