JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11541017
json
{
  "response": {
    "steam_id": "90285155080173590",
    "domain": null,
    "id": 11541017,
    "ip": "81.70.250.167",
    "port": 36906,
    "query": 37406,
    "color": 0,
    "city": "Beijing",
    "description": null,
    "game": 221100,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779355414,
    "last_online": 1779486735,
    "icon": null,
    "name": "Survive the Silence: A Psychological Horror Experience.",
    "connect": "81.70.250.167:36906",
    "request": "81.70.250.167:37406",
    "map": "chernarusplus",
    "gamemode": null,
    "version": "129",
    "numplayers": 0,
    "maxplayers": 70,
    "bots": 56,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1779355414,
    "last_update": 1779486735,
    "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": 4964,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 63,
      "steam_id": 221100,
      "name": "DayZ",
      "url": "dayz"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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