API pentru www.TheHubZ.org | Chernarus | OrganicRP | 1PP

JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/1764079
json
{
  "response": {
    "steam_id": "90284715703655443",
    "domain": null,
    "id": 1764079,
    "ip": "141.95.122.76",
    "port": 2517,
    "query": 2518,
    "color": 0,
    "city": "Limburg an der Lahn",
    "description": "",
    "game": 221100,
    "owner": null,
    "boosts": 1,
    "last_offline": 1773551529,
    "score": null,
    "last_online": 1776801693,
    "icon": null,
    "name": "www.TheHubZ.org | Chernarus | OrganicRP | 1PP",
    "connect": "141.95.122.76:2517",
    "request": "141.95.122.76:2518",
    "map": "chernarusplus",
    "gamemode": null,
    "version": "1.28.161464",
    "numplayers": 0,
    "maxplayers": 60,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1699518025,
    "last_update": 1776801693,
    "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": 2544,
    "language": "de",
    "parked": false,
    "app": {
      "id": 63,
      "steam_id": 221100,
      "name": "DayZ",
      "url": "dayz"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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