JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11668028
json
{
  "response": {
    "steam_id": "90286373082819590",
    "domain": null,
    "id": 11668028,
    "ip": "66.42.216.154",
    "port": 7777,
    "query": 7778,
    "project_id": null,
    "color": 0,
    "city": "Loveland",
    "description": null,
    "game": 2168680,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780179572,
    "last_online": 1780683787,
    "icon": null,
    "name": "[Dedicated PvE] [US East] The Hogland - Squeal Piggy, Squeal",
    "connect": "66.42.216.154:7777",
    "request": "66.42.216.154:7778",
    "map": "Heartland | Absolute Escalation",
    "gamemode": "Nuclear Option Server",
    "version": "0.33.3",
    "numplayers": 0,
    "maxplayers": 32,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1780179572,
    "last_update": 1780683787,
    "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": 78,
    "language": "en",
    "parked": false,
    "app": {
      "id": 1615382,
      "steam_id": 2168680,
      "name": "Nuclear Option",
      "url": "nuclear-option"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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