JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11500919
json
{
  "response": {
    "fps": 194,
    "fps_avg": 191,
    "entities_count": 70199,
    "world_seed": 1816944901,
    "world_size": 3500,
    "steam_id": "90286603427581962",
    "domain": null,
    "id": 11500919,
    "ip": "85.10.199.24",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Nuremberg",
    "description": "![Campingplatz PvE | Events | QoL | Custom Raidbasen](https://i.postimg.cc/nzFD3g8v/Campingplatz-Headerimage-gross.png)\nWillkommen auf dem Campingplatz PvE Server\r\n\r\nGeniesse ein entspanntes und kooperatives Spielerlebnis ohne PvP und ohne Raids.\r\nBaue gemeinsam mit anderen Spielern, erkunde die Welt und stelle dich NPCs, Tieren und spannenden Events.\r\n\r\nPvE Gameplay\r\n- Kein PvP und keine Spieler-Raids\r\n- Fokus auf entspanntes Bauen, Farmen und Erkunden\r\n- Kooperatives Spielen mit anderen Spielern\r\n\r\nEvents & Herausforderungen\r\n- Viele Events und dynamische Aktivitaeten\r\n- Spannende NPC-Kaempfe und PvE-Gefahren\r\n- Grosse Auswahl an Custom Raidbasen von Easy bis Nightmare\r\n\r\nKomfort & Features\r\n- Umfangreiche QoL Mods fuer besseres Gameplay\r\n- Regelmaessige Updates und neuer Content\r\n- Stabiles, freundliches und hilfsbereites Serverumfeld\r\n\r\nCommunity\r\n- Freundliche und hilfsbereite Community\r\n- Neue Spieler sind willkommen\r\n- Discord und weitere Infos ueber die externe Webseite",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780590265,
    "last_online": 1780603226,
    "icon": null,
    "name": "Campingplatz PvE | Events | QoL | Custom Raidbasen",
    "connect": "85.10.199.24:28015",
    "request": "85.10.199.24:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 14,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 71,
    "add_date": 1779207165,
    "last_update": 1780603226,
    "banned": false,
    "wipe": 1780594871,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 797,
    "language": "de",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

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