JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/2469080
json
{
  "response": {
    "steam_id": "90268324631349268",
    "domain": null,
    "id": 2469080,
    "ip": "66.153.149.147",
    "port": 8888,
    "query": 25015,
    "color": 0,
    "city": "Myrtle Beach",
    "description": "",
    "game": 529180,
    "owner": null,
    "boosts": 1,
    "last_offline": 1774697546,
    "score": null,
    "last_online": 1776246621,
    "icon": null,
    "name": "The PACK PvE Shard 3xXP 3xH 15xT - (v100.54351)",
    "connect": "66.153.149.147:8888",
    "request": "66.153.149.147:25015",
    "map": "TheShard",
    "gamemode": "TestGameMode_C",
    "version": "1.0.0.0",
    "numplayers": 2,
    "maxplayers": 70,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 35,
    "add_date": 1704576488,
    "last_update": 1776246621,
    "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": 97,
    "language": "en",
    "parked": false,
    "app": {
      "id": 180,
      "steam_id": 529180,
      "name": "Dark and Light",
      "url": "dark-and-light"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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