JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/4984358
json
{
  "response": {
    "fps": 54,
    "fps_avg": 54,
    "entities_count": 97479,
    "world_seed": 2147483647,
    "world_size": 4000,
    "steam_id": "90286511384921116",
    "domain": null,
    "id": 4984358,
    "ip": "176.57.174.158",
    "port": 28615,
    "query": 28616,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": "![(GER/ENG) 3X First Class PvP SOLO/DUO](https://www.g-portal.com/css/customer/img/logo.jpg)\nWillkommen auf  (GER/ENG) 3X First Class PvP SOLO/DUO! /nWelcome to(GER/ENG) 3X First Class PvP SOLO/DUO! /nSOLO/DUO /nOnly English or German in Chat /nNo Admin Abuse /nBeginner Friendly /nLong Day Short Night /nKits /n3x Gather & Loot /nCustom Loottable",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780089213,
    "last_online": 1780555231,
    "icon": null,
    "name": "Test-Server",
    "connect": "176.57.174.158:28615",
    "request": "176.57.174.158:28616",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1720203088,
    "last_update": 1780555231,
    "banned": false,
    "wipe": 1779131732,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2383,
    "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/4984358");
$data = json_decode($json, true);
var_dump($data);